diff options
author | Stefano Sabatini <stefano.sabatini-lala@poste.it> | 2011-03-26 15:26:45 +0100 |
---|---|---|
committer | Stefano Sabatini <stefano.sabatini-lala@poste.it> | 2011-03-27 15:53:45 +0200 |
commit | 2ee85c067129e5c456dc2eb1807140dc2e434d9a (patch) | |
tree | 0df5973bdf651362681087c34a477fe4d07be5d4 | |
parent | 3c8493074bc43aced247a34d6b981e6f9acde0f1 (diff) | |
download | ffmpeg-streaming-2ee85c067129e5c456dc2eb1807140dc2e434d9a.zip ffmpeg-streaming-2ee85c067129e5c456dc2eb1807140dc2e434d9a.tar.gz |
ffmpeg: warns the user when the selected pixel format is ignored
-rw-r--r-- | ffmpeg.c | 8 |
1 files changed, 7 insertions, 1 deletions
@@ -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]; + } } } |