This fixes trac issue #5417. This is cherry-picked from libav commit d825b1a530. Signed-off-by: Martin Storsjö <martin@martin.st>
d825b1a530
This is cherrypicked from libav, from commits 82b7525173 and d0b1e6049b. Signed-off-by: Martin Storsjö <martin@martin.st>
82b7525173
d0b1e6049b