Commit 90f5e991 authored by Reimar Döffinger's avatar Reimar Döffinger

Assume some TS packet size instead of failing completely.

Fixes ticket #68.
parent 5901cd62
...@@ -1468,8 +1468,10 @@ static int mpegts_read_header(AVFormatContext *s, ...@@ -1468,8 +1468,10 @@ static int mpegts_read_header(AVFormatContext *s,
if (len != sizeof(buf)) if (len != sizeof(buf))
goto fail; goto fail;
ts->raw_packet_size = get_packet_size(buf, sizeof(buf)); ts->raw_packet_size = get_packet_size(buf, sizeof(buf));
if (ts->raw_packet_size <= 0) if (ts->raw_packet_size <= 0) {
goto fail; av_log(s, AV_LOG_WARNING, "Could not detect TS packet size, defaulting to non-FEC/DVHS\n");
ts->raw_packet_size = TS_PACKET_SIZE;
}
ts->stream = s; ts->stream = s;
ts->auto_guess = 0; ts->auto_guess = 0;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment