Skip to content

Commit

Permalink
Remove AV_CODEC_{CAP,FLAG}_TRUNCATED for FFmpeg 6 compatibility
Browse files Browse the repository at this point in the history
Closes cmus#1251
  • Loading branch information
gavtroy authored and flyingmutant committed Jul 8, 2023
1 parent 3d2f571 commit 07ce2dc
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions ip/ffmpeg.c
Original file line number Diff line number Diff line change
Expand Up @@ -202,9 +202,6 @@ static int ffmpeg_open(struct input_plugin_data *ip_data)
break;
}

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));
err = -IP_ERROR_UNSUPPORTED_FILE_TYPE;
Expand Down

0 comments on commit 07ce2dc

Please sign in to comment.