[Libav-user] avformat_open_input on dead UDP link hangs after interrupt_callback signaled exit

Net net at point.com.mk
Fri May 27 15:37:20 CEST 2016


Just happen today, after latest dll update, my small Win32 test program 
stopped working. It goes like this:

2 threads, avformat_open_input on first, trying to open dead udp link, 
for ex. "udp://127.0.0.1:8000"
interrupt_callback is get called and seems to working properly.
Second thread is setting exit variable that is checked in 
interrupt_callback, returning 1 (exit), and all ok.

However, avformat_open_input does not exit, blocks.
Last message is: (module: message) AVIOContext: Statistics: 0 bytes 
read, 0 seeks

I've been able to find last version that worked; using Win32 dll’s from 
Zeranoe:
Working: 
https://ffmpeg.zeranoe.com/builds/win32/shared/ffmpeg-20160522-git-566be4f-win32-shared.7z
NOT working: 
https://ffmpeg.zeranoe.com/builds/win32/shared/ffmpeg-20160525-git-9591ca7-win32-shared.7z

I think reproducing is trivial, so did not provide source code.

Thank you,
Marlon



More information about the Libav-user mailing list