diff options
author | Michael Niedermayer <michaelni@gmx.at> | 2012-01-18 01:13:22 +0100 |
---|---|---|
committer | Michael Niedermayer <michaelni@gmx.at> | 2012-01-18 16:25:36 +0100 |
commit | 2fb65d3e55e4a667af42404a988d902e2acde50a (patch) | |
tree | 7da211e400f6cbd7901f226324a6761dba74ed7e /libavcodec/utils.c | |
parent | e191f1f4141aec6b40d12af4835844deca134a1e (diff) | |
download | ffmpeg-2fb65d3e55e4a667af42404a988d902e2acde50a.tar.gz |
lavc: when w/h changes in reget buffer, print the values.
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
Diffstat (limited to 'libavcodec/utils.c')
-rw-r--r-- | libavcodec/utils.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/libavcodec/utils.c b/libavcodec/utils.c index 57e5fb9d09..1db3f617f9 100644 --- a/libavcodec/utils.c +++ b/libavcodec/utils.c @@ -603,7 +603,8 @@ int avcodec_default_reget_buffer(AVCodecContext *s, AVFrame *pic){ assert(s->codec_type == AVMEDIA_TYPE_VIDEO); if (pic->data[0] && (pic->width != s->width || pic->height != s->height || pic->format != s->pix_fmt)) { - av_log(s, AV_LOG_WARNING, "Width/height/fmt changing with reget buffer\n"); + av_log(s, AV_LOG_WARNING, "Picture changed from size:%dx%d fmt:%s to size:%dx%d fmt:%s in reget buffer()\n", + pic->width, pic->height, av_get_pix_fmt_name(pic->format), s->width, s->height, av_get_pix_fmt_name(s->pix_fmt)); s->release_buffer(s, pic); } |