Commit efc56f42 authored by vitor's avatar vitor

Fix memory leak for truncated frames


git-svn-id: file:///var/local/repositories/ffmpeg/trunk@21901 9553f0bf-9b14-0410-a0b8-cfaf0461ba5b
parent 88a2ad37
...@@ -106,8 +106,8 @@ static int xa_read_packet(AVFormatContext *s, ...@@ -106,8 +106,8 @@ static int xa_read_packet(AVFormatContext *s,
packet_size = 15*st->codec->channels; packet_size = 15*st->codec->channels;
ret = av_get_packet(pb, pkt, packet_size); ret = av_get_packet(pb, pkt, packet_size);
if(ret != packet_size) if(ret < 0)
return AVERROR(EIO); return ret;
pkt->stream_index = st->index; pkt->stream_index = st->index;
xa->sent_bytes += packet_size; xa->sent_bytes += packet_size;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment