FFmpeg: Remove disused fields

This commit is contained in:
Vicki Pfau 2021-08-21 18:29:24 -07:00
parent 0e0ce67778
commit 000be71c5a
2 changed files with 0 additions and 7 deletions

View File

@ -86,7 +86,6 @@ void FFmpegEncoderInit(struct FFmpegEncoder* encoder) {
encoder->audioStream = NULL;
encoder->audioFrame = NULL;
encoder->audioBuffer = NULL;
encoder->postaudioBuffer = NULL;
encoder->video = NULL;
encoder->videoStream = NULL;
encoder->videoFrame = NULL;
@ -562,10 +561,6 @@ void FFmpegEncoderClose(struct FFmpegEncoder* encoder) {
avio_close(encoder->context->pb);
}
if (encoder->postaudioBuffer) {
av_free(encoder->postaudioBuffer);
encoder->postaudioBuffer = NULL;
}
if (encoder->audioBuffer) {
av_free(encoder->audioBuffer);
encoder->audioBuffer = NULL;

View File

@ -33,8 +33,6 @@ struct FFmpegEncoder {
int sampleRate;
uint16_t* audioBuffer;
size_t audioBufferSize;
uint16_t* postaudioBuffer;
size_t postaudioBufferSize;
AVFrame* audioFrame;
size_t currentAudioSample;
int64_t currentAudioFrame;