Skip to content

Commit

Permalink
ffmpeg lavc 59.0.100 API compatibility -- #11
Browse files Browse the repository at this point in the history
  • Loading branch information
x42 committed Sep 2, 2022
1 parent d35bc4e commit adb8614
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions libharvid/ffdecoder.c
Original file line number Diff line number Diff line change
Expand Up @@ -350,7 +350,11 @@ static void ff_set_framerate(ffst *ff) {

int ff_open_movie(void *ptr, char *file_name, int render_fmt) {
int i;
#if LIBAVCODEC_VERSION_INT < AV_VERSION_INT(59, 0, 100)
AVCodec *pCodec;
#else
AVCodec const* pCodec;
#endif
ffst *ff = (ffst*) ptr;

if (ff->pFrameFMT) {
Expand Down

0 comments on commit adb8614

Please sign in to comment.