aboutsummaryrefslogtreecommitdiffstats
path: root/libav/mpeg.c
diff options
context:
space:
mode:
authorJuanjo <pulento@users.sourceforge.net>2002-03-16 02:41:00 +0000
committerJuanjo <pulento@users.sourceforge.net>2002-03-16 02:41:00 +0000
commit1cb0edb40b8e94e1a50ad40c40d43e34ed8435fe (patch)
tree039381a325e1315f034c025e04137e33c3e6759f /libav/mpeg.c
parent4278e7a6f5a9c2fd3e43efdeee583972fe5fb72f (diff)
downloadffmpeg-1cb0edb40b8e94e1a50ad40c40d43e34ed8435fe.tar.gz
- Bug fix MPEG-2 decoder to handle "repeat_first_field" (Telecine)
- Hack in MPEG-2 demux to cope with buggy VOBs. Originally committed as revision 333 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libav/mpeg.c')
-rw-r--r--libav/mpeg.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/libav/mpeg.c b/libav/mpeg.c
index 2c09a85970..f112a773b0 100644
--- a/libav/mpeg.c
+++ b/libav/mpeg.c
@@ -473,9 +473,13 @@ static int mpeg_mux_read_header(AVFormatContext *s,
know that this codec will be used */
type = CODEC_TYPE_AUDIO;
codec_id = CODEC_ID_AC3;
+ /* XXX: Another hack for DVD: it seems, that AC3 streams
+ aren't signaled on audio_bound on some DVDs (Matrix) */
+ if (audio_bound == 0)
+ audio_bound++;
n = audio_bound;
c = 0x80;
- /* c = 0x1c0; */
+ //c = 0x1c0;
} else if (c == 0xb9) {
/* all video streams */
type = CODEC_TYPE_VIDEO;