mirror of
https://github.com/librempeg/librempeg
synced 2024-11-22 18:49:58 +00:00
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:
parent
e2cd28c926
commit
b173f5c155
@ -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…
Reference in New Issue
Block a user