[FFmpeg-devel] [PATCH 2/6] er: set error_occured on missing slices
Michael Niedermayer
michaelni at gmx.at
Tue Feb 19 20:48:01 CET 2013
Signed-off-by: Michael Niedermayer <michaelni at gmx.at>
---
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 c36db7a..472ce06 100644
--- a/libavcodec/error_resilience.c
+++ b/libavcodec/error_resilience.c
@@ -833,8 +833,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;
+ }
}
}
--
1.7.9.5
More information about the ffmpeg-devel
mailing list