Commit b173f5c1 authored by wm4's avatar wm4 Committed by Michael Niedermayer

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: 's avatarMichael Niedermayer <michaelni@gmx.at>
parent e2cd28c9
......@@ -817,7 +817,6 @@ retry:
return psize;
fail:
av_free_packet(pkt);
av_free(pkt);
return AVERROR(ENOMEM);
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment