Ignore errors from avcodec_send_packet.
[dcpomatic.git] / src / lib / ffmpeg_file_encoder.h
index 8a727106a7fe44194ceb72b957ea0cff4b0ce7c7..9f3d88551266b26a184f03fa37f2d4f34e690e36 100644 (file)
 #include "event_history.h"
 #include "audio_mapping.h"
 #include "log.h"
+#include "warnings.h"
 #include <dcp/key.h>
+DCPOMATIC_DISABLE_WARNINGS
 extern "C" {
 #include <libavcodec/avcodec.h>
 #include <libavformat/avformat.h>
 }
+DCPOMATIC_ENABLE_WARNINGS
 
 
 class ExportAudioStream;
@@ -70,7 +73,7 @@ private:
        static void buffer_free(void* opaque, uint8_t* data);
        void buffer_free2(uint8_t* data);
 
-       AVCodec* _video_codec = nullptr;
+       AVCodec const * _video_codec = nullptr;
        AVCodecContext* _video_codec_context = nullptr;
        std::vector<std::shared_ptr<ExportAudioStream>> _audio_streams;
        bool _audio_stream_per_channel;