You've already forked FFmpeg
mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2025-08-15 14:13:16 +02:00
avcodec/mpegvideo: support mbskip_table==NULL in ff_print_debug_info2()
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
This commit is contained in:
@@ -2249,7 +2249,7 @@ void ff_print_debug_info2(AVCodecContext *avctx, AVFrame *pict, uint8_t *mbskip_
|
|||||||
for (y = 0; y < mb_height; y++) {
|
for (y = 0; y < mb_height; y++) {
|
||||||
for (x = 0; x < mb_width; x++) {
|
for (x = 0; x < mb_width; x++) {
|
||||||
if (avctx->debug & FF_DEBUG_SKIP) {
|
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)
|
if (count > 9)
|
||||||
count = 9;
|
count = 9;
|
||||||
av_log(avctx, AV_LOG_DEBUG, "%1d", count);
|
av_log(avctx, AV_LOG_DEBUG, "%1d", count);
|
||||||
@@ -2518,6 +2518,7 @@ void ff_print_debug_info2(AVCodecContext *avctx, AVFrame *pict, uint8_t *mbskip_
|
|||||||
// hmm
|
// hmm
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
if (mbskip_table)
|
||||||
mbskip_table[mb_index] = 0;
|
mbskip_table[mb_index] = 0;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user