You've already forked FFmpeg
mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2025-11-23 21:54:53 +02:00
mpegts: remove get_pts duplicate of ff_parse_pes_pts.
Signed-off-by: Vasyl' Vavrychuk <vvavrychuk@gmail.com>
Signed-off-by: Mans Rullgard <mans@mansr.com>
(cherry picked from commit 665132e620)
This commit is contained in:
committed by
Michael Niedermayer
parent
9873463c2f
commit
e5e3897b64
@@ -63,7 +63,7 @@ static const int lpcm_freq_tab[4] = { 48000, 96000, 44100, 32000 };
|
||||
/**
|
||||
* Parse MPEG-PES five-byte timestamp
|
||||
*/
|
||||
static inline int64_t ff_parse_pes_pts(uint8_t *buf) {
|
||||
static inline int64_t ff_parse_pes_pts(const uint8_t *buf) {
|
||||
return (int64_t)(*buf & 0x0e) << 29 |
|
||||
(AV_RB16(buf+1) >> 1) << 15 |
|
||||
AV_RB16(buf+3) >> 1;
|
||||
|
||||
Reference in New Issue
Block a user