AVCodecContext *c = st->codec;
// Establish defaults from AVOptions
+#if LIBAVCODEC_VERSION_MAJOR >= 53
+ avcodec_get_context_defaults3( c, codec );
+#else
avcodec_get_context_defaults2( c, CODEC_TYPE_AUDIO );
+#endif
c->codec_id = codec->id;
c->codec_type = CODEC_TYPE_AUDIO;
AVCodecContext *c = st->codec;
// Establish defaults from AVOptions
+#if LIBAVCODEC_VERSION_MAJOR >= 53
+ avcodec_get_context_defaults3( c, codec );
+#else
avcodec_get_context_defaults2( c, CODEC_TYPE_VIDEO );
+#endif
c->codec_id = codec->id;
c->codec_type = CODEC_TYPE_VIDEO;
{
mlt_properties_set( properties, "_acodec", "ac3_fixed" );
acodec = mlt_properties_get( properties, "_acodec" );
+ audio_codec = avcodec_find_encoder_by_name( acodec );
}
}
else