Commit 8d1a5af7 authored by Baptiste Coudurier's avatar Baptiste Coudurier

cosmetics, reindent, add/remove some empty lines, redundant comment

Originally committed as revision 17205 to svn://svn.ffmpeg.org/ffmpeg/trunk
parent bd3f81f3
...@@ -1103,7 +1103,6 @@ static void mxf_write_index_table_segment(AVFormatContext *s) ...@@ -1103,7 +1103,6 @@ static void mxf_write_index_table_segment(AVFormatContext *s)
put_byte(pb, sc->temporal_reordering); put_byte(pb, sc->temporal_reordering);
if (sc->temporal_reordering) if (sc->temporal_reordering)
temporal_reordering = 1; temporal_reordering = 1;
// slice number
if (i == 0) { // video track if (i == 0) { // video track
put_byte(pb, 0); // slice number put_byte(pb, 0); // slice number
put_be32(pb, KAG_SIZE); // system item size including klv fill put_be32(pb, KAG_SIZE); // system item size including klv fill
...@@ -1207,7 +1206,6 @@ static void mxf_write_partition(AVFormatContext *s, int bodysid, ...@@ -1207,7 +1206,6 @@ static void mxf_write_partition(AVFormatContext *s, int bodysid,
// write klv // write klv
put_buffer(pb, key, 16); put_buffer(pb, key, 16);
klv_encode_ber_length(pb, 88 + 16 * mxf->essence_container_count); klv_encode_ber_length(pb, 88 + 16 * mxf->essence_container_count);
// write partition value // write partition value
...@@ -1473,6 +1471,7 @@ static int mxf_write_header(AVFormatContext *s) ...@@ -1473,6 +1471,7 @@ static int mxf_write_header(AVFormatContext *s)
present[sc->index] = 1; present[sc->index] = 1;
} else } else
present[sc->index]++; present[sc->index]++;
memcpy(sc->track_essence_element_key, mxf_essence_container_uls[sc->index].element_ul, 15); memcpy(sc->track_essence_element_key, mxf_essence_container_uls[sc->index].element_ul, 15);
sc->track_essence_element_key[15] = present[sc->index]; sc->track_essence_element_key[15] = present[sc->index];
PRINT_KEY(s, "track essence element key", sc->track_essence_element_key); PRINT_KEY(s, "track essence element key", sc->track_essence_element_key);
...@@ -1806,6 +1805,7 @@ static int mxf_write_footer(AVFormatContext *s) ...@@ -1806,6 +1805,7 @@ static int mxf_write_footer(AVFormatContext *s)
av_freep(&mxf->timecode_track); av_freep(&mxf->timecode_track);
mxf_free(s); mxf_free(s);
return 0; return 0;
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment