mirror of
https://git.ffmpeg.org/ffmpeg.git
synced 2025-03-01 10:11:01 +00:00
sierravmd: fix audio pts
The duration of the first packet was being calculated incorrectly, leading to an incorrect timestamp offset.
This commit is contained in:
parent
29112db8c0
commit
e9626eb32e
@ -206,7 +206,7 @@ static int vmd_read_header(AVFormatContext *s,
|
|||||||
vmd->frame_table[total_frames].pts = current_audio_pts;
|
vmd->frame_table[total_frames].pts = current_audio_pts;
|
||||||
total_frames++;
|
total_frames++;
|
||||||
if(!current_audio_pts)
|
if(!current_audio_pts)
|
||||||
current_audio_pts += sound_buffers;
|
current_audio_pts += sound_buffers - 1;
|
||||||
else
|
else
|
||||||
current_audio_pts++;
|
current_audio_pts++;
|
||||||
break;
|
break;
|
||||||
|
Loading…
Reference in New Issue
Block a user