From 501866a1fab9ee38b5360ae0e0dc0d04cbff1bf6 Mon Sep 17 00:00:00 2001 From: Roine Gustafsson Date: Thu, 27 Jan 2005 15:41:03 +0000 Subject: [PATCH] movenc illegal access patch by Roine Gustafsson Originally committed as revision 3891 to svn://svn.ffmpeg.org/ffmpeg/trunk --- libavformat/movenc.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libavformat/movenc.c b/libavformat/movenc.c index a7d8a9f330..e97b84dc09 100644 --- a/libavformat/movenc.c +++ b/libavformat/movenc.c @@ -1096,7 +1096,7 @@ static int mov_write_udta_tag(ByteIOContext *pb, MOVContext* mov, } /* Encoder */ - if(!(mov->tracks[0].enc->flags & CODEC_FLAG_BITEXACT)) + if(mov->tracks[0].enc && !(mov->tracks[0].enc->flags & CODEC_FLAG_BITEXACT)) { int pos = url_ftell(pb); put_be32(pb, 0); /* size */