[vlc-commits] commit: avcodec: disable direct rendering for VP80 (Ilkka Ollakka )

git at videolan.org git at videolan.org
Sat Jul 10 14:42:08 CEST 2010


vlc/vlc-1.1 | branch: master | Ilkka Ollakka <ileoo at videolan.org> | Sat Jul 10 15:39:10 2010 +0300| [316d142d4af7d90f43c794b4c289794b2e48d9a6] | committer: Ilkka Ollakka 

avcodec: disable direct rendering for VP80

avcodec native decoder has priority over libvpx one, and I don't know
howto change that easily. Fix #3820
(cherry picked from commit 73339d95a75f7f9311d4aa8674ee2600f884d8d7)

Signed-off-by: Ilkka Ollakka <ileoo at videolan.org>

> http://git.videolan.org/gitweb.cgi/vlc/vlc-1.1.git/?a=commit;h=316d142d4af7d90f43c794b4c289794b2e48d9a6
---

 modules/codec/avcodec/video.c |    3 +++
 1 files changed, 3 insertions(+), 0 deletions(-)

diff --git a/modules/codec/avcodec/video.c b/modules/codec/avcodec/video.c
index bc37e12..b8aed86 100644
--- a/modules/codec/avcodec/video.c
+++ b/modules/codec/avcodec/video.c
@@ -300,6 +300,9 @@ int InitVideoDec( decoder_t *p_dec, AVCodecContext *p_context,
        (p_sys->p_codec->capabilities & CODEC_CAP_DR1) &&
         /* No idea why ... but this fixes flickering on some TSCC streams */
         p_sys->i_codec_id != CODEC_ID_TSCC &&
+        /* avcodec native vp8 decode doesn't handle EMU_EDGE flag, and I
+           don't have idea howto implement fallback to libvpx decoder */
+        p_sys->i_codec_id != CODEC_ID_VP8 &&
         !p_sys->p_context->debug_mv )
     {
         /* Some codecs set pix_fmt only after the 1st frame has been decoded,



More information about the vlc-commits mailing list