[FFmpeg-cvslog] ffv1dec: keep track of errors in slice headers for EC

Michael Niedermayer git at videolan.org
Mon Jul 16 15:54:07 CEST 2012


ffmpeg | branch: master | Michael Niedermayer <michaelni at gmx.at> | Mon Jul 16 15:40:39 2012 +0200| [f5af3568f6408b559a6f97c09a376a27f36ccfb8] | committer: Michael Niedermayer

ffv1dec: keep track of errors in slice headers for EC

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

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

 libavcodec/ffv1.c |    4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/libavcodec/ffv1.c b/libavcodec/ffv1.c
index 4bf29f7..f03ea8e 100644
--- a/libavcodec/ffv1.c
+++ b/libavcodec/ffv1.c
@@ -1610,8 +1610,10 @@ static int decode_slice(AVCodecContext *c, void *arg){
     if(f->version > 2){
         if(init_slice_state(f, fs) < 0)
             return AVERROR(ENOMEM);
-        if(decode_slice_header(f, fs) < 0)
+        if(decode_slice_header(f, fs) < 0) {
+            fs->slice_damaged = 1;
             return AVERROR_INVALIDDATA;
+        }
     }
     if(init_slice_state(f, fs) < 0)
         return AVERROR(ENOMEM);



More information about the ffmpeg-cvslog mailing list