changeset 864:e00028eb356c trunk

[svn] - ffmpeg: prevent it from crashing when probing remote sources
author giacomo
date Fri, 16 Mar 2007 13:05:14 -0700
parents 973d9b624987
children d94881463e1f
files ChangeLog src/ffmpeg/libavformat/aviobuf.c
diffstat 2 files changed, 11 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/ChangeLog	Thu Mar 15 22:36:55 2007 -0700
+++ b/ChangeLog	Fri Mar 16 13:05:14 2007 -0700
@@ -1,3 +1,12 @@
+2007-03-16 05:36:55 +0000  Yoshiki Yazawa <yaz@cc.rim.or.jp>
+  revision [1826]
+  - add mseek support to wav.c (without libsndfile version) too.
+  
+  trunk/src/wav/wav.c |   16 ++++++++++++----
+  trunk/src/wav/wav.h |    4 +++-
+  2 files changed, 15 insertions(+), 5 deletions(-)
+
+
 2007-03-16 05:09:36 +0000  Yoshiki Yazawa <yaz@cc.rim.or.jp>
   revision [1824]
   - add mseek support.
--- a/src/ffmpeg/libavformat/aviobuf.c	Thu Mar 15 22:36:55 2007 -0700
+++ b/src/ffmpeg/libavformat/aviobuf.c	Fri Mar 16 13:05:14 2007 -0700
@@ -368,9 +368,10 @@
 int url_vfdopen(ByteIOContext *s, VFSFile *fd)
 {
     URLContext *h;
+    VFSFile *nfd = vfs_dup(fd);
     int err;
 
-    err = url_vopen(&h, fd);
+    err = url_vopen(&h, nfd);
     if (err < 0)
         return err;
     err = url_fdopen(s, h);