summaryrefslogtreecommitdiff
path: root/libavcodec/h264dec.c
diff options
context:
space:
mode:
authorAnton Khirnov <anton@khirnov.net>2017-07-22 14:52:27 +0200
committerAnton Khirnov <anton@khirnov.net>2017-07-26 23:23:13 +0200
commit45c4bf3df03ef53ae61fa1473424d4ae024f22e4 (patch)
tree2cdc3cf57d5a91ddb41348822896221e5e1cfaa0 /libavcodec/h264dec.c
parent45df7adc1d9b7e8fbae5af9328baa6ab3562002b (diff)
h264dec: track the last seen value of x264_build
Do not use the one in the SEI directly as that is reset at certain points. Inspired by patches from Michael Niedermayer <michaelni@gmx.at> and Anton Mitrofanov <BugMaster@narod.ru>. CC: libav-stable@libav.org
Diffstat (limited to 'libavcodec/h264dec.c')
-rw-r--r--libavcodec/h264dec.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/libavcodec/h264dec.c b/libavcodec/h264dec.c
index 2a532a7ef7..7a8293efa5 100644
--- a/libavcodec/h264dec.c
+++ b/libavcodec/h264dec.c
@@ -293,6 +293,7 @@ static int h264_init_context(AVCodecContext *avctx, H264Context *h)
h->flags = avctx->flags;
h->poc.prev_poc_msb = 1 << 16;
h->recovery_frame = -1;
+ h->x264_build = -1;
h->frame_recovered = 0;
h->next_outputed_poc = INT_MIN;