1
0
mirror of https://github.com/cookiengineer/audacity synced 2025-08-05 14:49:25 +02:00

Fix crash bug on on-demand ffmpeg decoding (an experimental)

This commit is contained in:
Paul Licameli 2016-08-06 09:54:31 -04:00
parent b27504e98a
commit 8392a57d34

View File

@ -430,8 +430,8 @@ int ODFFmpegDecoder::Decode(SampleBuffer & data, sampleFormat & format, sampleCo
{
for (int i = 0; i < mChannels.size(); i++)
{
sc->m_pkt.create();
sc = scs[i].get();
sc->m_pkt.create();
if (DecodeFrame(sc, true) == 0)
{
sc->m_pkt.reset();