[FFmpeg-cvslog] Disable dr1 in ffplay for svq1 (fixes ticket40)

Reimar Döffinger Reimar.Doeffinger at gmx.de
Thu Apr 7 07:33:59 CEST 2011



On 6 Apr 2011, at 23:46, git at videolan.org (Michael Niedermayer) wrote:

> ffmpeg | branch: master | Michael Niedermayer <michaelni at gmx.at> | Wed Apr  6 23:41:02 2011 +0200| [454fab721a2d518d814ce50ab545f89af107851d] | committer: Michael Niedermayer
> 
> Disable dr1 in ffplay for svq1 (fixes ticket40)
> Signed-off-by: Michael Niedermayer <michaelni at gmx.at>
> 
>> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=454fab721a2d518d814ce50ab545f89af107851d
> ---
> 
> ffplay.c |    4 +++-
> 1 files changed, 3 insertions(+), 1 deletions(-)
> 
> diff --git a/ffplay.c b/ffplay.c
> index 8c1ea31..2067a8f 100644
> --- a/ffplay.c
> +++ b/ffplay.c
> @@ -1662,7 +1662,9 @@ static int input_init(AVFilterContext *ctx, const char *args, void *opaque)
>     priv->is = opaque;
>     codec    = priv->is->video_st->codec;
>     codec->opaque = ctx;
> -    if(codec->codec->capabilities & CODEC_CAP_DR1) {
> +    if((codec->codec->capabilities & CODEC_CAP_DR1)
> +       && codec->codec_id != CODEC_ID_SVQ1 //chroma alignment from lavfi is insufficient

The list of codecs with higher chroma alignment requirement in align_dimensions or what it is called is far larger.
Also MPlayer filters seem to be able to handle it...


More information about the ffmpeg-cvslog mailing list