[FFmpeg-cvslog] r17514 - trunk/libavformat/mov.c
bcoudurier
subversion
Sun Feb 22 02:07:47 CET 2009
Author: bcoudurier
Date: Sun Feb 22 02:07:46 2009
New Revision: 17514
Log:
check av_get_packet return value
Modified:
trunk/libavformat/mov.c
Modified: trunk/libavformat/mov.c
==============================================================================
--- trunk/libavformat/mov.c Sun Feb 22 02:00:28 2009 (r17513)
+++ trunk/libavformat/mov.c Sun Feb 22 02:07:46 2009 (r17514)
@@ -1942,7 +1942,7 @@ static int mov_read_packet(AVFormatConte
MOVStreamContext *sc = 0;
AVIndexEntry *sample = 0;
int64_t best_dts = INT64_MAX;
- int i;
+ int i, ret;
retry:
for (i = 0; i < s->nb_streams; i++) {
AVStream *st = s->streams[i];
@@ -1979,7 +1979,9 @@ static int mov_read_packet(AVFormatConte
sc->ffindex, sample->pos);
return -1;
}
- av_get_packet(sc->pb, pkt, sample->size);
+ ret = av_get_packet(sc->pb, pkt, sample->size);
+ if (ret < 0)
+ return ret;
#if CONFIG_DV_DEMUXER
if (mov->dv_demux && sc->dv_audio_container) {
dv_produce_packet(mov->dv_demux, pkt, pkt->data, pkt->size);
More information about the ffmpeg-cvslog
mailing list