comparison libmpdemux/demux_avi.c @ 17643:cea08919336b

dwStart support for mplayer. * demux_avi sets stream_delay according to dwStart * mplayer adjusts audio_delay according to stream_delay 3 related patches are pending, and I will apply them over the next few days if all goes well. As I mentioned on -dev-eng, the funny indentation is in preparation for one of those pending patches. See: Date: Fri, 17 Feb 2006 00:53:28 -0800 To: mplayer-dev-eng@mplayerhq.hu Subject: [PATCH] bframes, dwStart: individual patches
author corey
date Sat, 18 Feb 2006 09:26:39 +0000
parents b849a99cdc3c
children 09b64c87b29a
comparison
equal deleted inserted replaced
17642:64e5c4e34f07 17643:cea08919336b
610 } 610 }
611 vsize=demuxer->movi_end-demuxer->movi_start-asize-8*priv->numberofframes; 611 vsize=demuxer->movi_end-demuxer->movi_start-asize-8*priv->numberofframes;
612 mp_msg(MSGT_DEMUX,MSGL_V,"AVI video size=%d (%u) audio size=%d\n",vsize,priv->numberofframes,asize); 612 mp_msg(MSGT_DEMUX,MSGL_V,"AVI video size=%d (%u) audio size=%d\n",vsize,priv->numberofframes,asize);
613 sh_video->i_bps=(float)vsize/(sh_video->frametime*priv->numberofframes); 613 sh_video->i_bps=(float)vsize/(sh_video->frametime*priv->numberofframes);
614 } 614 }
615
616 if (sh_video)
617 sh_video->stream_delay = (float)sh_video->video.dwStart * sh_video->video.dwScale/sh_video->video.dwRate;
618 if (sh_audio)
619 sh_audio->stream_delay = (float)sh_audio->audio.dwStart * sh_audio->audio.dwScale/sh_audio->audio.dwRate;
620
615 return demuxer; 621 return demuxer;
616 622
617 } 623 }
618 624
619 //extern float initial_pts_delay; 625 //extern float initial_pts_delay;