projects
/
ffmpeg.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
3a0d5e2
)
h264dec: initialize field_started to 0 on each decode call
author
Anton Khirnov
<anton@khirnov.net>
Wed, 28 Dec 2016 10:05:25 +0000
(11:05 +0100)
committer
Anton Khirnov
<anton@khirnov.net>
Sun, 12 Mar 2017 19:42:12 +0000
(20:42 +0100)
It might be incorrectly set to 1 if the previous call exited with an
error.
Bug-Id: 1019
CC: libav-stable@libav.org
libavcodec/h264dec.c
patch
|
blob
|
history
diff --git
a/libavcodec/h264dec.c
b/libavcodec/h264dec.c
index
6d7aa7b
..
2a532a7
100644
(file)
--- a/
libavcodec/h264dec.c
+++ b/
libavcodec/h264dec.c
@@
-523,6
+523,7
@@
static int decode_nal_units(H264Context *h, const uint8_t *buf, int buf_size)
if (!(avctx->flags2 & AV_CODEC_FLAG2_CHUNKS)) {
h->current_slice = 0;
+ h->field_started = 0;
if (!h->first_field)
h->cur_pic_ptr = NULL;
ff_h264_sei_uninit(&h->sei);