]> git.sesse.net Git - ffmpeg/commit
avformat/matroskadec: Fix demuxing ProRes
authorAndreas Rheinhardt <andreas.rheinhardt@gmail.com>
Sat, 28 Sep 2019 17:54:25 +0000 (19:54 +0200)
committerJames Almer <jamrial@gmail.com>
Fri, 4 Oct 2019 03:06:30 +0000 (00:06 -0300)
commit581419ea39de6619c3389b8d10ac2cbe212c62a0
treee6d0c297b10356960fb963c4c0e93fd21183bb76
parent379e5d29d50ef957a65cfd536bc8c0713755fb77
avformat/matroskadec: Fix demuxing ProRes

The structure of a ProRes frame in mov/mp4 is that of a typical atom:
First a 32 bit BE size field, then a tag detailling the content. Said
size field includes the eight bytes of the atom header.

This header is actually redundant, as the size of the atom is already
known from the containing atom. It is therefore stripped away when muxed
into Matroska and so the Matroska demuxer has to recreate upon demuxing.
But it did not account for the fact that the size field includes the
size of the header and this can lead to problems when a decoder uses the
in-band size field.

Fixes ticket #8210.

Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@gmail.com>
Signed-off-by: James Almer <jamrial@gmail.com>
libavformat/matroskadec.c