[FFmpeg-cvslog] avformat/mpeg: Forward whitelists to the mpegps demuxer

Michael Niedermayer git at videolan.org
Thu Oct 23 18:38:33 CEST 2014


ffmpeg | branch: master | Michael Niedermayer <michaelni at gmx.at> | Thu Oct 23 16:07:00 2014 +0200| [ad83cfec5ad2079acf2defcae1b578446b1d21da] | committer: Michael Niedermayer

avformat/mpeg: Forward whitelists to the mpegps demuxer

Signed-off-by: Michael Niedermayer <michaelni at gmx.at>

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=ad83cfec5ad2079acf2defcae1b578446b1d21da
---

 libavformat/mpeg.c |    8 ++++++++
 1 file changed, 8 insertions(+)

diff --git a/libavformat/mpeg.c b/libavformat/mpeg.c
index b153727..09af46e 100644
--- a/libavformat/mpeg.c
+++ b/libavformat/mpeg.c
@@ -695,6 +695,14 @@ static int vobsub_read_header(AVFormatContext *s)
     }
     memcpy(ext, !strncmp(ext, "IDX", 3) ? "SUB" : "sub", 3);
     av_log(s, AV_LOG_VERBOSE, "IDX/SUB: %s -> %s\n", s->filename, sub_name);
+
+    vobsub->sub_ctx = avformat_alloc_context();
+    if (!vobsub->sub_ctx)
+        return AVERROR(ENOMEM);
+
+    vobsub->sub_ctx-> codec_whitelist = av_strdup(s->codec_whitelist);
+    vobsub->sub_ctx->format_whitelist = av_strdup(s->format_whitelist);
+
     ret = avformat_open_input(&vobsub->sub_ctx, sub_name, &ff_mpegps_demuxer, NULL);
     if (ret < 0) {
         av_log(s, AV_LOG_ERROR, "Unable to open %s as MPEG subtitles\n", sub_name);



More information about the ffmpeg-cvslog mailing list