[vlc-commits] commit: avcodec: blacklist WMV2 also, missed that codec previously ( Ilkka Ollakka )

git at videolan.org git at videolan.org
Sat May 29 14:05:32 CEST 2010


vlc | branch: master | Ilkka Ollakka <ileoo at videolan.org> | Sat May 29 15:04:17 2010 +0300| [9efe5bff03ca4a0d218b98e0e697d51dea8d5b55] | committer: Ilkka Ollakka 

avcodec: blacklist WMV2 also, missed that codec previously

See #3613

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

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

diff --git a/modules/codec/avcodec/encoder.c b/modules/codec/avcodec/encoder.c
index df7daf3..14d7011 100644
--- a/modules/codec/avcodec/encoder.c
+++ b/modules/codec/avcodec/encoder.c
@@ -500,7 +500,8 @@ int OpenEncoder( vlc_object_t *p_this )
         if ( p_sys->i_qmin > 0 && p_sys->i_qmin == p_sys->i_qmax )
             p_context->flags |= CODEC_FLAG_QSCALE;
         /* These codecs cause libavcodec to exit if thread_count is > 1.
-           See libavcodec/mpegvideo_enc.c:MPV_encode_init
+           See libavcodec/mpegvideo_enc.c:MPV_encode_init and
+           libavcodec/svq3.c , WMV2 calls MPV_encode_init also.
          */
         if ( i_codec_id == CODEC_ID_FLV1 ||
              i_codec_id == CODEC_ID_H261 ||
@@ -512,6 +513,7 @@ int OpenEncoder( vlc_object_t *p_this )
              i_codec_id == CODEC_ID_MSMPEG4V2 ||
              i_codec_id == CODEC_ID_MSMPEG4V3 ||
              i_codec_id == CODEC_ID_WMV1 ||
+             i_codec_id == CODEC_ID_WMV2 ||
              i_codec_id == CODEC_ID_RV10 ||
              i_codec_id == CODEC_ID_RV20 ||
              i_codec_id == CODEC_ID_SVQ3 )



More information about the vlc-commits mailing list