You've already forked FFmpeg
mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2025-07-11 14:30:22 +02:00
Use avcodec_free_frame() to free AVFrames.
This commit is contained in:
@ -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)
|
||||
|
Reference in New Issue
Block a user