Ignore invalid RTP-Info header value.
Issue: google/ExoPlayer#9619 (and a few other GH issues related to invalid RTP-Info header) PiperOrigin-RevId: 423283017
This commit is contained in:
parent
914cf423bd
commit
1fe8e07068
@ -619,11 +619,18 @@ import org.checkerframework.checker.nullness.qual.MonotonicNonNull;
|
||||
startTimingString == null
|
||||
? RtspSessionTiming.DEFAULT
|
||||
: RtspSessionTiming.parseTiming(startTimingString);
|
||||
|
||||
ImmutableList<RtspTrackTiming> trackTimingList;
|
||||
try {
|
||||
@Nullable String rtpInfoString = response.headers.get(RtspHeaders.RTP_INFO);
|
||||
ImmutableList<RtspTrackTiming> trackTimingList =
|
||||
trackTimingList =
|
||||
rtpInfoString == null
|
||||
? ImmutableList.of()
|
||||
: RtspTrackTiming.parseTrackTiming(rtpInfoString, uri);
|
||||
} catch (ParserException e) {
|
||||
trackTimingList = ImmutableList.of();
|
||||
}
|
||||
|
||||
onPlayResponseReceived(new RtspPlayResponse(response.status, timing, trackTimingList));
|
||||
break;
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user