Mercurial > libavformat.hg
changeset 3117:021b8af968cd libavformat
support AVDISCARD_ALL
author | bcoudurier |
---|---|
date | Thu, 06 Mar 2008 13:40:29 +0000 |
parents | 62255978fe94 |
children | 4410d9725469 |
files | mxf.c |
diffstat | 1 files changed, 3 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/mxf.c Thu Mar 06 00:26:48 2008 +0000 +++ b/mxf.c Thu Mar 06 13:40:29 2008 +0000 @@ -353,6 +353,8 @@ url_fskip(s->pb, klv.length); return -1; } + if (s->streams[index]->discard == AVDISCARD_ALL) + goto skip; /* check for 8 channels AES3 element */ if (klv.key[12] == 0x06 && klv.key[13] == 0x01 && klv.key[14] == 0x10) { if (mxf_get_d10_aes3_packet(s->pb, s->streams[index], pkt, klv.length) < 0) { @@ -365,6 +367,7 @@ pkt->pos = klv.offset; return 0; } else + skip: url_fskip(s->pb, klv.length); } return AVERROR(EIO);