diff options
author | Stefano Sabatini <stefano.sabatini-lala@poste.it> | 2011-05-01 16:10:20 +0400 |
---|---|---|
committer | Anton Khirnov <anton@khirnov.net> | 2011-12-25 19:18:57 +0400 |
commit | 8a4a5f6ff756fdba44254015c714f173b2db6f64 (patch) | |
tree | d4c0fcbee95b2a09c83ec51c1e7631141dfadab7 /libavcodec/pthread.c | |
parent | 3a2ddf7c2c4d27b595a601c55af23129a5a8be0d (diff) |
lavc: add format field to AVFrame
The format is a per-frame property, having it in AVFrame simplify the
operation of extraction of that information, since avoids the need to
access the codec/stream context.
Diffstat (limited to 'libavcodec/pthread.c')
-rw-r--r-- | libavcodec/pthread.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/libavcodec/pthread.c b/libavcodec/pthread.c index 1ec2d1a1f9..a44500b036 100644 --- a/libavcodec/pthread.c +++ b/libavcodec/pthread.c @@ -602,6 +602,7 @@ int ff_thread_decode_frame(AVCodecContext *avctx, picture->sample_aspect_ratio = avctx->sample_aspect_ratio; picture->width = avctx->width; picture->height = avctx->height; + picture->format = avctx->pix_fmt; /* * A later call with avkpt->size == 0 may loop over all threads, |