mirror of
https://git.ffmpeg.org/ffmpeg.git
synced 2025-02-07 07:13:20 +00:00
mmst: fix reading uninitialized data for ping packets.
Fixes errors after a few minutes (first ping) when playing back mmst://wm.bbc.co.uk/wms/bbc7coyopa/bbc7_-_friday_0430.wma
This commit is contained in:
parent
08a459f096
commit
275189a2bd
@ -290,8 +290,7 @@ static MMSSCPacketType get_tcp_server_response(MMSTContext *mmst)
|
|||||||
return read_result < 0 ? read_result : AVERROR_IO;
|
return read_result < 0 ? read_result : AVERROR_IO;
|
||||||
}
|
}
|
||||||
packet_type= AV_RL16(mms->in_buffer+36);
|
packet_type= AV_RL16(mms->in_buffer+36);
|
||||||
hr = AV_RL32(mms->in_buffer + 40);
|
if (read_result >= 44 && (hr = AV_RL32(mms->in_buffer + 40))) {
|
||||||
if (hr) {
|
|
||||||
av_log(NULL, AV_LOG_ERROR,
|
av_log(NULL, AV_LOG_ERROR,
|
||||||
"Server sent a message with packet type 0x%x and error status code 0x%08x\n", packet_type, hr);
|
"Server sent a message with packet type 0x%x and error status code 0x%08x\n", packet_type, hr);
|
||||||
return AVERROR_UNKNOWN;
|
return AVERROR_UNKNOWN;
|
||||||
|
Loading…
Reference in New Issue
Block a user