[FFmpeg-cvslog] ffmpeg: warn if samples need to be converted in a lossy way for lossless encoders.

Jethro Walters turkeyman121 at googlemail.com
Sun Jun 19 18:14:38 CEST 2011


On 19 Jun 2011, at 02:58, git at videolan.org (Michael Niedermayer) wrote:

> ffmpeg | branch: master | Michael Niedermayer <michaelni at gmx.at> | Sat Jun 18 21:54:11 2011 +0200| [035c13e307daeb2a250b86f0ddef3b783a6393e5] | committer: Michael Niedermayer
> 
> ffmpeg: warn if samples need to be converted in a lossy way for lossless encoders.
> Signed-off-by: Michael Niedermayer <michaelni at gmx.at>
> 
>> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=035c13e307daeb2a250b86f0ddef3b783a6393e5
> ---
> 
> ffmpeg.c |    2 ++
> 1 files changed, 2 insertions(+), 0 deletions(-)
> 
> diff --git a/ffmpeg.c b/ffmpeg.c
> index 4e8ac20..2921a06 100644
> --- a/ffmpeg.c
> +++ b/ffmpeg.c
> @@ -617,6 +617,8 @@ static void choose_sample_fmt(AVStream *st, AVCodec *codec)
>                 break;
>         }
>         if (*p == -1) {
> +            if((codec->capabilities & CODEC_CAP_LOSSLESS) && av_get_sample_fmt_name(st->codec->sample_fmt) > av_get_sample_fmt_name(codec->sample_fmts[0]))
> +                av_log(NULL, AV_LOG_ERROR, "Convertion will not be lossless'\n");

Nit: converSion.


More information about the ffmpeg-cvslog mailing list