The cirros image was rebuilt against the 3.13.0-83 kernel, drivers e1000e, igbvf...
[packages/trusty/cirros-testvm.git] / cirros-testvm / src-cirros / buildroot-2015.05 / package / ffmpeg / 0006-Don-t-reparse-PMT-unless-it-s-version-has-changed.patch
1 From db98fbe37f2f7175ff03b8d582e940518ddf3642 Mon Sep 17 00:00:00 2001
2 From: Joakim Plate <elupus@ecce.se>
3 Date: Sun, 18 Sep 2011 19:17:23 +0200
4 Subject: [PATCH 06/13] Don't reparse PMT unless it's version has changed
5
6 Patch part of the XBMC patch set for ffmpeg, downloaded from
7 https://github.com/xbmc/FFmpeg/.
8
9 Signed-off-by: Bernd Kuhls <bernd.kuhls@t-online.de>
10 Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
11 ---
12  libavformat/mpegts.c | 6 ++++++
13  1 file changed, 6 insertions(+)
14
15 diff --git a/libavformat/mpegts.c b/libavformat/mpegts.c
16 index 9f85aed..25007a6 100644
17 --- a/libavformat/mpegts.c
18 +++ b/libavformat/mpegts.c
19 @@ -88,6 +88,7 @@ struct MpegTSFilter {
20      int es_id;
21      int last_cc; /* last cc code (-1 if first packet) */
22      int64_t last_pcr;
23 +    int last_version; /* last version of data on this pid */
24      enum MpegTSFilterType type;
25      union {
26          MpegTSPESFilter pes_filter;
27 @@ -450,6 +451,7 @@ static MpegTSFilter *mpegts_open_filter(MpegTSContext *ts, unsigned int pid,
28      filter->es_id   = -1;
29      filter->last_cc = -1;
30      filter->last_pcr= -1;
31 +    filter->last_version = -1;
32  
33      return filter;
34  }
35 @@ -1972,6 +1974,10 @@ static void pat_cb(MpegTSFilter *filter, const uint8_t *section, int section_len
36          return;
37      if (!h->current)
38          return;
39 +    if (h->version == filter->last_version)
40 +        return;
41 +    filter->last_version = h->version;
42 +    av_dlog(ts->stream, "version=%d\n", filter->last_version);
43  
44      ts->stream->ts_id = h->id;
45  
46 -- 
47 2.1.0
48