Commit bc77fce6 authored by Ramiro Polla's avatar Ramiro Polla

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
parent 90332deb
...@@ -1911,6 +1911,7 @@ static void stream_component_close(VideoState *is, int stream_index) ...@@ -1911,6 +1911,7 @@ static void stream_component_close(VideoState *is, int stream_index)
packet_queue_end(&is->audioq); packet_queue_end(&is->audioq);
if (is->reformat_ctx) if (is->reformat_ctx)
av_audio_convert_free(is->reformat_ctx); av_audio_convert_free(is->reformat_ctx);
is->reformat_ctx = NULL;
break; break;
case CODEC_TYPE_VIDEO: case CODEC_TYPE_VIDEO:
packet_queue_abort(&is->videoq); packet_queue_abort(&is->videoq);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment