[SCM] libav/experimental: Clear freed pointer in ffplay.c. Fixes a crash when audio stream is cycled twice.

siretart at users.alioth.debian.org siretart at users.alioth.debian.org
Sun Jun 30 17:01:29 UTC 2013


The following commit has been merged in the experimental branch:
commit bc77fce6ba17cb7c87f7c19751ba22ceba713aca
Author: Ramiro Polla <ramiro.polla at gmail.com>
Date:   Wed Feb 24 14:45:18 2010 +0000

    Clear freed pointer in ffplay.c.
    Fixes a crash when audio stream is cycled twice.
    
    Originally committed as revision 22026 to svn://svn.ffmpeg.org/ffmpeg/trunk

diff --git a/ffplay.c b/ffplay.c
index 101f663..16a4258 100644
--- a/ffplay.c
+++ b/ffplay.c
@@ -1911,6 +1911,7 @@ static void stream_component_close(VideoState *is, int stream_index)
         packet_queue_end(&is->audioq);
         if (is->reformat_ctx)
             av_audio_convert_free(is->reformat_ctx);
+        is->reformat_ctx = NULL;
         break;
     case CODEC_TYPE_VIDEO:
         packet_queue_abort(&is->videoq);

-- 
Libav/FFmpeg packaging



More information about the pkg-multimedia-commits mailing list