mirror of
				https://projects.vdr-developer.org/git/vdr-plugin-softhddevice.git
				synced 2023-10-10 17:16:51 +00:00 
			
		
		
		
	Workaround should be for abs.
This commit is contained in:
		
							
								
								
									
										2
									
								
								codec.c
									
									
									
									
									
								
							
							
						
						
									
										2
									
								
								codec.c
									
									
									
									
									
								
							| @@ -932,7 +932,7 @@ static void CodecAudioSetClock(AudioDecoder * audio_decoder, int64_t pts) | ||||
| 	int distance; | ||||
|  | ||||
| 	// try workaround for buggy ffmpeg 0.10 | ||||
| 	if (audio_decoder->DriftCorr < 2000) { | ||||
| 	if (abs(audio_decoder->DriftCorr) < 2000) { | ||||
| 	    distance = (pts_diff * audio_decoder->HwSampleRate) / (900 * 1000); | ||||
| 	} else { | ||||
| 	    distance = (pts_diff * audio_decoder->HwSampleRate) / (90 * 1000); | ||||
|   | ||||
		Reference in New Issue
	
	Block a user