Commit a4233d1f authored by Michael Niedermayer's avatar Michael Niedermayer

h264: print actual slice number in "Too many slices" warning

Signed-off-by: 's avatarMichael Niedermayer <michaelni@gmx.at>
parent 9291faeb
...@@ -2984,7 +2984,7 @@ static int decode_slice_header(H264Context *h, H264Context *h0){ ...@@ -2984,7 +2984,7 @@ static int decode_slice_header(H264Context *h, H264Context *h0){
h0->last_slice_type = slice_type; h0->last_slice_type = slice_type;
h->slice_num = ++h0->current_slice; h->slice_num = ++h0->current_slice;
if(h->slice_num >= MAX_SLICES){ if(h->slice_num >= MAX_SLICES){
av_log(s->avctx, AV_LOG_ERROR, "Too many slices, increase MAX_SLICES and recompile\n"); av_log(s->avctx, AV_LOG_ERROR, "Too many slices (%d >= %d), increase MAX_SLICES and recompile\n", h->slice_num, MAX_SLICES);
} }
for(j=0; j<2; j++){ for(j=0; j<2; j++){
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment