Revision 275189a2

View differences:

libavformat/mmst.c
290 290
                return read_result < 0 ? read_result : AVERROR_IO;
291 291
            }
292 292
            packet_type= AV_RL16(mms->in_buffer+36);
293
            hr = AV_RL32(mms->in_buffer + 40);
294
            if (hr) {
293
            if (read_result >= 44 && (hr = AV_RL32(mms->in_buffer + 40))) {
295 294
                av_log(NULL, AV_LOG_ERROR,
296 295
                       "Server sent a message with packet type 0x%x and error status code 0x%08x\n", packet_type, hr);
297 296
                return AVERROR_UNKNOWN;

Also available in: Unified diff