mirror of
https://git.ffmpeg.org/ffmpeg.git
synced 2024-09-19 21:06:42 +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>
(cherry picked from commit b173f5c155
)
Conflicts:
libavformat/oggdec.c
(cherry picked from commit a82401b7284e05e2cf6fb89aeed53738af06a7fd)
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
This commit is contained in:
parent
8c8950f982
commit
17f30ab6a1
@ -780,7 +780,6 @@ retry:
|
|||||||
10);
|
10);
|
||||||
if(side_data == NULL) {
|
if(side_data == NULL) {
|
||||||
av_free_packet(pkt);
|
av_free_packet(pkt);
|
||||||
av_free(pkt);
|
|
||||||
return AVERROR(ENOMEM);
|
return AVERROR(ENOMEM);
|
||||||
}
|
}
|
||||||
AV_WL32(side_data + 4, os->end_trimming);
|
AV_WL32(side_data + 4, os->end_trimming);
|
||||||
|
Loading…
Reference in New Issue
Block a user