rtsp: make ff_sdp_parse return value forwarded
the sdp demuxer did not forward it at all while the rtsp demuxer assumed a single kind of error
This commit is contained in:
@@ -136,7 +136,7 @@ int ff_rtsp_setup_input_streams(AVFormatContext *s, RTSPMessageHeader *reply)
|
||||
ret = ff_sdp_parse(s, (const char *)content);
|
||||
av_freep(&content);
|
||||
if (ret < 0)
|
||||
return AVERROR_INVALIDDATA;
|
||||
return ret;
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user