projects
/
platform
/
upstream
/
libav.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
8cb724c
)
Make rawvideo_read_packet return partial frames.
author
Reimar Döffinger
<Reimar.Doeffinger@gmx.de>
Thu, 1 Oct 2009 17:32:22 +0000
(17:32 +0000)
committer
Reimar Döffinger
<Reimar.Doeffinger@gmx.de>
Thu, 1 Oct 2009 17:32:22 +0000
(17:32 +0000)
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
libavformat/raw.c
patch
|
blob
|
history
diff --git
a/libavformat/raw.c
b/libavformat/raw.c
index
4b0a31c
..
260b690
100644
(file)
--- 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;
}