summaryrefslogtreecommitdiffstats
path: root/libavcodec/avcodec.h
diff options
context:
space:
mode:
authorStefano Sabatini <stefano.sabatini-lala@poste.it>2011-04-29 13:04:47 +0200
committerStefano Sabatini <stefano.sabatini-lala@poste.it>2011-05-01 13:10:06 +0200
commit77e9dee8aefa3fca75984226f66bf004bb8f9e13 (patch)
treecd9590685f22841807a08105948faa115a6a31b1 /libavcodec/avcodec.h
parent1ba57272429fc6c86e39cd236e2b32ac545e1488 (diff)
downloadffmpeg-streaming-77e9dee8aefa3fca75984226f66bf004bb8f9e13.zip
ffmpeg-streaming-77e9dee8aefa3fca75984226f66bf004bb8f9e13.tar.gz
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.
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 251a038..3f8f1a6 100644
--- a/libavcodec/avcodec.h
+++ b/libavcodec/avcodec.h
@@ -1011,6 +1011,13 @@ typedef struct AVPanScan{
* - decoding: Read by user.\
*/\
int64_t pkt_pos;\
+\
+ /**\
+ * reordered sample aspect ratio for the video frame, 0/1 if unknown\unspecified
+ * - encoding: unused\
+ * - decoding: Read by user.\
+ */\
+ AVRational sample_aspect_ratio;\
#define FF_QSCALE_TYPE_MPEG1 0
OpenPOWER on IntegriCloud