Merge branch 'v0.19.x'
This commit is contained in:
commit
33fdaa5b6d
6
NEWS
6
NEWS
@ -52,6 +52,12 @@ ver 0.20 (not yet released)
|
|||||||
* update
|
* update
|
||||||
- apply .mpdignore matches to subdirectories
|
- apply .mpdignore matches to subdirectories
|
||||||
|
|
||||||
|
ver 0.19.15 (not yet released)
|
||||||
|
* decoder
|
||||||
|
- ffmpeg: support FFmpeg 3.0
|
||||||
|
- ffmpeg: use as fallback instead of "mad" if no plugin matches
|
||||||
|
* fix more build failures on non-glibc builds due to constexpr Mutex
|
||||||
|
|
||||||
ver 0.19.14 (2016/03/18)
|
ver 0.19.14 (2016/03/18)
|
||||||
* decoder
|
* decoder
|
||||||
- dsdiff: fix off-by-one buffer overflow
|
- dsdiff: fix off-by-one buffer overflow
|
||||||
|
@ -236,7 +236,11 @@ decoder_run_stream_fallback(Decoder &decoder, InputStream &is)
|
|||||||
{
|
{
|
||||||
const struct DecoderPlugin *plugin;
|
const struct DecoderPlugin *plugin;
|
||||||
|
|
||||||
|
#ifdef HAVE_FFMPEG
|
||||||
|
plugin = decoder_plugin_from_name("ffmpeg");
|
||||||
|
#else
|
||||||
plugin = decoder_plugin_from_name("mad");
|
plugin = decoder_plugin_from_name("mad");
|
||||||
|
#endif
|
||||||
return plugin != nullptr && plugin->stream_decode != nullptr &&
|
return plugin != nullptr && plugin->stream_decode != nullptr &&
|
||||||
decoder_stream_decode(*plugin, decoder, is);
|
decoder_stream_decode(*plugin, decoder, is);
|
||||||
}
|
}
|
||||||
|
@ -185,7 +185,7 @@ PtsToPcmFrame(uint64_t pts, const AVStream &stream,
|
|||||||
*/
|
*/
|
||||||
static DecoderCommand
|
static DecoderCommand
|
||||||
ffmpeg_send_packet(Decoder &decoder, InputStream &is,
|
ffmpeg_send_packet(Decoder &decoder, InputStream &is,
|
||||||
AVPacket packet,
|
AVPacket &&packet,
|
||||||
AVCodecContext &codec_context,
|
AVCodecContext &codec_context,
|
||||||
const AVStream &stream,
|
const AVStream &stream,
|
||||||
AVFrame &frame,
|
AVFrame &frame,
|
||||||
@ -560,7 +560,8 @@ FfmpegDecode(Decoder &decoder, InputStream &input,
|
|||||||
|
|
||||||
if (packet.stream_index == audio_stream) {
|
if (packet.stream_index == audio_stream) {
|
||||||
cmd = ffmpeg_send_packet(decoder, input,
|
cmd = ffmpeg_send_packet(decoder, input,
|
||||||
packet, codec_context,
|
std::move(packet),
|
||||||
|
codec_context,
|
||||||
av_stream,
|
av_stream,
|
||||||
*frame,
|
*frame,
|
||||||
min_frame, audio_format.GetFrameSize(),
|
min_frame, audio_format.GetFrameSize(),
|
||||||
@ -569,7 +570,11 @@ FfmpegDecode(Decoder &decoder, InputStream &input,
|
|||||||
} else
|
} else
|
||||||
cmd = decoder_get_command(decoder);
|
cmd = decoder_get_command(decoder);
|
||||||
|
|
||||||
|
#if LIBAVCODEC_VERSION_INT >= AV_VERSION_INT(56, 25, 100)
|
||||||
|
av_packet_unref(&packet);
|
||||||
|
#else
|
||||||
av_free_packet(&packet);
|
av_free_packet(&packet);
|
||||||
|
#endif
|
||||||
}
|
}
|
||||||
|
|
||||||
#if LIBAVUTIL_VERSION_MAJOR >= 53
|
#if LIBAVUTIL_VERSION_MAJOR >= 53
|
||||||
|
Loading…
Reference in New Issue
Block a user