Browse code

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

Ramiro Polla authored on 2010/02/24 23:45:18
Showing 1 changed files
... ...
@@ -1911,6 +1911,7 @@ static void stream_component_close(VideoState *is, int stream_index)
1911 1911
         packet_queue_end(&is->audioq);
1912 1912
         if (is->reformat_ctx)
1913 1913
             av_audio_convert_free(is->reformat_ctx);
1914
+        is->reformat_ctx = NULL;
1914 1915
         break;
1915 1916
     case CODEC_TYPE_VIDEO:
1916 1917
         packet_queue_abort(&is->videoq);