summaryrefslogtreecommitdiff
path: root/libavformat/mpegts.c
diff options
context:
space:
mode:
authorCarl Eugen Hoyos <cehoyos@ag.or.at>2014-06-09 23:20:14 +0200
committerCarl Eugen Hoyos <cehoyos@ag.or.at>2014-06-09 23:20:14 +0200
commit958168d5056932b50ba052645925e29c5d31bdb5 (patch)
tree647a03f819167ad8e253e5de4a862a7c36ec7b7e /libavformat/mpegts.c
parent3c2d9f86c718f8281b4e2fc0e426f9349c9c4ec6 (diff)
lavf/mpegts: Reduce number of "Predefined SLConfigDescriptor" warnings shown.
Diffstat (limited to 'libavformat/mpegts.c')
-rw-r--r--libavformat/mpegts.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/libavformat/mpegts.c b/libavformat/mpegts.c
index 0a5ac68961..3434341965 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;
}