summaryrefslogtreecommitdiffstats
path: root/libmpdemux/muxer_rawvideo.c
diff options
context:
space:
mode:
authornicodvb <nicodvb@b3059339-0415-0410-9bf9-f77b7e298cf2>2006-12-18 21:03:59 +0000
committernicodvb <nicodvb@b3059339-0415-0410-9bf9-f77b7e298cf2>2006-12-18 21:03:59 +0000
commitcf099b21004558223ed3132dc42d37f5f814541e (patch)
tree1f69aaeaefe8da1ebb4b82bf63be442783c163c0 /libmpdemux/muxer_rawvideo.c
parentac9465059730747f59b07ad00b5daebbbece8c9f (diff)
downloadmpv-cf099b21004558223ed3132dc42d37f5f814541e.tar.bz2
mpv-cf099b21004558223ed3132dc42d37f5f814541e.tar.xz
muxers now write to output muxer->stream rather than to muxer->file
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@21676 b3059339-0415-0410-9bf9-f77b7e298cf2
Diffstat (limited to 'libmpdemux/muxer_rawvideo.c')
-rw-r--r--libmpdemux/muxer_rawvideo.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/libmpdemux/muxer_rawvideo.c b/libmpdemux/muxer_rawvideo.c
index b12a0ef1ac..8f2f4b29f3 100644
--- a/libmpdemux/muxer_rawvideo.c
+++ b/libmpdemux/muxer_rawvideo.c
@@ -14,6 +14,7 @@
#include "aviheader.h"
#include "ms_hdr.h"
+#include "stream.h"
#include "muxer.h"
static muxer_stream_t* rawvideofile_new_stream(muxer_t *muxer,int type){
@@ -39,11 +40,11 @@ static muxer_stream_t* rawvideofile_new_stream(muxer_t *muxer,int type){
return s;
}
-static void write_rawvideo_chunk(FILE *f,int len,void* data){
+static void write_rawvideo_chunk(stream_t *stream,int len,void* data){
if(len>0){
if(data){
// DATA
- fwrite(data,len,1,f);
+ stream_write_buffer(stream,data,len);
}
}
}
@@ -53,7 +54,7 @@ static void rawvideofile_write_chunk(muxer_stream_t *s,size_t len,unsigned int f
// write out the chunk:
if (s->type == MUXER_TYPE_VIDEO)
- write_rawvideo_chunk(muxer->file,len,s->buffer); /* unsigned char */
+ write_rawvideo_chunk(muxer->stream,len,s->buffer); /* unsigned char */
// if((unsigned int)len>s->h.dwSuggestedBufferSize) s->h.dwSuggestedBufferSize=len;