mirror of https://github.com/mgba-emu/mgba.git
FFmpeg: Remove disused fields
This commit is contained in:
parent
0e0ce67778
commit
000be71c5a
|
@ -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;
|
||||
|
|
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue