diff -Naur MPlayer-20030714/cfg-mplayer.h MPlayer-20030714-new/cfg-mplayer.h --- MPlayer-20030714/cfg-mplayer.h 2003-07-01 21:23:08.000000000 +0200 +++ MPlayer-20030714-new/cfg-mplayer.h 2003-07-14 22:30:56.000000000 +0200 @@ -368,6 +368,7 @@ // dump some stream out instead of playing the file // this really should be in mencoder instead of mplayer... -> TODO + {"rawdump", &raw_dump, CONF_TYPE_FLAG, 0, 0, 1, NULL}, {"dumpfile", &stream_dump_name, CONF_TYPE_STRING, 0, 0, 0, NULL}, {"dumpaudio", &stream_dump_type, CONF_TYPE_FLAG, 0, 0, 1, NULL}, {"dumpvideo", &stream_dump_type, CONF_TYPE_FLAG, 0, 0, 2, NULL}, diff -Naur MPlayer-20030714/mplayer.c MPlayer-20030714-new/mplayer.c --- MPlayer-20030714/mplayer.c 2003-07-13 17:38:33.000000000 +0200 +++ MPlayer-20030714-new/mplayer.c 2003-07-14 22:32:48.000000000 +0200 @@ -252,6 +252,7 @@ #endif // dump: +static int raw_dump=0; static char *stream_dump_name="stream.dump"; int stream_dump_type=0; @@ -1461,7 +1462,7 @@ unsigned char* start; int in_size=ds_get_packet(ds,&start); if( (demuxer->file_format==DEMUXER_TYPE_AVI || demuxer->file_format==DEMUXER_TYPE_ASF || demuxer->file_format==DEMUXER_TYPE_MOV) - && stream_dump_type==2) fwrite(&in_size,1,4,f); + && stream_dump_type==2 && (raw_dump == 0)) fwrite(&in_size,1,4,f); if(in_size>0) fwrite(start,in_size,1,f); } fclose(f);