Browse code

Disable dr1 in ffplay for svq1 (fixes ticket40) Signed-off-by: Michael Niedermayer <michaelni@gmx.at>

Michael Niedermayer authored on 2011/04/07 06:41:02
Showing 1 changed files
... ...
@@ -1662,7 +1662,9 @@ static int input_init(AVFilterContext *ctx, const char *args, void *opaque)
1662 1662
     priv->is = opaque;
1663 1663
     codec    = priv->is->video_st->codec;
1664 1664
     codec->opaque = ctx;
1665
-    if(codec->codec->capabilities & CODEC_CAP_DR1) {
1665
+    if((codec->codec->capabilities & CODEC_CAP_DR1)
1666
+       && codec->codec_id != CODEC_ID_SVQ1 //chroma alignment from lavfi is insufficient
1667
+    ) {
1666 1668
         priv->use_dr1 = 1;
1667 1669
         codec->get_buffer     = input_get_buffer;
1668 1670
         codec->release_buffer = input_release_buffer;