diff --git a/libavformat/mxfenc.c b/libavformat/mxfenc.c index d0831786c0..0a0c24657d 100644 --- a/libavformat/mxfenc.c +++ b/libavformat/mxfenc.c @@ -256,12 +256,12 @@ static void mxf_write_essence_container_refs(AVFormatContext *s) ByteIOContext *pb = s->pb; int i; - mxf_write_refs_count(pb, c->essence_container_count); - av_log(s,AV_LOG_DEBUG, "essence container count:%d\n", c->essence_container_count); - for (i = 0; i < c->essence_container_count; i++) { - put_buffer(pb, ff_mxf_essence_container_uls[c->essence_containers_indices[i]].uid, 16); - PRINT_KEY(s, "essence container ul:\n", ff_mxf_essence_container_uls[c->essence_containers_indices[i]].uid); - } + mxf_write_refs_count(pb, c->essence_container_count); + av_log(s,AV_LOG_DEBUG, "essence container count:%d\n", c->essence_container_count); + for (i = 0; i < c->essence_container_count; i++) { + put_buffer(pb, ff_mxf_essence_container_uls[c->essence_containers_indices[i]].uid, 16); + PRINT_KEY(s, "essence container ul:\n", ff_mxf_essence_container_uls[c->essence_containers_indices[i]].uid); + } } static void mxf_write_preface(AVFormatContext *s)