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>
pull/88/head
wm4 10 years ago committed by Michael Niedermayer
parent e2cd28c926
commit b173f5c155
  1. 1
      libavformat/oggdec.c

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

Loading…
Cancel
Save