Browse Source

obs-ffmpeg: Fix warnings with FFmpeg 3.0.0+

Fixes warnings with deprecated function av_free_packet (which was
replaced by av_packet_unref)
jp9000 9 years ago
parent
commit
cdcb8d1f81
1 changed files with 3 additions and 0 deletions
  1. 3 0
      plugins/obs-ffmpeg/obs-ffmpeg-compat.h

+ 3 - 0
plugins/obs-ffmpeg/obs-ffmpeg-compat.h

@@ -20,3 +20,6 @@
 # define av_frame_free avcodec_free_frame
 #endif
 
+#if LIBAVCODEC_VERSION_MAJOR >= 57
+#define av_free_packet av_packet_unref
+#endif