Ticket #1271: mencoder_shortaudio.diff
| File mencoder_shortaudio.diff, 756 bytes (added by , 18 years ago) |
|---|
-
mencoder.c
1168 1168 1169 1169 if(sh_audio){ 1170 1170 // get audio: 1171 while(mux_a->timer-audio_preload<mux_v->timer ){1171 while(mux_a->timer-audio_preload<mux_v->timer || d_video->eof){ 1172 1172 float tottime; 1173 1173 int len=0; 1174 1174 … … 1272 1272 sh_video->timer+=frame_data.frame_time; 1273 1273 } 1274 1274 frame_data.frame_time /= playback_speed; 1275 if(frame_data.in_size<0){ at_eof=1; break; } 1275 if (d_video->eof) { 1276 if (!sh_audio || d_audio->eof) 1277 at_eof=1; 1278 continue; 1279 } 1276 1280 ++decoded_frameno; 1277 1281 1278 1282 v_timer_corr-=frame_data.frame_time-(float)mux_v->h.dwScale/mux_v->h.dwRate;
