OSDN Git Service

h264: improve max slices error message
authorMichael Niedermayer <michaelni@gmx.at>
Thu, 28 Jul 2011 09:30:44 +0000 (11:30 +0200)
committerMichael Niedermayer <michaelni@gmx.at>
Thu, 28 Jul 2011 09:50:02 +0000 (11:50 +0200)
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
libavcodec/h264.c

index 83d81c9..1f417a8 100644 (file)
@@ -2946,7 +2946,7 @@ static int decode_slice_header(H264Context *h, H264Context *h0){
     h0->last_slice_type = slice_type;
     h->slice_num = ++h0->current_slice;
     if(h->slice_num >= MAX_SLICES){
-        av_log(s->avctx, AV_LOG_ERROR, "Too many slices (%d >= %d), increase MAX_SLICES and recompile\n", h->slice_num, MAX_SLICES);
+        av_log(s->avctx, AV_LOG_WARNING, "Possibly too many slices (%d >= %d), increase MAX_SLICES and recompile if there are artifacts\n", h->slice_num, MAX_SLICES);
     }
 
     for(j=0; j<2; j++){