changeset 1246:7f69c1dd1e91

-dumpvideo stores frame size for avi/asf video frames (for ffmpeg testing)
author arpi
date Fri, 29 Jun 2001 21:35:30 +0000
parents 03b7e2955a20
children 429aacbe23a7
files mplayer.c
diffstat 1 files changed, 2 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/mplayer.c	Fri Jun 29 17:55:35 2001 +0000
+++ b/mplayer.c	Fri Jun 29 21:35:30 2001 +0000
@@ -998,6 +998,8 @@
   while(!ds->eof){
     unsigned char* start;
     int in_size=ds_get_packet(ds,&start);
+    if( (file_format==DEMUXER_TYPE_AVI || file_format==DEMUXER_TYPE_ASF)
+	&& stream_dump_type==2) fwrite(&in_size,1,4,f);
     if(in_size>0) fwrite(start,in_size,1,f);
   }
   fclose(f);