changeset 3837:cbcb37ccda1e libavformat

10l fix mxf_get_essence_container_ul
author bcoudurier
date Sun, 31 Aug 2008 02:55:13 +0000
parents 778af58056b6
children 940130a27ee0
files mxfenc.c
diffstat 1 files changed, 1 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/mxfenc.c	Sun Aug 31 02:50:25 2008 +0000
+++ b/mxfenc.c	Sun Aug 31 02:55:13 2008 +0000
@@ -204,11 +204,10 @@
  */
 static const UID *mxf_get_essence_container_ul(enum CodecID type, int *index)
 {
-    const MXFContainerEssencePair *uls = mxf_essence_container_uls;
     for (*index = 0; *index < sizeof(mxf_essence_container_uls)/
                               sizeof(*mxf_essence_container_uls); (*index)++)
         if (mxf_essence_container_uls[*index].id == type)
-            return &uls->container_ul;
+            return &mxf_essence_container_uls[*index].container_ul;
     *index = -1;
     return NULL;
 }