[Ffmpeg-cvslog] r5474 - trunk/libavformat/mov.c
bcoudurier
subversion
Wed Jun 14 01:13:59 CEST 2006
Author: bcoudurier
Date: Wed Jun 14 01:13:59 2006
New Revision: 5474
Modified:
trunk/libavformat/mov.c
Log:
check fseek return value
Modified: trunk/libavformat/mov.c
==============================================================================
--- trunk/libavformat/mov.c (original)
+++ trunk/libavformat/mov.c Wed Jun 14 01:13:59 2006
@@ -1733,6 +1733,7 @@
int next_sample= -99;
int size;
int idx;
+ int ret;
size = 0x0FFFFFFF;
if (mov->partial) {
@@ -1858,8 +1859,9 @@
return -1;
if(size == 0)
return -1;
- url_fseek(&s->pb, offset, SEEK_SET);
-
+ ret = url_fseek(&s->pb, offset, SEEK_SET);
+ if (ret < 0)
+ return ret;
av_get_packet(&s->pb, pkt, size);
pkt->stream_index = sc->ffindex;
More information about the ffmpeg-cvslog
mailing list