avformat_open_input returns -48

88 Views Asked by At

On macOS avformat_open_input sometimes returns the error code -48:

avformat_open_input(&ctx, "udp://...", NULL, NULL);

I cannot find this error code in the AVERROR code list. What does this error code mean?

Regards,

1

There are 1 best solutions below

1
the kamilz On BEST ANSWER

FFmpeg error codes are usually the standard C error codes negated. So error code 48 looks like ELNRNG (Link number out of range). But something fishy, I never see FFmpeg returns this error before.

Update: av_strerror() function does the human-readable conversions, here:
https://ffmpeg.org/doxygen/trunk/group__lavu__error.html#ga5792b4a2d18d7d9cb0efbcfc335dce24