From 77e9dee8aefa3fca75984226f66bf004bb8f9e13 Mon Sep 17 00:00:00 2001 From: Stefano Sabatini Date: Fri, 29 Apr 2011 13:04:47 +0200 Subject: 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. --- cmdutils.c | 1 + 1 file changed, 1 insertion(+) (limited to 'cmdutils.c') diff --git a/cmdutils.c b/cmdutils.c index 7989e06b74..3ad29afc90 100644 --- a/cmdutils.c +++ b/cmdutils.c @@ -912,6 +912,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; } -- cgit v1.2.3