endif
-CXXFLAGS_DEV = -g -O0 -Wall -Wshadow -DDEV -D_GNU_SOURCE $(INCLUDES) $(vomp_options)
-CXXFLAGS_REL = -O3 -Wall -Wshadow -D_GNU_SOURCE $(INCLUDES) $(vomp_options)
+CXXFLAGS_DEV = -g -O0 -Wall -Wshadow -Wno-psabi -DDEV -D_GNU_SOURCE $(INCLUDES) $(vomp_options)
+CXXFLAGS_REL = -O3 -Wall -Wshadow -Wno-psabi -D_GNU_SOURCE $(INCLUDES) $(vomp_options)
LIBPATHS =
}
ac3codec_context_libav->flags |= CODEC_FLAG_TRUNCATED;
+
+#if LIBAVCODEC_VERSION_INT >= AV_VERSION_INT(57, 64, 101)
+ ac3codec_context_libav->request_channel_layout=2;
+#else
ac3codec_context_libav->request_channels=2;
+#endif
int avc_ret = avcodec_open2(ac3codec_context_libav, ac3codec_libav, NULL);
if (avc_ret < 0) {
}
aaclatmcodec_context_libav->flags |= CODEC_FLAG_TRUNCATED;
+#if LIBAVCODEC_VERSION_INT >= AV_VERSION_INT(57, 64, 101)
+ aaclatmcodec_context_libav->request_channel_layout=2;
+#else
aaclatmcodec_context_libav->request_channels=2;
+#endif
avc_ret = avcodec_open2(aaclatmcodec_context_libav, aaclatmcodec_libav, NULL);
if (avc_ret < 0) {
}
mp23codec_context_libav->flags |= CODEC_FLAG_TRUNCATED;
+#if LIBAVCODEC_VERSION_INT >= AV_VERSION_INT(57, 64, 101)
+ mp23codec_context_libav->request_channel_layout=2;
+#else
mp23codec_context_libav->request_channels=2;
+#endif
avc_ret = avcodec_open2(mp23codec_context_libav, mp23codec_libav, NULL);
if (avc_ret < 0) {
av_init_packet(&incoming_paket_libav);
+#if LIBAVCODEC_VERSION_INT >= AV_VERSION_INT(57, 64, 101)
+ decode_frame_libav=av_frame_alloc();
+#else
decode_frame_libav=avcodec_alloc_frame();
+#endif
libav_mutex.Unlock();
decompress_buffer_filled=0;