Browse Source

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
tags/v0.6
Reimar Döffinger 15 years ago
parent
commit
22a7e19b50
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      libavformat/raw.c

+ 1
- 1
libavformat/raw.c View File

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


Loading…
Cancel
Save