[vlc-commits] avcodec: remove indirection

Rémi Denis-Courmont git at videolan.org
Thu Sep 11 22:38:35 CEST 2014


vlc | branch: master | Rémi Denis-Courmont <remi at remlab.net> | Thu Sep 11 23:16:39 2014 +0300| [98ce84079a52ad09b77ad9f826735cc56f5fbab1] | committer: Rémi Denis-Courmont

avcodec: remove indirection

> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=98ce84079a52ad09b77ad9f826735cc56f5fbab1
---

 modules/codec/avcodec/video.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/modules/codec/avcodec/video.c b/modules/codec/avcodec/video.c
index 7661069..e43c13e 100644
--- a/modules/codec/avcodec/video.c
+++ b/modules/codec/avcodec/video.c
@@ -328,7 +328,7 @@ int InitVideoDec( decoder_t *p_dec, AVCodecContext *p_context,
     p_sys->b_direct_rendering = false;
     p_sys->i_direct_rendering_used = -1;
     if( var_CreateGetBool( p_dec, "avcodec-dr" ) &&
-       (p_sys->p_codec->capabilities & CODEC_CAP_DR1) &&
+       (p_codec->capabilities & CODEC_CAP_DR1) &&
         /* No idea why ... but this fixes flickering on some TSCC streams */
         p_sys->i_codec_id != AV_CODEC_ID_TSCC && p_sys->i_codec_id != AV_CODEC_ID_CSCD &&
         p_sys->i_codec_id != AV_CODEC_ID_CINEPAK )



More information about the vlc-commits mailing list