Opened 16 months ago

#8850 new defect

ffplay hangs if audio_thread() fails early

Reported by: Nicolas George Owned by:
Priority: normal Component: ffplay
Version: git-master Keywords:
Cc: Blocked By:
Blocking: Reproduced by developer: no
Analyzed by developer: no

Description

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.)

Change History (0)

Note: See TracTickets for help on using tickets.