Merge pull request #3819 from arnova/subtitles_for_stacks
[vuplus_xbmc] / lib / ffmpeg / patches / 0016-Speed-up-mpegts-av_find_stream_info.patch
1 From c240357f903f20ba51001fb90aa2de415d5be825 Mon Sep 17 00:00:00 2001
2 From: Joakim Plate <elupus@ecce.se>
3 Date: Mon, 28 Jun 2010 21:26:54 +0000
4 Subject: [PATCH 16/24] Speed up mpegts av_find_stream_info
5
6 ---
7  libavformat/mpegts.c |    7 +++++--
8  1 file changed, 5 insertions(+), 2 deletions(-)
9
10 diff --git a/libavformat/mpegts.c b/libavformat/mpegts.c
11 index c374cb9..6da6db5 100644
12 --- a/libavformat/mpegts.c
13 +++ b/libavformat/mpegts.c
14 @@ -825,7 +825,7 @@ static int mpegts_push_data(MpegTSFilter *filter,
15                          goto skip;
16  
17                      /* stream not present in PMT */
18 -                    if (!pes->st) {
19 +                    if (ts->auto_guess && !pes->st) {
20                          pes->st = avformat_new_stream(ts->stream, NULL);
21                          if (!pes->st)
22                              return AVERROR(ENOMEM);
23 -- 
24 1.7.9.4
25