# HG changeset patch # User reimar # Date 1254418342 0 # Node ID 8e78fee99db54d640cc2a271e50e925b7b69d4ee # Parent 938a1b27357ae3663014078dc61fd468ce7d9747 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). diff -r 938a1b27357a -r 8e78fee99db5 raw.c --- a/raw.c Thu Oct 01 17:26:20 2009 +0000 +++ b/raw.c Thu Oct 01 17:32:22 2009 +0000 @@ -171,7 +171,7 @@ pkt->dts= pkt->pos / packet_size; pkt->stream_index = 0; - if (ret != packet_size) + if (ret <= 0) return AVERROR(EIO); return 0; }