Ver código fonte

Fix a possible crash when a packet was freed on audio playback

Signed-off-by: Alexis Maiquez <almamu@almamu.com>
Alexis Maiquez 3 anos atrás
pai
commit
476d45be0a
1 arquivos alterados com 1 adições e 1 exclusões
  1. 1 1
      src/WallpaperEngine/Audio/CAudioStream.cpp

+ 1 - 1
src/WallpaperEngine/Audio/CAudioStream.cpp

@@ -57,7 +57,7 @@ int audio_read_thread (void* arg)
         if (packet->stream_index == stream->getAudioStream ())
         if (packet->stream_index == stream->getAudioStream ())
             stream->queuePacket (packet);
             stream->queuePacket (packet);
         else
         else
-            av_packet_free (&packet);
+            av_packet_unref (packet);
 
 
         if (stream->isInitialized () == false)
         if (stream->isInitialized () == false)
             break;
             break;