]> git.sesse.net Git - ffmpeg/commit
lavc/pngdec: restructure exporting frame meta/side data
authorAnton Khirnov <anton@khirnov.net>
Sat, 20 Mar 2021 18:57:25 +0000 (19:57 +0100)
committerAnton Khirnov <anton@khirnov.net>
Thu, 8 Apr 2021 09:03:15 +0000 (11:03 +0200)
commit8d74baccff59192d395735036cd40a131a140391
tree242eb9255afcf9b32c74e41c469059bf64bbcaa8
parent89ea5057bf47880145419341258eadb3635448cf
lavc/pngdec: restructure exporting frame meta/side data

This data cannot be stored in PNGDecContext.picture, because the
corresponding chunks may be read after the call to
ff_thread_finish_setup(), at which point modifying shared context data
is a race.

Store intermediate state in the context and then write it directly to
the output frame.

Fixes exporting frame metadata after 5663301560
Fixes #8972

Found-by: Andreas Rheinhardt <andreas.rheinhardt@gmail.com>
libavcodec/pngdec.c