summaryrefslogtreecommitdiffstats
path: root/mplayer.c
diff options
context:
space:
mode:
authorarpi <arpi@b3059339-0415-0410-9bf9-f77b7e298cf2>2001-06-29 21:35:30 +0000
committerarpi <arpi@b3059339-0415-0410-9bf9-f77b7e298cf2>2001-06-29 21:35:30 +0000
commit40b5a6dd2903153b36d5a22fe193fa37d50d94a5 (patch)
tree7e1bf7cb5589b59b2e58d0e1ddadfd03c2563f43 /mplayer.c
parent2ec6762923fea7f28331849b1d394f30dfce1aff (diff)
downloadmpv-40b5a6dd2903153b36d5a22fe193fa37d50d94a5.tar.bz2
mpv-40b5a6dd2903153b36d5a22fe193fa37d50d94a5.tar.xz
-dumpvideo stores frame size for avi/asf video frames (for ffmpeg testing)
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@1247 b3059339-0415-0410-9bf9-f77b7e298cf2
Diffstat (limited to 'mplayer.c')
-rw-r--r--mplayer.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/mplayer.c b/mplayer.c
index 46b8cd4414..ab0d27eab6 100644
--- a/mplayer.c
+++ b/mplayer.c
@@ -998,6 +998,8 @@ if(stream_dump_type){
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);