Browse Source

10l: removed pipe_close instead of pipe_read

Originally committed as revision 10047 to svn://svn.ffmpeg.org/ffmpeg/trunk
tags/v0.5
Ramiro Polla 18 years ago
parent
commit
a12df245a4
1 changed files with 2 additions and 3 deletions
  1. +2
    -3
      libavformat/file.c

+ 2
- 3
libavformat/file.c View File

@@ -104,10 +104,9 @@ static int pipe_open(URLContext *h, const char *filename, int flags)
return 0;
}

static int pipe_read(URLContext *h, unsigned char *buf, int size)
static int pipe_close(URLContext *h)
{
int fd = (size_t)h->priv_data;
return read(fd, buf, size);
return 0;
}

URLProtocol pipe_protocol = {


Loading…
Cancel
Save