Mercurial > libavformat.hg
comparison mxf.c @ 1396:069c0c5a1baf libavformat
skip packet if no stream index is found, fix proxy_pal030926.mxf
author | bcoudurier |
---|---|
date | Tue, 17 Oct 2006 11:30:22 +0000 |
parents | c956d0ce5e91 |
children | 927cc72c6cac |
comparison
equal
deleted
inserted
replaced
1395:c956d0ce5e91 | 1396:069c0c5a1baf |
---|---|
263 #endif | 263 #endif |
264 if (IS_KLV_KEY(klv.key, mxf_essence_element_key)) { | 264 if (IS_KLV_KEY(klv.key, mxf_essence_element_key)) { |
265 int index = mxf_get_stream_index(s, &klv); | 265 int index = mxf_get_stream_index(s, &klv); |
266 if (index < 0) { | 266 if (index < 0) { |
267 av_log(s, AV_LOG_ERROR, "error getting stream index\n"); | 267 av_log(s, AV_LOG_ERROR, "error getting stream index\n"); |
268 url_fskip(&s->pb, klv.length); | |
268 return -1; | 269 return -1; |
269 } | 270 } |
270 /* check for 8 channels AES3 element */ | 271 /* check for 8 channels AES3 element */ |
271 if (klv.key[12] == 0x06 && klv.key[13] == 0x01 && klv.key[14] == 0x10) { | 272 if (klv.key[12] == 0x06 && klv.key[13] == 0x01 && klv.key[14] == 0x10) { |
272 if (mxf_get_d10_aes3_packet(&s->pb, s->streams[index], pkt, klv.length) < 0) { | 273 if (mxf_get_d10_aes3_packet(&s->pb, s->streams[index], pkt, klv.length) < 0) { |