[FFmpeg-trac] #1762(avformat:new): mp4 file with 2 'mp4a' boxes in a 'stsd' box

FFmpeg trac at avcodec.org
Mon Sep 24 05:30:17 CEST 2012


#1762: mp4 file with 2 'mp4a' boxes in a 'stsd' box
-------------------------------------+-------------------------------------
             Reporter:  chungying    |                     Type:  defect
               Status:  new          |                 Priority:  normal
            Component:  avformat     |                  Version:
             Keywords:  mp4 mp4a     |  unspecified
  stsd                               |               Blocked By:
             Blocking:               |  Reproduced by developer:  0
Analyzed by developer:  0            |
-------------------------------------+-------------------------------------
 Summary of the bug:
 There is a mp4 file with 2 'mp4a' boxes in a 'stsd' box.

 Acording to ISO IEC 14496-12, the 'sample_description_index' field in
 'tfhd' box gives the index of the sample entry in 'stsd' box.

 However, in 'ff_mov_read_stsd_entries' always takes the information of the
 last 'mp4a' box instead of read the 'sample_description_index' field.

 Maybe the information of stsd can be recorde as a list and apply the
 information indexed by 'sample_description_index'.



 How to reproduce:
 The file I attached always without sound output.
 Since the value of 'sample_description_index' field in this file is '1',
 but the information applied is in the second 'mp4a' box. (The number of
 entries start from 1.)

-- 
Ticket URL: <https://ffmpeg.org/trac/ffmpeg/ticket/1762>
FFmpeg <http://ffmpeg.org>
FFmpeg issue tracker


More information about the FFmpeg-trac mailing list