summaryrefslogtreecommitdiffstats
path: root/libavcodec/avcodec.h
diff options
context:
space:
mode:
authorStefano Sabatini <stefano.sabatini-lala@poste.it>2011-05-01 14:02:08 +0200
committerStefano Sabatini <stefano.sabatini-lala@poste.it>2011-05-07 11:45:30 +0200
commit22333a6b19f59ebc83933b910069d00c445d01ed (patch)
tree143d3dd337af034562802e529489d21964a27cd6 /libavcodec/avcodec.h
parent314374e57978bd215ae42d5444f0e76f2bebdc27 (diff)
downloadffmpeg-streaming-22333a6b19f59ebc83933b910069d00c445d01ed.zip
ffmpeg-streaming-22333a6b19f59ebc83933b910069d00c445d01ed.tar.gz
lavc: add width and height fields to AVFrame
width and height are per-frame properties, setting these values in AVFrame simplify the operation of extraction of that information, since avoids the need to check the codec/stream context.
Diffstat (limited to 'libavcodec/avcodec.h')
-rw-r--r--libavcodec/avcodec.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/libavcodec/avcodec.h b/libavcodec/avcodec.h
index 11af5ea..e26fcc2 100644
--- a/libavcodec/avcodec.h
+++ b/libavcodec/avcodec.h
@@ -1018,6 +1018,13 @@ typedef struct AVPanScan{
* - decoding: Read by user.\
*/\
AVRational sample_aspect_ratio;\
+\
+ /**\
+ * width and height of the video frame\
+ * - encoding: unused\
+ * - decoding: Read by user.\
+ */\
+ int width, height;\
#define FF_QSCALE_TYPE_MPEG1 0
OpenPOWER on IntegriCloud