changeset 5249:8e78fee99db5 libavformat

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).
author reimar
date Thu, 01 Oct 2009 17:32:22 +0000
parents 938a1b27357a
children 4b736fd7d0fd
files raw.c
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- 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;
 }