[FFmpeg-trac] #3769(undetermined:new): -moov_size option causes MOV file structure to be corrupted

FFmpeg trac at avcodec.org
Tue Jul 15 14:14:25 CEST 2014


#3769: -moov_size option causes MOV file structure to be corrupted
-------------------------------------+-------------------------------------
             Reporter:  rling        |                    Owner:
                 Type:  defect       |                   Status:  new
             Priority:  normal       |                Component:
              Version:  unspecified  |  undetermined
             Keywords:               |               Resolution:
             Blocking:               |               Blocked By:
Analyzed by developer:  0            |  Reproduced by developer:  0
-------------------------------------+-------------------------------------

Comment (by rling):

 Appears to be related to these lines near 4394-4402 of
 libavformat/movenc.c:
 {{{
 size = mov->reserved_moov_size - (avio_tell(pb) - mov->reserved_moov_pos);
 [...]
 avio_wb32(pb, size);
 ffio_wfourcc(pb, "free");
 for (i = 0; i < size; i++)
     avio_w8(pb, 0);
 }}}
 The code appears to write ''size'' as the atom's size, then write 'free'
 as the tag, then write ''size'' bytes as the atom content. This is a
 violation of atom structure.

--
Ticket URL: <https://trac.ffmpeg.org/ticket/3769#comment:1>
FFmpeg <https://ffmpeg.org>
FFmpeg issue tracker


More information about the FFmpeg-trac mailing list