mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2025-07-01 13:36:26 +08:00
10l fix mxf_get_essence_container_ul
Originally committed as revision 15098 to svn://svn.ffmpeg.org/ffmpeg/trunk
This commit is contained in:
@ -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)
|
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)/
|
for (*index = 0; *index < sizeof(mxf_essence_container_uls)/
|
||||||
sizeof(*mxf_essence_container_uls); (*index)++)
|
sizeof(*mxf_essence_container_uls); (*index)++)
|
||||||
if (mxf_essence_container_uls[*index].id == type)
|
if (mxf_essence_container_uls[*index].id == type)
|
||||||
return &uls->container_ul;
|
return &mxf_essence_container_uls[*index].container_ul;
|
||||||
*index = -1;
|
*index = -1;
|
||||||
return NULL;
|
return NULL;
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user