avcodec: rewrite gif muxing and encoding
authorPaul B Mahol <onemda@gmail.com>
Tue, 11 Dec 2018 10:52:17 +0000 (11:52 +0100)
committerPaul B Mahol <onemda@gmail.com>
Thu, 13 Dec 2018 17:58:48 +0000 (18:58 +0100)
commitfaca28c264bee8ff93637ae69b62d5e974eee8a8
treec70f4484d0acac7b5d647d331e309e452e276d9a
parent102c11745e2da4e3ca248c6faed499bb2af19bd5
avcodec: rewrite gif muxing and encoding

Now "-c copy" works.
Update FATE files.

Demuxer only split file into packets, no data is trimmed.
Encoder & muxer currently expect completely another format
where muxer writes stuff like disposal method which should
be really encoder job.
With this patch muxer only modifies delay between two packets.
Codec copy need to have same behavior between demuxer and
muxer to work correctly.

Fixes #6640.
libavcodec/gif.c
libavformat/gif.c
tests/ref/fate/gifenc-bgr4_byte
tests/ref/fate/gifenc-bgr8
tests/ref/fate/gifenc-gray
tests/ref/fate/gifenc-pal8
tests/ref/fate/gifenc-rgb4_byte
tests/ref/fate/gifenc-rgb8