summaryrefslogtreecommitdiff
path: root/libavcodec/mpeg12.c
diff options
context:
space:
mode:
authorWolfram Gloger <wmglo@dent.med.uni-muenchen.de>2009-05-27 00:14:32 +0000
committerBaptiste Coudurier <baptiste.coudurier@gmail.com>2009-05-27 00:14:32 +0000
commited1dc74e1882141c0b2398a7512da0b0ecae3efb (patch)
tree8cd4a1479347cae48d9c552a1dbf5b7fdd2f350b /libavcodec/mpeg12.c
parent6645e8ca2f7156581e66d9f62d24a10b66af68a2 (diff)
Fix off by one offset with fetch_timestamps, pts_parser_problem.mpg.
Patch by Wolfram Gloger, wmglo at dentm dot med dot uni-muenchen dot de. Originally committed as revision 18959 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavcodec/mpeg12.c')
-rw-r--r--libavcodec/mpeg12.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libavcodec/mpeg12.c b/libavcodec/mpeg12.c
index 021942a183..48c7899f7c 100644
--- a/libavcodec/mpeg12.c
+++ b/libavcodec/mpeg12.c
@@ -2226,7 +2226,7 @@ int ff_mpeg1_find_frame_end(ParseContext *pc, const uint8_t *buf, int buf_size,
}
}
if(s && state == PICTURE_START_CODE){
- ff_fetch_timestamp(s, i-4, 1);
+ ff_fetch_timestamp(s, i-3, 1);
}
}
}