]> git.sesse.net Git - c64tapwav/commitdiff
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 6a9c5cf6d644661b6ab3a99727cafaff587587aa..1f95f131e495d6020efc7ecd3a0c391a896d952d 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) {