idroqdec: fix leaking pkt on failure
authorAndreas Cadhalpun <Andreas.Cadhalpun@googlemail.com>
Mon, 28 Nov 2016 23:43:27 +0000 (00:43 +0100)
committerAndreas Cadhalpun <Andreas.Cadhalpun@googlemail.com>
Tue, 29 Nov 2016 23:22:45 +0000 (00:22 +0100)
commitc0175fa92b7edd45a06e4ab16c8e83da0c94a9f6
treea274632551f7176d607a4f1c6b63751d44f1d14b
parent94d3d98246fc10c2b9dec5d30ff647fa450ff835
idroqdec: fix leaking pkt on failure

The code calls av_new_packet a few lines above and the allocated memory
has to be freed in case of an error.

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