OSDN Git Service

mpeg12dec: unref discarded picture from extradata
authorAndreas Cadhalpun <Andreas.Cadhalpun@googlemail.com>
Thu, 20 Oct 2016 20:51:55 +0000 (22:51 +0200)
committerAndreas Cadhalpun <Andreas.Cadhalpun@googlemail.com>
Fri, 21 Oct 2016 17:41:29 +0000 (19:41 +0200)
commita92f8edf0c51781e152651cce2e753ad6e359eb2
tree7fa1a7bd1af4962ca6a3a3b3b71e14f9c08bdc56
parent1966ea012fd72abc8003e95dc3c8ad9e9f197913
mpeg12dec: unref discarded picture from extradata

Otherwise another frame gets referenced into picture, triggering an assert
(from commit 13aae8) in av_frame_ref.

Reviewed-by: Michael Niedermayer <michael@niedermayer.cc>
Signed-off-by: Andreas Cadhalpun <Andreas.Cadhalpun@googlemail.com>
libavcodec/mpeg12dec.c