]> git.sesse.net Git - ffmpeg/commit
avformat/webpenc: don't assume animated webp streams will have more than one packet
authorJames Almer <jamrial@gmail.com>
Sun, 11 Apr 2021 01:53:34 +0000 (22:53 -0300)
committerJames Almer <jamrial@gmail.com>
Fri, 16 Apr 2021 14:08:24 +0000 (11:08 -0300)
commit55d667d86af7d13fc5aa2b4071a5b97eb10e2da6
treedefafb67bf489c62ac5ba049c93e2fd3c6e87256
parent2e17b169f74bf8136385c554d36bbf4cabc6537d
avformat/webpenc: don't assume animated webp streams will have more than one packet

The libwebp_animencoder returns a single packet with the entire animated
stream, as that's what the external library produces. As such, only ensure the
stream was produced by said encoder (or propagated by a demuxer, once support
is added) when attempting to write the requested loop value.

Fixes ticket #9179.

Signed-off-by: James Almer <jamrial@gmail.com>
libavformat/webpenc.c