# HG changeset patch # User bcoudurier # Date 1220151313 0 # Node ID cbcb37ccda1ef7711ffb7ae27e5e09168831ace7 # Parent 778af58056b64c0683ca6e115bf5a34cd976aeec 10l fix mxf_get_essence_container_ul diff -r 778af58056b6 -r cbcb37ccda1e mxfenc.c --- 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; }