avcodec/decode: always free private_ref
authorTimo Rothenpieler <timo@rothenpieler.org>
Sat, 11 Nov 2017 11:59:44 +0000 (12:59 +0100)
committerTimo Rothenpieler <timo@rothenpieler.org>
Sat, 11 Nov 2017 13:19:05 +0000 (14:19 +0100)
commit8dd73f68a6319d1784b33da9553671f1a0c197f9
tree75f34af9a62c0b20780838d7a3f9720d2111aa87
parent6a4d1c9063174234ca439244cf8f5f534afa1c28
avcodec/decode: always free private_ref

There is no reason to keep this intact when decoding failed, specially
as private_ref is supposed to always be NULL when a frame is returned to
the user.
libavcodec/decode.c