Skip to content

Commit

Permalink
Fix ffmpeg compatibility
Browse files Browse the repository at this point in the history
  • Loading branch information
x42 committed Apr 23, 2022
1 parent 2b09cd5 commit 5da512c
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion libharvid/ffcompat.h
Original file line number Diff line number Diff line change
Expand Up @@ -75,8 +75,10 @@ static inline void av_packet_unref (AVPacket *pkt)
#if LIBAVUTIL_VERSION_INT < AV_VERSION_INT(51, 63, 100)
static inline int av_image_get_buffer_size (enum AVPixelFormat pix_fmt, int width, int height, int align)
{
return avpicture_get_size (pix_fmt, width, height)
return avpicture_get_size (pix_fmt, width, height);
}
#else
#include <libavutil/imgutils.h>
#endif

#if LIBAVFORMAT_VERSION_INT < AV_VERSION_INT(53, 2, 0)
Expand Down

0 comments on commit 5da512c

Please sign in to comment.