[FFmpeg-cvslog] r22702 - trunk/libavformat/eacdata.c
reimar
subversion
Sat Mar 27 20:09:46 CET 2010
Author: reimar
Date: Sat Mar 27 20:09:46 2010
New Revision: 22702
Log:
eacdata: fix a memleak, return partial packets and use proper return values.
Modified:
trunk/libavformat/eacdata.c
Modified: trunk/libavformat/eacdata.c
==============================================================================
--- trunk/libavformat/eacdata.c Sat Mar 27 14:30:22 2010 (r22701)
+++ trunk/libavformat/eacdata.c Sat Mar 27 20:09:46 2010 (r22702)
@@ -83,10 +83,11 @@ static int cdata_read_packet(AVFormatCon
CdataDemuxContext *cdata = s->priv_data;
int packet_size = 76*cdata->channels;
- if (av_get_packet(s->pb, pkt, packet_size) != packet_size)
- return AVERROR(EIO);
+ int ret = av_get_packet(s->pb, pkt, packet_size);
+ if (ret < 0)
+ return ret;
pkt->pts = cdata->audio_pts++;
- return 1;
+ return 0;
}
AVInputFormat ea_cdata_demuxer = {
More information about the ffmpeg-cvslog
mailing list