Disable dr1 in ffplay for svq1 (fixes ticket40)
authorMichael Niedermayer <michaelni@gmx.at>
Wed, 6 Apr 2011 21:41:02 +0000 (23:41 +0200)
committerMichael Niedermayer <michaelni@gmx.at>
Wed, 6 Apr 2011 21:46:37 +0000 (23:46 +0200)
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
ffplay.c

index 8c1ea31..2067a8f 100644 (file)
--- 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
+    ) {
         priv->use_dr1 = 1;
         codec->get_buffer     = input_get_buffer;
         codec->release_buffer = input_release_buffer;