aboutsummaryrefslogtreecommitdiffstats
path: root/cmdutils.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 /cmdutils.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 'cmdutils.c')
-rw-r--r--cmdutils.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/cmdutils.c b/cmdutils.c
index 1c2bf4696b..c5c2c1ced0 100644
--- a/cmdutils.c
+++ b/cmdutils.c
@@ -1047,6 +1047,7 @@ int get_filtered_video_frame(AVFilterContext *ctx, AVFrame *frame,
frame->top_field_first = picref->video->top_field_first;
frame->key_frame = picref->video->key_frame;
frame->pict_type = picref->video->pict_type;
+ frame->sample_aspect_ratio = picref->video->pixel_aspect;
return 1;
}