From a0fec71ebda18997de900980b28eb726373737c3 Mon Sep 17 00:00:00 2001 From: Michael Niedermayer Date: Sun, 29 Sep 2013 14:33:40 +0200 Subject: [PATCH] avformat/mxfenc: instance number is just 24 bits Fixes assertion failure Signed-off-by: Michael Niedermayer --- libavformat/mxfenc.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libavformat/mxfenc.c b/libavformat/mxfenc.c index 51ed2122df..5e77a3f068 100644 --- a/libavformat/mxfenc.c +++ b/libavformat/mxfenc.c @@ -1660,7 +1660,7 @@ static void mxf_gen_umid(AVFormatContext *s) AV_WB64(mxf->umid , umid); AV_WB64(mxf->umid+8, umid>>8); - mxf->instance_number = seed; + mxf->instance_number = seed & 0xFFFFFF; } static int mxf_write_header(AVFormatContext *s)