Yet more fixes for old ffmpeg.
authorSteinar H. Gunderson <sgunderson@bigfoot.com>
Thu, 12 Mar 2015 23:09:08 +0000 (00:09 +0100)
committerSteinar H. Gunderson <sgunderson@bigfoot.com>
Thu, 12 Mar 2015 23:09:08 +0000 (00:09 +0100)
audioreader.cpp

index 6a9c5cf..1f95f13 100644 (file)
@@ -42,11 +42,13 @@ struct AVPacketDeleter {
        }
 };
 
+#if (LIBAVCODEC_VERSION_MAJOR >= 55)
 struct AVFrameDeleter {
        void operator() (AVFrame *frame) {
                av_frame_free(&frame);
        }
 };
+#endif
 
 struct AVSampleDeleter {
        void operator() (uint8_t *data) {