Mercurial > libavformat.hg
changeset 4533:23ec193c3e0a libavformat
start counting track number from 0
author | bcoudurier |
---|---|
date | Wed, 18 Feb 2009 02:57:41 +0000 |
parents | 32f00d63e3cd |
children | cb5bcf4bfe15 |
files | mxfenc.c |
diffstat | 1 files changed, 4 insertions(+), 6 deletions(-) [+] |
line wrap: on
line diff
--- a/mxfenc.c Wed Feb 18 02:18:52 2009 +0000 +++ b/mxfenc.c Wed Feb 18 02:57:41 2009 +0000 @@ -1466,15 +1466,13 @@ sc->codec_ul = &mxf_essence_container_uls[sc->index].codec_ul; - if (!present[sc->index]) { - present[sc->index] = 1; - mxf->essence_container_count++; - } else - present[sc->index]++; - memcpy(sc->track_essence_element_key, mxf_essence_container_uls[sc->index].element_ul, 15); sc->track_essence_element_key[15] = present[sc->index]; PRINT_KEY(s, "track essence element key", sc->track_essence_element_key); + + if (!present[sc->index]) + mxf->essence_container_count++; + present[sc->index]++; } if (s->oformat == &mxf_d10_muxer) {