Browse Source

Fix memory leak for truncated frames

Originally committed as revision 21901 to svn://svn.ffmpeg.org/ffmpeg/trunk
tags/v0.6
Vitor Sessak 15 years ago
parent
commit
cdfc38f43b
1 changed files with 2 additions and 2 deletions
  1. +2
    -2
      libavformat/xa.c

+ 2
- 2
libavformat/xa.c View File

@@ -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;


Loading…
Cancel
Save