diff options
author | Jan Beich <jbeich@FreeBSD.org> | 2018-04-24 13:57:04 +0000 |
---|---|---|
committer | Jan Beich <jbeich@FreeBSD.org> | 2018-04-24 13:57:04 +0000 |
commit | fc88229c648edff6bda5e2e3d2954aaded6ba48e (patch) | |
tree | 168db6761e46789967d8287743d9eca894cc4867 | |
parent | 697ffd06bde0bfa3d3dde6fb4ec0d45de0576665 (diff) | |
download | ports-fc88229c648edff6bda5e2e3d2954aaded6ba48e.tar.gz ports-fc88229c648edff6bda5e2e3d2954aaded6ba48e.zip |
Notes
-rw-r--r-- | audio/moc/files/patch-decoder__plugins_ffmpeg_ffmpeg.c | 32 |
1 files changed, 32 insertions, 0 deletions
diff --git a/audio/moc/files/patch-decoder__plugins_ffmpeg_ffmpeg.c b/audio/moc/files/patch-decoder__plugins_ffmpeg_ffmpeg.c new file mode 100644 index 000000000000..f5183d6d0d02 --- /dev/null +++ b/audio/moc/files/patch-decoder__plugins_ffmpeg_ffmpeg.c @@ -0,0 +1,32 @@ +ffmpeg.c:996:34: error: use of undeclared identifier 'CODEC_CAP_TRUNCATED' + if (data->codec->capabilities & CODEC_CAP_TRUNCATED) + ^ +ffmpeg.c:997:23: error: use of undeclared identifier 'CODEC_FLAG_TRUNCATED' + data->enc->flags |= CODEC_FLAG_TRUNCATED; + ^ +ffmpeg.c:1028:34: error: use of undeclared identifier 'CODEC_CAP_DELAY' + if (data->codec->capabilities & CODEC_CAP_DELAY) + ^ + +--- decoder_plugins/ffmpeg/ffmpeg.c.orig 2016-11-16 00:54:37 UTC ++++ decoder_plugins/ffmpeg/ffmpeg.c +@@ -993,8 +993,8 @@ static void *ffmpeg_open (const char *file) + #endif + + set_downmixing (data); +- if (data->codec->capabilities & CODEC_CAP_TRUNCATED) +- data->enc->flags |= CODEC_FLAG_TRUNCATED; ++ if (data->codec->capabilities & AV_CODEC_CAP_TRUNCATED) ++ data->enc->flags |= AV_CODEC_FLAG_TRUNCATED; + + #ifdef HAVE_AVCODEC_OPEN2 + if (avcodec_open2 (data->enc, data->codec, NULL) < 0) +@@ -1025,7 +1025,7 @@ static void *ffmpeg_open (const char *file) + + data->sample_width = sfmt_Bps (data->fmt); + +- if (data->codec->capabilities & CODEC_CAP_DELAY) ++ if (data->codec->capabilities & AV_CODEC_CAP_DELAY) + data->delay = true; + data->seek_broken = is_seek_broken (data); + data->timing_broken = is_timing_broken (data->ic); |