forked from FFmpeg/FFmpeg
oggdec: use av_freep() instead of av_free()
Signed-off-by: Anton Khirnov <anton@khirnov.net>
This commit is contained in:
parent
26f6b8c571
commit
52512d0a43
1 changed files with 2 additions and 2 deletions
|
@ -245,8 +245,8 @@ ogg_read_page (AVFormatContext * s, int *str)
|
||||||
int n;
|
int n;
|
||||||
|
|
||||||
for (n = 0; n < ogg->nstreams; n++) {
|
for (n = 0; n < ogg->nstreams; n++) {
|
||||||
av_free(ogg->streams[n].buf);
|
av_freep(&ogg->streams[n].buf);
|
||||||
av_free(ogg->streams[n].private);
|
av_freep(&ogg->streams[n].private);
|
||||||
}
|
}
|
||||||
ogg->curidx = -1;
|
ogg->curidx = -1;
|
||||||
ogg->nstreams = 0;
|
ogg->nstreams = 0;
|
||||||
|
|
Loading…
Add table
Reference in a new issue