diff options
author | Kieran Kunhya <kierank@obe.tv> | 2018-08-17 15:12:14 +0100 |
---|---|---|
committer | Josh de Kock <josh@itanimul.li> | 2018-08-17 16:24:19 +0100 |
commit | c85852d3de636d18b41c4e5fdcdbc18bde7f3b1f (patch) | |
tree | e00be118dd028eea576b14292a7dd646804a5da6 /libavcodec/h264dec.c | |
parent | f631c328e680a3dd491936b92f69970c20cdcfc7 (diff) |
h264: Support multi-field closed captions by using AVBufferRef and not resetting per field
Signed-off-by: Josh de Kock <joshdk@obe.tv>
Diffstat (limited to 'libavcodec/h264dec.c')
-rw-r--r-- | libavcodec/h264dec.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/libavcodec/h264dec.c b/libavcodec/h264dec.c index 7494c7a8f2..8d115fa040 100644 --- a/libavcodec/h264dec.c +++ b/libavcodec/h264dec.c @@ -609,9 +609,10 @@ 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; - if (!h->first_field) + if (!h->first_field) { h->cur_pic_ptr = NULL; - ff_h264_sei_uninit(&h->sei); + ff_h264_sei_uninit(&h->sei); + } } if (h->nal_length_size == 4) { |