#7252: SIGSEGV when the ffplay is terminated with Ctrl+C before video appears -------------------------------------+------------------------------------- Reporter: KTSamy | Owner: Type: defect | Status: closed Priority: important | Component: Version: git-master | undetermined Keywords: SIGSEGV | Resolution: crash | needs_more_info Blocking: | Blocked By: Analyzed by developer: 0 | Reproduced by developer: 0 -------------------------------------+-------------------------------------
Comment (by cehoyos): Feel free to test the following change: {{{ diff --git a/fftools/ffplay.c b/fftools/ffplay.c index 84ba667..5ace5cd 100644 --- a/fftools/ffplay.c +++ b/fftools/ffplay.c @@ -3106,7 +3106,11 @@ static void stream_cycle_channel(VideoState *is, int codec_type) int old_index; AVStream *st; AVProgram *p = NULL; - int nb_streams = is->ic->nb_streams; + int nb_streams; + + if (!is->ic) + return; + nb_streams = is->ic->nb_streams; if (codec_type == AVMEDIA_TYPE_VIDEO) { start_index = is->last_video_stream; }}} -- Ticket URL: <https://trac.ffmpeg.org/ticket/7252#comment:6> FFmpeg <https://ffmpeg.org> FFmpeg issue tracker _______________________________________________ FFmpeg-trac mailing list FFmpeg-trac@avcodec.org http://ffmpeg.org/mailman/listinfo/ffmpeg-trac