[FFmpeg-cvslog] Disable dr1 in ffplay for svq1 (fixes ticket40)
Michael Niedermayer
git at videolan.org
Wed Apr 6 23:46:56 CEST 2011
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
+ ) {
priv->use_dr1 = 1;
codec->get_buffer = input_get_buffer;
codec->release_buffer = input_release_buffer;
More information about the ffmpeg-cvslog
mailing list