[FFmpeg-cvslog] er: set error_occured on missing slices

Michael Niedermayer git at videolan.org
Wed Mar 20 01:11:49 CET 2013


ffmpeg | branch: master | Michael Niedermayer <michaelni at gmx.at> | Tue Feb 19 19:58:52 2013 +0100| [d244a615f63e2790400d060a9cd2c1106d0d2c5e] | committer: Michael Niedermayer

er: set error_occured on missing slices

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

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

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

diff --git a/libavcodec/error_resilience.c b/libavcodec/error_resilience.c
index da957d2..cdd28ab 100644
--- a/libavcodec/error_resilience.c
+++ b/libavcodec/error_resilience.c
@@ -832,8 +832,10 @@ void ff_er_add_slice(ERContext *s, int startx, int starty,
         int prev_status = s->error_status_table[s->mb_index2xy[start_i - 1]];
 
         prev_status &= ~ VP_START;
-        if (prev_status != (ER_MV_END | ER_DC_END | ER_AC_END))
+        if (prev_status != (ER_MV_END | ER_DC_END | ER_AC_END)) {
+            s->error_occurred = 1;
             s->error_count = INT_MAX;
+        }
     }
 }
 



More information about the ffmpeg-cvslog mailing list