Mercurial > mplayer.hg
view mplayer.h @ 24589:9118be6575da
demux_audio.c: Fix timestamp handling
The code calculated the pts values of audio packets by adding the length
of the current packet to the pts of the previous one. The length of the
previous packet should be added instead. This broke WAV timestamps near
the end of the stream where a short packet occurs.
Change the code to store the pts of the next packet instead of the last
one. This fixes the WAV timestamps and allows some simplifications.
MP3 timestamps are not affected as packets are always treated as
constant decoded length, and FLAC timestamps still have worse problems
(FLAC is treated as as if it was constant bitrate even though it isn't).
Also store the timestamps as double instead of float.
author | uau |
---|---|
date | Mon, 24 Sep 2007 21:49:56 +0000 |
parents | 35fcce39b121 |
children | 4cd12675cfbb |
line wrap: on
line source
#ifndef MPLAYER_H #define MPLAYER_H extern char* current_module; extern char * dvd_device; extern char * cdrom_device; extern char ** audio_fm_list; extern char ** video_fm_list; extern char ** video_driver_list; extern char ** audio_driver_list; extern char * video_driver; extern char * audio_driver; extern float audio_delay; extern int osd_level; extern unsigned int osd_visible; extern char * font_name; extern char * sub_font_name; extern float font_factor; extern float movie_aspect; extern float force_fps; //extern char **sub_name; extern float sub_delay; extern float sub_fps; extern int sub_auto; extern char * filename; extern int stream_cache_size; extern int autosync; // libmpcodecs: extern int fullscreen; extern int flip; extern int frame_dropping; extern int auto_quality; extern int audio_id; extern int video_id; extern int dvdsub_id; extern int vobsub_id; extern void exit_player(const char* how); extern void update_set_of_subtitles(void); #endif /* MPLAYER_H */