changeset 3820:4d37219dda5f libavformat

factorize
author bcoudurier
date Sun, 31 Aug 2008 00:26:54 +0000
parents 1df0cc74fd23
children 7a1f6dd123a9
files mxfenc.c
diffstat 1 files changed, 3 insertions(+), 3 deletions(-) [+]
line wrap: on
line diff
--- a/mxfenc.c	Sun Aug 31 00:25:19 2008 +0000
+++ b/mxfenc.c	Sun Aug 31 00:26:54 2008 +0000
@@ -258,11 +258,11 @@
 
     if (write) {
         mxf_write_refs_count(pb, c->essence_container_count);
-        for (i = 0; i < c->essence_container_count; i++)
+        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);
-        av_log(s,AV_LOG_DEBUG, "essence container count:%d\n", c->essence_container_count);
-        for (i = 0; i < c->essence_container_count; i++)
             PRINT_KEY(s, "essence container ul:\n", ff_mxf_essence_container_uls[c->essence_containers_indices[i]].uid);
+        }
     }
     return c->essence_container_count;
 }