diff options
author | Stefano Sabatini <stefano.sabatini-lala@poste.it> | 2011-04-29 13:04:47 +0200 |
---|---|---|
committer | Stefano Sabatini <stefano.sabatini-lala@poste.it> | 2011-05-01 13:10:06 +0200 |
commit | 77e9dee8aefa3fca75984226f66bf004bb8f9e13 (patch) | |
tree | cd9590685f22841807a08105948faa115a6a31b1 /ffplay.c | |
parent | 1ba57272429fc6c86e39cd236e2b32ac545e1488 (diff) | |
download | ffmpeg-77e9dee8aefa3fca75984226f66bf004bb8f9e13.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 'ffplay.c')
-rw-r--r-- | ffplay.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -1688,7 +1688,7 @@ static int input_request_frame(AVFilterLink *link) picref->pts = pts; picref->pos = priv->frame->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); |