Commit d493a5c6 authored by bcoudurier's avatar bcoudurier

10l fix mxf_get_essence_container_ul

git-svn-id: file:///var/local/repositories/ffmpeg/trunk@15098 9553f0bf-9b14-0410-a0b8-cfaf0461ba5b
parent 2712280d
......@@ -204,11 +204,10 @@ static int klv_encode_ber_length(ByteIOContext *pb, uint64_t len)
*/
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;
}
......
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