Commit cdfc38f4 authored by Vitor Sessak's avatar Vitor Sessak
Browse files

Fix memory leak for truncated frames

Originally committed as revision 21901 to svn://
parent df2235a1
......@@ -106,8 +106,8 @@ static int xa_read_packet(AVFormatContext *s,
packet_size = 15*st->codec->channels;
ret = av_get_packet(pb, pkt, packet_size);
if(ret != packet_size)
return AVERROR(EIO);
if(ret < 0)
return ret;
pkt->stream_index = st->index;
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