diff options
Diffstat (limited to 'community/mlt/ffmpeg.patch')
-rw-r--r-- | community/mlt/ffmpeg.patch | 29 |
1 files changed, 29 insertions, 0 deletions
diff --git a/community/mlt/ffmpeg.patch b/community/mlt/ffmpeg.patch new file mode 100644 index 000000000..7bd4903db --- /dev/null +++ b/community/mlt/ffmpeg.patch @@ -0,0 +1,29 @@ +diff -wbBur mlt-0.8.2/src/modules/avformat/consumer_avformat.c mlt-0.8.2.my/src/modules/avformat/consumer_avformat.c +--- mlt-0.8.2/src/modules/avformat/consumer_avformat.c 2012-08-28 20:25:58.000000000 +0400 ++++ mlt-0.8.2.my/src/modules/avformat/consumer_avformat.c 2012-11-06 16:03:07.269782436 +0400 +@@ -237,11 +237,7 @@ + mlt_properties_set_data( properties, "acodec", codecs, 0, (mlt_destructor) mlt_properties_close, NULL ); + mlt_properties_set_data( doc, "audio_codecs", codecs, 0, NULL, NULL ); + while ( ( codec = av_codec_next( codec ) ) ) +-#if LIBAVCODEC_VERSION_INT >= ((54<<16)+(0<<8)+0) +- if ( ( codec->encode || codec->encode2 ) && codec->type == CODEC_TYPE_AUDIO ) +-#else +- if ( codec->encode && codec->type == CODEC_TYPE_AUDIO ) +-#endif ++ if ( ( codec->encode2 ) && codec->type == CODEC_TYPE_AUDIO ) + { + snprintf( key, sizeof(key), "%d", mlt_properties_count( codecs ) ); + mlt_properties_set( codecs, key, codec->name ); +@@ -261,11 +257,7 @@ + mlt_properties_set_data( properties, "vcodec", codecs, 0, (mlt_destructor) mlt_properties_close, NULL ); + mlt_properties_set_data( doc, "video_codecs", codecs, 0, NULL, NULL ); + while ( ( codec = av_codec_next( codec ) ) ) +-#if LIBAVCODEC_VERSION_INT >= ((54<<16)+(0<<8)+0) +- if ( (codec->encode || codec->encode2) && codec->type == CODEC_TYPE_VIDEO ) +-#else +- if ( codec->encode && codec->type == CODEC_TYPE_VIDEO ) +-#endif ++ if ( (codec->encode2) && codec->type == CODEC_TYPE_VIDEO ) + { + snprintf( key, sizeof(key), "%d", mlt_properties_count( codecs ) ); + mlt_properties_set( codecs, key, codec->name ); |