Mailing List archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[linux-dvb] Re: FF cards alter PTS'?
Pekka Virtanen wrote:
> http://virtanen.org/files/vdr-test-0.0.1.tgz
I think there is a bug:
int64_t iPagePts = (int64_t) (Data[ 9] & 0x0E) << 29 ;
iPagePts |= (int64_t) Data[ 10] << 22 ;
iPagePts |= (int64_t) (Data[ 11] & 0xFE) << 14 ;
iPagePts |= (int64_t) Data[ 12] << 7 ;
iPagePts |= (int64_t) (Data[ 13] & 0xFE) >> 1 ;
fprintf(stderr, "video pts = %lld\n",iPagePts);
It should be:
int64_t iPagePts = (int64_t) (Data[ 9] & 0x0E) << 29 ;
iPagePts |= (int64_t) Data[ 10] << 22 ;
iPagePts |= (int64_t) (Data[ 11] & 0xFE) << 15 ;
iPagePts |= (int64_t) Data[ 12] << 7 ;
iPagePts |= (int64_t) (Data[ 13] & 0xFE) >> 1 ;
fprintf(stderr, "video pts = %lld\n",iPagePts);
Doesn't explain the difference you're seeing, though.
> VDR's DvbDevice::GetSTC() and DVB/apps/test/test_stc give out the same
> value which ~= Video PTS printed by my test plugin. No recording was
> ongoing when I did the test.
Hm...
Johannes
--
Info:
To unsubscribe send a mail to ecartis@linuxtv.org with "unsubscribe linux-dvb" as subject.
Home |
Main Index |
Thread Index