Use avcodec_free_frame() to free AVFrames.
This commit is contained in:
parent
9eb296572e
commit
11d1ca4b2c
5 changed files with 10 additions and 9 deletions
|
@ -165,6 +165,7 @@ static void write_audio_frame(AVFormatContext *oc, AVStream *st)
|
|||
fprintf(stderr, "Error while writing audio frame\n");
|
||||
exit(1);
|
||||
}
|
||||
avcodec_free_frame(&frame);
|
||||
}
|
||||
|
||||
static void close_audio(AVFormatContext *oc, AVStream *st)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue