summaryrefslogtreecommitdiffstats
path: root/libavcodec/h264.c
diff options
context:
space:
mode:
authorMichael Niedermayer <michaelni@gmx.at>2011-06-19 00:02:55 +0200
committerMichael Niedermayer <michaelni@gmx.at>2011-06-19 03:54:16 +0200
commita4233d1f95bfc5b9b0fd08f0aaafdd20b1c4dae0 (patch)
treeadcd92f0fc5f924816f5b7f28e990f2fff14e04b /libavcodec/h264.c
parent9291faeb6754787cd7f32feb8560219726a4da11 (diff)
downloadffmpeg-streaming-a4233d1f95bfc5b9b0fd08f0aaafdd20b1c4dae0.zip
ffmpeg-streaming-a4233d1f95bfc5b9b0fd08f0aaafdd20b1c4dae0.tar.gz
h264: print actual slice number in "Too many slices" warning
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
Diffstat (limited to 'libavcodec/h264.c')
-rw-r--r--libavcodec/h264.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libavcodec/h264.c b/libavcodec/h264.c
index b88622d..ca7867e 100644
--- a/libavcodec/h264.c
+++ b/libavcodec/h264.c
@@ -2984,7 +2984,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, 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++){
OpenPOWER on IntegriCloud