[FFmpeg-devel] [PATCH] Clear freed pointer in ffplay.c.

Ramiro Polla ramiro.polla
Wed Feb 24 15:45:36 CET 2010


On Wed, Feb 24, 2010 at 8:46 AM, Michael Niedermayer <michaelni at gmx.at> wrote:
> On Wed, Feb 24, 2010 at 02:13:09AM -0300, Ramiro Polla wrote:
>> $attached
>> Crashes with double free on incoming/00004.m2ts after 'a' is pressed twice.
>
> [...]
>> Index: ffplay.c
>> ===================================================================
>> --- ffplay.c ?(revision 22013)
>> +++ ffplay.c ?(working copy)
>> @@ -1911,6 +1911,7 @@
>> ? ? ? ? ?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);
>
> that hunk looks ok

Applied.



More information about the ffmpeg-devel mailing list