mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2024-12-23 12:43:46 +02:00
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 Originally committed as revision 11307 to svn://svn.ffmpeg.org/ffmpeg/trunk
This commit is contained in:
parent
08571377e6
commit
88b0072390
@ -497,6 +497,8 @@ int av_read_packet(AVFormatContext *s, AVPacket *pkt)
|
||||
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){
|
||||
|
Loading…
Reference in New Issue
Block a user