[FFmpeg-trac] #8850(ffplay:new): ffplay hangs if audio_thread() fails early

FFmpeg trac at avcodec.org
Fri Aug 14 13:31:32 EEST 2020


#8850: ffplay hangs if audio_thread() fails early
--------------------------------------+--------------------------------
               Reporter:  Cigaes      |                  Owner:
                   Type:  defect      |                 Status:  new
               Priority:  normal      |              Component:  ffplay
                Version:  git-master  |               Keywords:
             Blocked By:              |               Blocking:
Reproduced by developer:  0           |  Analyzed by developer:  0
--------------------------------------+--------------------------------
 With the following change to simulate an early failure:

 {{{
 --- a/fftools/ffplay.c
 +++ b/fftools/ffplay.c
 @@ -2048,7 +2048,7 @@ static int audio_thread(void *arg)
      AVRational tb;
      int ret = 0;

 -    if (!frame)
 +    //if (!frame)
          return AVERROR(ENOMEM);

      do {
 }}}

 ffplay hangs when playing any audio-only file without any diagnostic.

 (A similar failure can happen in real conditions, especially if the audio
 filter can be configured alone but not for the audio hardware parameters.)

--
Ticket URL: <https://trac.ffmpeg.org/ticket/8850>
FFmpeg <https://ffmpeg.org>
FFmpeg issue tracker


More information about the FFmpeg-trac mailing list