Browse Source

movenc illegal access patch by Roine Gustafsson <roine AT users DOT sourceforge DOT net>

Originally committed as revision 3891 to svn://svn.ffmpeg.org/ffmpeg/trunk
tags/v0.5
Roine Gustafsson François Revol 21 years ago
parent
commit
501866a1fa
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      libavformat/movenc.c

+ 1
- 1
libavformat/movenc.c View File

@@ -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 */


Loading…
Cancel
Save