[FFmpeg-trac] #8815(avformat:new): pssh boxes are ignored when present before trak box

FFmpeg trac at avcodec.org
Mon Aug 31 03:47:44 EEST 2020

#8815: pssh boxes are ignored when present before trak box
             Reporter:  panpawel88  |                    Owner:
                 Type:  defect      |                   Status:  new
             Priority:  normal      |                Component:  avformat
              Version:  git-master  |               Resolution:
             Keywords:  mov         |               Blocked By:
             Blocking:              |  Reproduced by developer:  0
Analyzed by developer:  0           |

Comment (by cmiceli):

 I took a look at ISO 23001-7 and on page 7 it describes the PSSH atom. I'm
 not sure about if I can quote it directly (legally) however it does state
 that the PSSH box only needs to be a part of the moov/moof atom, not that
 the order is meant to be after the trak atom.

 Regarding a fix, it would more than likely involve trying to process this
 after the trak somehow (I'm very new to the codebase) but the side data
 can only be added to streams which "exist" at the time of processing the
 PSSH box.

 This would actually be a problem in a case where you have multiple
 streams, one with PSSH after the trak and one before because the code will
 just grab the last stream.

Ticket URL: <https://trac.ffmpeg.org/ticket/8815#comment:2>
FFmpeg <https://ffmpeg.org>
FFmpeg issue tracker

More information about the FFmpeg-trac mailing list