summaryrefslogtreecommitdiff
path: root/avplay.c
diff options
context:
space:
mode:
authorStefano Sabatini <stefano.sabatini-lala@poste.it>2011-04-29 13:04:47 +0200
committerAnton Khirnov <anton@khirnov.net>2011-12-25 16:18:57 +0100
commitb58dbb5b031c33cdb88f13cc533f623e82cdbcbd (patch)
tree1bb0334e817102f10c84466ccdad4a931ccb0f05 /avplay.c
parent671005558a295945f5d4cfd1abca6832af479c0b (diff)
downloadffmpeg-b58dbb5b031c33cdb88f13cc533f623e82cdbcbd.tar.gz
lavc: add a sample_aspect_ratio field to AVFrame
The sample aspect ratio is a per-frame property, so it makes sense to define it in AVFrame rather than in the codec/stream context. Simplify application-level sample aspect ratio information extraction, and allow further simplifications.
Diffstat (limited to 'avplay.c')
-rw-r--r--avplay.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/avplay.c b/avplay.c
index bf1ac1b3f2..bf246f2382 100644
--- a/avplay.c
+++ b/avplay.c
@@ -1651,7 +1651,7 @@ static int input_request_frame(AVFilterLink *link)
picref->pts = pts;
picref->pos = pkt.pos;
- picref->video->pixel_aspect = priv->is->video_st->codec->sample_aspect_ratio;
+ picref->video->pixel_aspect = priv->frame->sample_aspect_ratio;
avfilter_start_frame(link, picref);
avfilter_draw_slice(link, 0, link->h, 1);
avfilter_end_frame(link);