Commit 2fb65d3e authored by Michael Niedermayer's avatar Michael Niedermayer

lavc: when w/h changes in reget buffer, print the values.

Signed-off-by: 's avatarMichael Niedermayer <michaelni@gmx.at>
parent e191f1f4
...@@ -603,7 +603,8 @@ int avcodec_default_reget_buffer(AVCodecContext *s, AVFrame *pic){ ...@@ -603,7 +603,8 @@ int avcodec_default_reget_buffer(AVCodecContext *s, AVFrame *pic){
assert(s->codec_type == AVMEDIA_TYPE_VIDEO); assert(s->codec_type == AVMEDIA_TYPE_VIDEO);
if (pic->data[0] && (pic->width != s->width || pic->height != s->height || pic->format != s->pix_fmt)) { 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); s->release_buffer(s, pic);
} }
......
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