mirror of
https://github.com/nyanmisaka/ffmpeg-rockchip.git
synced 2026-01-24 07:31:22 +01:00
fixing raw yuv input
Originally committed as revision 916 to svn://svn.ffmpeg.org/ffmpeg/trunk
This commit is contained in:
parent
b318477992
commit
c2c2cd2da1
1 changed files with 4 additions and 0 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue