[FFmpeg-devel] [PATCH] avformat: add TiVo ty demuxer
Paul B Mahol
onemda at gmail.com
Thu Nov 2 11:26:16 EET 2017
On 11/2/17, Michael Niedermayer <michael at niedermayer.cc> wrote:
> On Wed, Nov 01, 2017 at 02:40:27PM +0100, Paul B Mahol wrote:
>> Signed-off-by: Paul B Mahol <onemda at gmail.com>
>> ---
>> libavformat/Makefile | 1 +
>> libavformat/allformats.c | 1 +
>> libavformat/ty.c | 775
>> +++++++++++++++++++++++++++++++++++++++++++++++
>> 3 files changed, 777 insertions(+)
>> create mode 100644 libavformat/ty.c
>
> [...]
>
>> +static int64_t get_pts(const uint8_t *buf)
>> +{
>> + int a = buf[0] & 0xe >> 1;
>> + int b = AV_RB16(buf + 1);
>> + int c = AV_RB16(buf + 3);
>> +
>> + if (!(1 & a & b & c))
>> + return AV_NOPTS_VALUE;
>> +
>> + a >>= 1;
>> + b >>= 1;
>> + c >>= 1;
>> + return (((uint64_t)a) << 30) | (b << 15) | c;
>> +}
>
> duplicate of ff_parse_pes_pts()
>
> i didnt check most of the code but seeing this, i wonder how much
> more mpeg demuxing this duplicates ?
Only PES stuff.
More information about the ffmpeg-devel
mailing list