diff options
author | Michael Niedermayer <michaelni@gmx.at> | 2002-09-11 17:04:04 +0000 |
---|---|---|
committer | Michael Niedermayer <michaelni@gmx.at> | 2002-09-11 17:04:04 +0000 |
commit | c2c2cd2da184a4e805790eabd3dbcc1b4f13ca47 (patch) | |
tree | fb2b07453ed568cef9c00cb5256dffa048173155 /libav/raw.c | |
parent | b3184779924e40e82b1f92b4b315b2c4074a9669 (diff) | |
download | ffmpeg-c2c2cd2da184a4e805790eabd3dbcc1b4f13ca47.tar.gz |
fixing raw yuv input
Originally committed as revision 916 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libav/raw.c')
-rw-r--r-- | libav/raw.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/libav/raw.c b/libav/raw.c index 13c5721fbd..96d011caf5 100644 --- a/libav/raw.c +++ b/libav/raw.c @@ -372,8 +372,12 @@ int rawvideo_read_packet(AVFormatContext *s, return -EIO; pkt->stream_index = 0; +#if 0 /* bypass buffered I/O */ ret = url_read(url_fileno(&s->pb), pkt->data, pkt->size); +#else + ret = get_buffer(&s->pb, pkt->data, pkt->size); +#endif if (ret != pkt->size) { av_free_packet(pkt); return -EIO; |