[FFmpeg-cvslog] r13527 - trunk/libavformat/mpeg.c
benoit
subversion
Thu May 29 11:50:17 CEST 2008
Author: benoit
Date: Thu May 29 11:50:17 2008
New Revision: 13527
Log:
Check return of url_fseek in mpeg timestamp reading code.
Patch by Joakim elupus ecce se
Modified:
trunk/libavformat/mpeg.c
Modified: trunk/libavformat/mpeg.c
==============================================================================
--- trunk/libavformat/mpeg.c (original)
+++ trunk/libavformat/mpeg.c Thu May 29 11:50:17 2008
@@ -557,7 +557,9 @@ static int64_t mpegps_read_dts(AVFormatC
#ifdef DEBUG_SEEK
printf("read_dts: pos=0x%"PRIx64" next=%d -> ", pos, find_next);
#endif
- url_fseek(s->pb, pos, SEEK_SET);
+ if (url_fseek(s->pb, pos, SEEK_SET) < 0)
+ return AV_NOPTS_VALUE;
+
for(;;) {
len = mpegps_read_pes_header(s, &pos, &startcode, &pts, &dts);
if (len < 0) {
More information about the ffmpeg-cvslog
mailing list