Browse Source

ffmpeg: warns the user when the selected pixel format is ignored

tags/n0.8
Stefano Sabatini 15 years ago
parent
commit
2ee85c0671
1 changed files with 7 additions and 1 deletions
  1. +7
    -1
      ffmpeg.c

+ 7
- 1
ffmpeg.c View File

@@ -593,8 +593,14 @@ static void choose_pixel_fmt(AVStream *st, AVCodec *codec)
if(*p == st->codec->pix_fmt)
break;
}
if(*p == -1)
if (*p == -1) {
av_log(NULL, AV_LOG_WARNING,
"Incompatible pixel format '%s' for codec '%s', auto-selecting format '%s'\n",
av_pix_fmt_descriptors[st->codec->pix_fmt].name,
codec->name,
av_pix_fmt_descriptors[codec->pix_fmts[0]].name);
st->codec->pix_fmt = codec->pix_fmts[0];
}
}
}



Loading…
Cancel
Save