oggdec: fix invalid free on error

The read_packet callback passes a pointer to a stack-allocated AVPacket.
Attempting to free it with av_free() makes no sense.

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
This commit is contained in:
wm4 2014-08-30 15:39:15 +02:00 committed by Michael Niedermayer
parent e2cd28c926
commit b173f5c155

View File

@ -817,7 +817,6 @@ retry:
return psize;
fail:
av_free_packet(pkt);
av_free(pkt);
return AVERROR(ENOMEM);
}