[FFmpeg-cvslog] lavf/mpegts: Reduce number of "Predefined SLConfigDescriptor" warnings shown.

Carl Eugen Hoyos git at videolan.org
Mon Jun 9 23:22:58 CEST 2014


ffmpeg | branch: master | Carl Eugen Hoyos <cehoyos at ag.or.at> | Mon Jun  9 23:20:14 2014 +0200| [958168d5056932b50ba052645925e29c5d31bdb5] | committer: Carl Eugen Hoyos

lavf/mpegts: Reduce number of "Predefined SLConfigDescriptor" warnings shown.

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

 libavformat/mpegts.c |    4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/libavformat/mpegts.c b/libavformat/mpegts.c
index 0a5ac68..3434341 100644
--- a/libavformat/mpegts.c
+++ b/libavformat/mpegts.c
@@ -1186,6 +1186,7 @@ typedef struct {
     int descr_count;
     int max_descr_count;
     int level;
+    int predefined_SLConfigDescriptor_seen;
 } MP4DescrParseContext;
 
 static int init_MP4DescrParseContext(MP4DescrParseContext *d, AVFormatContext *s,
@@ -1321,8 +1322,9 @@ static int parse_MP4SLDescrTag(MP4DescrParseContext *d, int64_t off, int len)
         descr->sl.degr_prior_len     = lengths >> 12;
         descr->sl.au_seq_num_len     = (lengths >> 7) & 0x1f;
         descr->sl.packet_seq_num_len = (lengths >> 2) & 0x1f;
-    } else {
+    } else if (!d->predefined_SLConfigDescriptor_seen){
         avpriv_report_missing_feature(d->s, "Predefined SLConfigDescriptor");
+        d->predefined_SLConfigDescriptor_seen = 1;
     }
     return 0;
 }



More information about the ffmpeg-cvslog mailing list