[FFmpeg-cvslog] r11307 - trunk/libavformat/utils.c
reimar
subversion
Sun Dec 23 14:16:55 CET 2007
Author: reimar
Date: Sun Dec 23 14:16:55 2007
New Revision: 11307
Log:
100l, av_read_packet must check for read_packet error, in case of
error pkt->stream_index could be invalid and must not be used.
Fixes a crash with http://www.cs.berkeley.edu/~dmolnar/2-snippet3.wav
Modified:
trunk/libavformat/utils.c
Modified: trunk/libavformat/utils.c
==============================================================================
--- trunk/libavformat/utils.c (original)
+++ trunk/libavformat/utils.c Sun Dec 23 14:16:55 2007
@@ -497,6 +497,8 @@ int av_read_packet(AVFormatContext *s, A
AVStream *st;
av_init_packet(pkt);
ret= s->iformat->read_packet(s, pkt);
+ if (ret < 0)
+ return ret;
st= s->streams[pkt->stream_index];
switch(st->codec->codec_type){
More information about the ffmpeg-cvslog
mailing list