[FFmpeg-cvslog] avcodec/hevc: make check for previous slice segment tighter

Michael Niedermayer git at videolan.org
Sun Feb 23 17:46:58 CET 2014


ffmpeg | branch: release/2.1 | Michael Niedermayer <michaelni at gmx.at> | Fri Feb  7 16:31:11 2014 +0100| [ce5d9a2b4b3092939ede3ef0c478d9f36b6d8a34] | committer: Michael Niedermayer

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 at gmx.at>
(cherry picked from commit 1a3ed056c523b4670e192301be15dbc521ec8353)

Signed-off-by: Michael Niedermayer <michaelni at gmx.at>

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=ce5d9a2b4b3092939ede3ef0c478d9f36b6d8a34
---

 libavcodec/hevc.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/libavcodec/hevc.c b/libavcodec/hevc.c
index 4a0907f..1d1a578 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;
         }



More information about the ffmpeg-cvslog mailing list