Skip to content

Commit

Permalink
truncate;
Browse files Browse the repository at this point in the history
  • Loading branch information
RealChuan committed Sep 4, 2023
1 parent 8bf69c2 commit 3d377e8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ffmpeg/audioframeconverter.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -172,7 +172,7 @@ auto AudioFrameConverter::convert(Frame *frame) -> QByteArray
qWarning() << "audio buffer is probably too small";
}
size = len * d_ptr->format.channelCount() * av_get_bytes_per_sample(d_ptr->avSampleFormat);
data.resize(size);
data.truncate(size);

return data;
}
Expand Down

0 comments on commit 3d377e8

Please sign in to comment.