summaryrefslogtreecommitdiffstats
path: root/libmpdemux/muxer_rawvideo.c
diff options
context:
space:
mode:
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;