You've already forked libopenshot
mirror of
https://github.com/OpenShot/libopenshot.git
synced 2026-03-02 08:53:52 -08:00
Various: Remove unused variables (#467)
Several data members and local variables were flagged by static analysis tools as never being used anywhere in the code.
This commit is contained in:
@@ -1426,8 +1426,6 @@ void FFmpegReader::ProcessAudioPacket(int64_t requested_frame, int64_t target_fr
|
||||
int packet_samples = 0;
|
||||
int data_size = 0;
|
||||
|
||||
// re-initialize buffer size (it gets changed in the avcodec_decode_audio2 method call)
|
||||
int buf_size = AVCODEC_MAX_AUDIO_FRAME_SIZE + MY_INPUT_BUFFER_PADDING_SIZE;
|
||||
#pragma omp critical (ProcessAudioPacket)
|
||||
{
|
||||
#if IS_FFMPEG_3_2
|
||||
@@ -1465,7 +1463,6 @@ void FFmpegReader::ProcessAudioPacket(int64_t requested_frame, int64_t target_fr
|
||||
if (frame_finished) {
|
||||
|
||||
// determine how many samples were decoded
|
||||
int planar = av_sample_fmt_is_planar((AVSampleFormat) AV_GET_CODEC_PIXEL_FORMAT(aStream, aCodecCtx));
|
||||
int plane_size = -1;
|
||||
data_size = av_samples_get_buffer_size(&plane_size,
|
||||
AV_GET_CODEC_ATTRIBUTES(aStream, aCodecCtx)->channels,
|
||||
@@ -1554,7 +1551,7 @@ void FFmpegReader::ProcessAudioPacket(int64_t requested_frame, int64_t target_fr
|
||||
av_opt_set_int(avr, "out_sample_rate", info.sample_rate, 0);
|
||||
av_opt_set_int(avr, "in_channels", info.channels, 0);
|
||||
av_opt_set_int(avr, "out_channels", info.channels, 0);
|
||||
int r = SWR_INIT(avr);
|
||||
SWR_INIT(avr);
|
||||
|
||||
// Convert audio samples
|
||||
nb_samples = SWR_CONVERT(avr, // audio resample context
|
||||
|
||||
Reference in New Issue
Block a user