diff options
author | Stefano Sabatini <stefano.sabatini-lala@poste.it> | 2011-05-01 14:10:20 +0200 |
---|---|---|
committer | Anton Khirnov <anton@khirnov.net> | 2011-12-25 16:18:57 +0100 |
commit | 8a4a5f6ff756fdba44254015c714f173b2db6f64 (patch) | |
tree | d4c0fcbee95b2a09c83ec51c1e7631141dfadab7 /libavcodec/avcodec.h | |
parent | 3a2ddf7c2c4d27b595a601c55af23129a5a8be0d (diff) | |
download | ffmpeg-8a4a5f6ff756fdba44254015c714f173b2db6f64.tar.gz |
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/avcodec.h')
-rw-r--r-- | libavcodec/avcodec.h | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/libavcodec/avcodec.h b/libavcodec/avcodec.h index 0204af7df0..4f24f729ac 100644 --- a/libavcodec/avcodec.h +++ b/libavcodec/avcodec.h @@ -1272,6 +1272,15 @@ typedef struct AVFrame { * - decoding: Read by user. */ int width, height; + + /** + * format of the frame, -1 if unknown or unset + * Values correspond to enum PixelFormat for video frames, + * enum AVSampleFormat for audio) + * - encoding: unused + * - decoding: Read by user. + */ + int format; } AVFrame; struct AVCodecInternal; |