aboutsummaryrefslogtreecommitdiffstats
path: root/libavcodec/h264.h
diff options
context:
space:
mode:
authorAlexander Strange <astrange@ithinksw.com>2008-07-15 21:30:04 +0000
committerAlexander Strange <astrange@ithinksw.com>2008-07-15 21:30:04 +0000
commit64b9d48f765ff6bf6c6e41edf690c56a4e0cdb8b (patch)
treebec409271497df98e3c676bb652125d54df15f7b /libavcodec/h264.h
parentdeaab5fc32134ea53bff2ab46f95dd493ecf94c1 (diff)
downloadffmpeg-64b9d48f765ff6bf6c6e41edf690c56a4e0cdb8b.tar.gz
Move the size of the H264Context delayed_pic array into a #define.
This improves readability by getting rid of some magic numbers. Originally committed as revision 14248 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavcodec/h264.h')
-rw-r--r--libavcodec/h264.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/libavcodec/h264.h b/libavcodec/h264.h
index 2531e3a2e4..fa2fcf14b5 100644
--- a/libavcodec/h264.h
+++ b/libavcodec/h264.h
@@ -51,6 +51,8 @@
#define MAX_MMCO_COUNT 66
+#define MAX_DELAYED_PIC_COUNT 16
+
/* Compiling in interlaced support reduces the speed
* of progressive decoding by about 2%. */
#define ALLOW_INTERLACE
@@ -334,7 +336,7 @@ typedef struct H264Context{
Picture ref_list[2][48]; /**< 0..15: frame refs, 16..47: mbaff field refs.
Reordered version of default_ref_list
according to picture reordering in slice header */
- Picture *delayed_pic[18]; //FIXME size?
+ Picture *delayed_pic[MAX_DELAYED_PIC_COUNT+2]; //FIXME size?
Picture *delayed_output_pic;
/**