mirror of
https://github.com/nyanmisaka/ffmpeg-rockchip.git
synced 2025-10-28 03:13:08 +08:00
store index for seeking in the native timebase of each stream
set correct timebase for nut merge mpeg-ts seeking with existing seeking code 10l fix in mpegts (27mhz vs. 90khz) Originally committed as revision 3152 to svn://svn.ffmpeg.org/ffmpeg/trunk
This commit is contained in:
@@ -159,7 +159,7 @@ int pcm_read_seek(AVFormatContext *s,
|
||||
return -1;
|
||||
|
||||
/* compute the position by aligning it to block_align */
|
||||
pos = (timestamp * byte_rate) / AV_TIME_BASE;
|
||||
pos = av_rescale(timestamp * byte_rate, st->time_base.num, st->time_base.den);
|
||||
pos = (pos / block_align) * block_align;
|
||||
|
||||
/* recompute exact position */
|
||||
|
||||
Reference in New Issue
Block a user