Skip to content

Commit

Permalink
Fix ffmpeg plugin build (#793)
Browse files Browse the repository at this point in the history
  • Loading branch information
rien333 authored and flyingmutant committed Apr 22, 2018
1 parent 20a738d commit b595b8c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions ip/ffmpeg.c
Expand Up @@ -182,8 +182,8 @@ static int ffmpeg_open(struct input_plugin_data *ip_data)
break;
}

if (codec->capabilities & CODEC_CAP_TRUNCATED)
cc->flags |= CODEC_FLAG_TRUNCATED;
if (codec->capabilities & AV_CODEC_CAP_TRUNCATED)
cc->flags |= AV_CODEC_FLAG_TRUNCATED;

if (avcodec_open2(cc, codec, NULL) < 0) {
d_print("could not open codec: %d, %s\n", cc->codec_id, avcodec_get_name(cc->codec_id));
Expand Down

0 comments on commit b595b8c

Please sign in to comment.