Revert "apngdec: use side data to pass extradata to the decoder"
authorJames Almer <jamrial@gmail.com>
Fri, 18 Nov 2016 15:08:54 +0000 (12:08 -0300)
committerJames Almer <jamrial@gmail.com>
Fri, 18 Nov 2016 15:33:21 +0000 (12:33 -0300)
commitcf655d1643342e2c8b7c9dd895580d03948f5b18
tree55bb6c47f56280218c6823086be7a94e4e90267d
parent31c9c7ad826e6dedf8ca615c7d32f6b518ceddea
Revert "apngdec: use side data to pass extradata to the decoder"

This reverts commit e0c6b32046f4bab7d34be77dd2f03b2a80c86d39.

Said commit changed the behavior of the demuxer and decoder in a non
backwards compatible way.
Demuxers should make extradata available at init if possible, and send
new extradata as side data within a packet if needed.

A better fix for the remuxing crash will follow.

Signed-off-by: James Almer <jamrial@gmail.com>
(cherry picked from commit 16c429166ddf1736972b6ccce84bd3509ec16a34)
libavcodec/pngdec.c
libavformat/apngdec.c
tests/lavf-regression.sh
tests/ref/lavf/apng