summaryrefslogtreecommitdiffstats
path: root/libavcodec/avcodec.h
diff options
context:
space:
mode:
authorStefano Sabatini <stefano.sabatini-lala@poste.it>2011-05-01 14:10:20 +0200
committerStefano Sabatini <stefano.sabatini-lala@poste.it>2011-05-07 11:45:37 +0200
commit18ded93ab3db5996cd86fe2f5b36ba3c4bd58711 (patch)
tree0444ed3f88a8d90d34bec1d93ea7cbfa9aa9ef01 /libavcodec/avcodec.h
parent22333a6b19f59ebc83933b910069d00c445d01ed (diff)
downloadffmpeg-streaming-18ded93ab3db5996cd86fe2f5b36ba3c4bd58711.zip
ffmpeg-streaming-18ded93ab3db5996cd86fe2f5b36ba3c4bd58711.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.h9
1 files changed, 9 insertions, 0 deletions
diff --git a/libavcodec/avcodec.h b/libavcodec/avcodec.h
index e26fcc2..acdb183 100644
--- a/libavcodec/avcodec.h
+++ b/libavcodec/avcodec.h
@@ -1025,6 +1025,15 @@ typedef struct AVPanScan{
* - decoding: Read by user.\
*/\
int width, height;\
+\
+ /**\
+ * format of the frame, -1 if unknown or unset\
+ * It should be cast to the corresponding enum (enum PixelFormat\
+ * for video, enum AVSampleFormat for audio)\
+ * - encoding: unused\
+ * - decoding: Read by user.\
+ */\
+ int format;\
#define FF_QSCALE_TYPE_MPEG1 0
OpenPOWER on IntegriCloud