diff options
author | Michael Niedermayer <michaelni@gmx.at> | 2014-02-07 16:31:11 +0100 |
---|---|---|
committer | Michael Niedermayer <michaelni@gmx.at> | 2014-02-23 14:53:59 +0100 |
commit | ce5d9a2b4b3092939ede3ef0c478d9f36b6d8a34 (patch) | |
tree | e89c6216c8c4bf12c13ea88abba8ff38e75759f9 | |
parent | aa672f5e6af4eaf1166ff95a628f9ac6e6a292b4 (diff) | |
download | ffmpeg-ce5d9a2b4b3092939ede3ef0c478d9f36b6d8a34.tar.gz |
avcodec/hevc: make check for previous slice segment tighter
This ensures the previous one is matching the curent and not just any
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
(cherry picked from commit 1a3ed056c523b4670e192301be15dbc521ec8353)
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
-rw-r--r-- | libavcodec/hevc.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libavcodec/hevc.c b/libavcodec/hevc.c index 4a0907f3f2..1d1a578a02 100644 --- a/libavcodec/hevc.c +++ b/libavcodec/hevc.c @@ -1803,7 +1803,7 @@ static int hls_decode_entry(AVCodecContext *avctxt, void *isFilterThread) if (s->sh.dependent_slice_segment_flag) { int prev_rs = s->pps->ctb_addr_ts_to_rs[ctb_addr_ts - 1]; - if (s->tab_slice_address[prev_rs] == -1) { + if (s->tab_slice_address[prev_rs] != s->sh.slice_addr) { av_log(s->avctx, AV_LOG_ERROR, "Previous slice segment missing\n"); return AVERROR_INVALIDDATA; } |