OSDN Git Service
(root)
/
coroid
/
ffmpeg_saccubus.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
5901cd6
)
Assume some TS packet size instead of failing completely.
author
Reimar Döffinger
<Reimar.Doeffinger@gmx.de>
Sun, 24 Apr 2011 15:33:48 +0000
(17:33 +0200)
committer
Reimar Döffinger
<Reimar.Doeffinger@gmx.de>
Sat, 7 May 2011 15:38:18 +0000
(17:38 +0200)
Fixes ticket #68.
libavformat/mpegts.c
patch
|
blob
|
history
diff --git
a/libavformat/mpegts.c
b/libavformat/mpegts.c
index
665c92a
..
caef69d
100644
(file)
--- a/
libavformat/mpegts.c
+++ b/
libavformat/mpegts.c
@@
-1468,8
+1468,10
@@
static int mpegts_read_header(AVFormatContext *s,
if (len != sizeof(buf))
goto fail;
ts->raw_packet_size = get_packet_size(buf, sizeof(buf));
- if (ts->raw_packet_size <= 0)
- goto fail;
+ if (ts->raw_packet_size <= 0) {
+ 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->auto_guess = 0;