diff options
author | 2001-06-03 19:46:22 +0000 | |
---|---|---|
committer | 2001-06-03 19:46:22 +0000 | |
commit | a845776c7bb17917709eb7f9cd825620075d5176 (patch) | |
tree | 43a48f8afbcc33c1cc61c1a8221d548683f3849e /mplayer.c | |
parent | 19bcce624f2199d9acbc5be3b8835497609e9b98 (diff) |
new option: -srate
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@970 b3059339-0415-0410-9bf9-f77b7e298cf2
Diffstat (limited to 'mplayer.c')
-rw-r--r-- | mplayer.c | 4 |
1 files changed, 3 insertions, 1 deletions
@@ -417,6 +417,7 @@ int dvdsub_id=-1; float default_max_pts_correction=-1;//0.01f; int delay_corrected=1; float force_fps=0; +int force_srate=0; float audio_delay=0; float initial_pts_delay=0; int vcd_track=0; @@ -1407,7 +1408,8 @@ int drop_frame_cnt=0; if(has_audio){ - if(!audio_out->init(sh_audio->samplerate,sh_audio->channels,sh_audio->sample_format,0)){ + if(!audio_out->init(force_srate?force_srate:sh_audio->samplerate, + sh_audio->channels,sh_audio->sample_format,0)){ printf("couldn't open/init audio device -> NOSOUND\n"); has_audio=0; } |