diff options
author | Reimar Döffinger <Reimar.Doeffinger@gmx.de> | 2009-10-01 17:32:22 +0000 |
---|---|---|
committer | Reimar Döffinger <Reimar.Doeffinger@gmx.de> | 2009-10-01 17:32:22 +0000 |
commit | 22a7e19b50cc1627dd16e22c5e89b1f92f1d0c0e (patch) | |
tree | 1d9565dea334715cf08ff480dcaff711c9f6d5c6 /libavformat/raw.c | |
parent | 8cb724c5c42f4b3d4fc466201334af6e537ad202 (diff) | |
download | ffmpeg-22a7e19b50cc1627dd16e22c5e89b1f92f1d0c0e.tar.gz |
Make rawvideo_read_packet return partial frames.
This is consistent with other demuxers and also fixes a memleak (memory
allocated for partial frame data was leaked).
Originally committed as revision 20130 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavformat/raw.c')
-rw-r--r-- | libavformat/raw.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libavformat/raw.c b/libavformat/raw.c index 4b0a31caf0..260b690664 100644 --- a/libavformat/raw.c +++ b/libavformat/raw.c @@ -171,7 +171,7 @@ static int rawvideo_read_packet(AVFormatContext *s, AVPacket *pkt) pkt->dts= pkt->pos / packet_size; pkt->stream_index = 0; - if (ret != packet_size) + if (ret <= 0) return AVERROR(EIO); return 0; } |