From b58dbb5b031c33cdb88f13cc533f623e82cdbcbd 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. --- libavcodec/pthread.c | 1 + 1 file changed, 1 insertion(+) (limited to 'libavcodec/pthread.c') diff --git a/libavcodec/pthread.c b/libavcodec/pthread.c index f842edf861..17dd12da6c 100644 --- a/libavcodec/pthread.c +++ b/libavcodec/pthread.c @@ -599,6 +599,7 @@ int ff_thread_decode_frame(AVCodecContext *avctx, *picture = p->frame; *got_picture_ptr = p->got_frame; picture->pkt_dts = p->avpkt.dts; + picture->sample_aspect_ratio = avctx->sample_aspect_ratio; /* * A later call with avkpt->size == 0 may loop over all threads, -- cgit v1.2.3