summaryrefslogtreecommitdiff
path: root/libavcodec/h264.h
diff options
context:
space:
mode:
authorAnton Khirnov <anton@khirnov.net>2015-04-12 21:08:34 +0200
committerAnton Khirnov <anton@khirnov.net>2015-04-29 05:52:58 +0200
commit7a4f74eed51f914e9bbfebaffd4a92ac6791f819 (patch)
tree3cadebcc17e8f835fd5e86b1234ce06da1432566 /libavcodec/h264.h
parent88c612e3a4d5b584e2d9f6e2541de78d67bdfb9f (diff)
h264: embed the DPB in the context
It now has a fixed size and is initialized only once, so there is no point in allocating it separately.
Diffstat (limited to 'libavcodec/h264.h')
-rw-r--r--libavcodec/h264.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/libavcodec/h264.h b/libavcodec/h264.h
index ca26e616ba..635c4a4db9 100644
--- a/libavcodec/h264.h
+++ b/libavcodec/h264.h
@@ -468,7 +468,7 @@ typedef struct H264Context {
H264QpelContext h264qpel;
GetBitContext gb;
- H264Picture *DPB;
+ H264Picture DPB[H264_MAX_PICTURE_COUNT];
H264Picture *cur_pic_ptr;
H264Picture cur_pic;