[Libav-user] Get RTSPStatusCode from AVERROR

Jake Eastwood cheloveck2.0 at gmail.com
Tue Jul 12 15:40:31 EEST 2022


By looking at
https://ffmpeg.org/doxygen/trunk/group__lavu__error.html#ga2a19ca30d1962b51488a7210e8b68919

it appears to be ffmpeg compress most of RTSPStatusCode
<https://ffmpeg.org/doxygen/3.3/rtspcodes_8h.html#a5d7a49060418fc68de2e6ae781e91953>s
to AVERROR_HTTP_OTHER_4XX.

Can I get specifically RTSPStatusCode from AVError
to compare with the rest of the codes from
https://ffmpeg.org/doxygen/3.3/rtspcodes_8h.html#a5d7a49060418fc68de2e6ae781e91953
?

For example I want to check 'ret = open_format_context(...)' for '
RTSP_STATUS_TRANSPORT
<https://ffmpeg.org/doxygen/3.3/rtspcodes_8h.html#a5d7a49060418fc68de2e6ae781e91953abb638992e412250d2dd6951a9cdff467>
'
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://ffmpeg.org/pipermail/libav-user/attachments/20220712/60fa084a/attachment.htm>


More information about the Libav-user mailing list