Mercurial > libavcodec.hg
diff h264.h @ 7283:39e81fdd8d23 libavcodec
Move the size of the H264Context delayed_pic array into a #define.
This improves readability by getting rid of some magic numbers.
author | astrange |
---|---|
date | Tue, 15 Jul 2008 21:30:04 +0000 |
parents | 9a31b6a8ae52 |
children | 033d10927d45 |
line wrap: on
line diff
--- a/h264.h Tue Jul 15 19:06:32 2008 +0000 +++ b/h264.h Tue Jul 15 21:30:04 2008 +0000 @@ -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 @@ 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; /**