diff options
author | Ilya Tumaykin <itumaykin@gmail.com> | 2016-02-29 17:29:43 +0300 |
---|---|---|
committer | Ilya Tumaykin <itumaykin@gmail.com> | 2016-02-29 22:28:40 +0300 |
commit | b0ec4ce8cebbb5373b02c7ef2d45953596767667 (patch) | |
tree | 190dc9fabfcb823e59e6ab70b5c74663984cc9c1 /media-video/mpv/files | |
parent | media-video/mpv: explicitly disable opensles in 9999 (diff) | |
download | gentoo-b0ec4ce8cebbb5373b02c7ef2d45953596767667.tar.gz gentoo-b0ec4ce8cebbb5373b02c7ef2d45953596767667.tar.bz2 gentoo-b0ec4ce8cebbb5373b02c7ef2d45953596767667.zip |
media-video/mpv: verbump to 0.16.0
Gentoo-Bug: 575976
Package-Manager: portage-2.2.27
Diffstat (limited to 'media-video/mpv/files')
-rw-r--r-- | media-video/mpv/files/mpv-0.16.0-fix-srt-subtitles-on-libav.patch | 29 |
1 files changed, 29 insertions, 0 deletions
diff --git a/media-video/mpv/files/mpv-0.16.0-fix-srt-subtitles-on-libav.patch b/media-video/mpv/files/mpv-0.16.0-fix-srt-subtitles-on-libav.patch new file mode 100644 index 000000000000..4344e78e7ac9 --- /dev/null +++ b/media-video/mpv/files/mpv-0.16.0-fix-srt-subtitles-on-libav.patch @@ -0,0 +1,29 @@ +commit 041c9f1782cbed4abf7793f4e72b8b29b2fd9b1b +Author: wm4 <wm4@nowhere> +Date: Mon Feb 29 18:20:27 2016 +0100 + + lavc_conv: fix Libav srt subtitles + + Use the mp_lavc_set_extradata() function instead of setting up the + extradata manually. This takes care of the corner case when + extradata_len is 0. + + This apparently fixes #2888. + +diff --git a/sub/lavc_conv.c b/sub/lavc_conv.c +index 3dd6097..7303020 100644 +--- a/sub/lavc_conv.c ++++ b/sub/lavc_conv.c +@@ -79,11 +79,8 @@ struct lavc_conv *lavc_conv_create(struct mp_log *log, const char *codec_name, + avctx = avcodec_alloc_context3(codec); + if (!avctx) + goto error; +- avctx->extradata_size = extradata_len; +- avctx->extradata = av_malloc(extradata_len); +- if (!avctx->extradata) ++ if (mp_lavc_set_extradata(avctx, extradata, extradata_len) < 0) + goto error; +- memcpy(avctx->extradata, extradata, extradata_len); + if (strcmp(codec_name, "eia_608") == 0) + av_dict_set(&opts, "real_time", "1", 0); + if (avcodec_open2(avctx, codec, &opts) < 0) |