avcodec/pngdec: mark previous_picture as done on end of decode_frame_common()
authorMichael Niedermayer <michael@niedermayer.cc>
Mon, 28 Sep 2015 00:42:39 +0000 (02:42 +0200)
committerMichael Niedermayer <michael@niedermayer.cc>
Wed, 30 Sep 2015 23:11:45 +0000 (01:11 +0200)
commit9e9d731b510666edac3a2b450dfc331279db818b
tree79851eefbfe0153894565236adf11defc74801a8
parentdabea74d0e82ea80cd344f630497cafcb3ef872c
avcodec/pngdec: mark previous_picture as done on end of decode_frame_common()

Fixes deadlock with threads

Found-by: Paul B Mahol
Reviewed-by: Paul B Mahol <onemda@gmail.com>
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
libavcodec/pngdec.c