diff options
author | Michael Niedermayer <michaelni@gmx.at> | 2013-03-12 14:06:35 +0400 |
---|---|---|
committer | Michael Niedermayer <michaelni@gmx.at> | 2013-03-12 14:06:35 +0400 |
commit | 6ae43725323b02520fa0926422b52d2ce7fd7973 (patch) | |
tree | 8d3ff4541a3aac98f4bc51a1af2199f91f389179 /libavcodec | |
parent | a76ef998eb24bec16caf82633287c8e331acf717 (diff) |
h264/mpegvideo: fix ff_print_debug_info2 arguments
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
Diffstat (limited to 'libavcodec')
-rw-r--r-- | libavcodec/h264.c | 10 | ||||
-rw-r--r-- | libavcodec/mpegvideo.c | 6 | ||||
-rw-r--r-- | libavcodec/mpegvideo.h | 2 |
3 files changed, 8 insertions, 10 deletions
diff --git a/libavcodec/h264.c b/libavcodec/h264.c index 0f1c67a85a..1826cedf91 100644 --- a/libavcodec/h264.c +++ b/libavcodec/h264.c @@ -4918,16 +4918,16 @@ not_extra: if ((ret = av_frame_ref(pict, &h->next_output_pic->f)) < 0) return ret; *got_frame = 1; + if (CONFIG_MPEGVIDEO) { + ff_print_debug_info2(h->avctx, h->next_output_pic, pict, h->er.mbskip_table, + h->visualization_buffer, &h->low_delay, + h->mb_width, h->mb_height, h->mb_stride, 1); + } } } assert(pict->data[0] || !*got_frame); - if (CONFIG_MPEGVIDEO) { - ff_print_debug_info2(h->avctx, pict, h->er.mbskip_table, h->visualization_buffer, &h->low_delay, - h->mb_width, h->mb_height, h->mb_stride, 1); - } - return get_consumed_bytes(buf_index, buf_size); } diff --git a/libavcodec/mpegvideo.c b/libavcodec/mpegvideo.c index d0c8262fde..b4c3c99393 100644 --- a/libavcodec/mpegvideo.c +++ b/libavcodec/mpegvideo.c @@ -1913,15 +1913,13 @@ static void draw_arrow(uint8_t *buf, int sx, int sy, int ex, /** * Print debugging info for the given picture. */ -void ff_print_debug_info2(AVCodecContext *avctx, Picture *p, uint8_t *mbskip_table, +void ff_print_debug_info2(AVCodecContext *avctx, Picture *p, AVFrame *pict, uint8_t *mbskip_table, uint8_t *visualization_buffer[3], int *low_delay, int mb_width, int mb_height, int mb_stride, int quarter_sample) { - AVFrame *pict; if (avctx->hwaccel || !p || !p->mb_type || (avctx->codec->capabilities&CODEC_CAP_HWACCEL_VDPAU)) return; - pict = &p->f; if (avctx->debug & (FF_DEBUG_SKIP | FF_DEBUG_QP | FF_DEBUG_MB_TYPE)) { @@ -2207,7 +2205,7 @@ void ff_print_debug_info2(AVCodecContext *avctx, Picture *p, uint8_t *mbskip_tab void ff_print_debug_info(MpegEncContext *s, Picture *p) { - ff_print_debug_info2(s->avctx, p, s->mbskip_table, s->visualization_buffer, &s->low_delay, + ff_print_debug_info2(s->avctx, p, &p->f, s->mbskip_table, s->visualization_buffer, &s->low_delay, s->mb_width, s->mb_height, s->mb_stride, s->quarter_sample); } diff --git a/libavcodec/mpegvideo.h b/libavcodec/mpegvideo.h index 4bbbac52de..2118e521a8 100644 --- a/libavcodec/mpegvideo.h +++ b/libavcodec/mpegvideo.h @@ -809,7 +809,7 @@ void ff_mpeg_draw_horiz_band(MpegEncContext *s, int y, int h); void ff_mpeg_flush(AVCodecContext *avctx); void ff_print_debug_info(MpegEncContext *s, Picture *p); -void ff_print_debug_info2(AVCodecContext *avctx, Picture *pict, uint8_t *mbskip_table, +void ff_print_debug_info2(AVCodecContext *avctx, Picture *p, AVFrame *pict, uint8_t *mbskip_table, uint8_t *visualization_buffer[3], int *low_delay, int mb_width, int mb_height, int mb_stride, int quarter_sample); |