Commit 44309dd2 authored by Michael Niedermayer's avatar Michael Niedermayer

avcodec/mpegvideo: support mbskip_table==NULL in ff_print_debug_info2()

Signed-off-by: 's avatarMichael Niedermayer <michaelni@gmx.at>
parent dd186b58
......@@ -2249,7 +2249,7 @@ void ff_print_debug_info2(AVCodecContext *avctx, AVFrame *pict, uint8_t *mbskip_
for (y = 0; y < mb_height; y++) {
for (x = 0; x < mb_width; x++) {
if (avctx->debug & FF_DEBUG_SKIP) {
int count = mbskip_table[x + y * mb_stride];
int count = mbskip_table ? mbskip_table[x + y * mb_stride] : 0;
if (count > 9)
count = 9;
av_log(avctx, AV_LOG_DEBUG, "%1d", count);
......@@ -2518,7 +2518,8 @@ void ff_print_debug_info2(AVCodecContext *avctx, AVFrame *pict, uint8_t *mbskip_
// hmm
}
}
mbskip_table[mb_index] = 0;
if (mbskip_table)
mbskip_table[mb_index] = 0;
}
}
}
......
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