[Live-devel] [Fwd: Re: trick mode index files: x86 and ppc]
Daniel Robbins
drobbins at fsmlabs.com
Wed Jan 17 09:57:50 PST 2007
Ross,
This looks like an off-by-one error. I ran "cmp -lb x86-out.tsx
ppc-out.tsx" and am attaching the output to this email. There are 257
off-by-one differences between the x86 and ppc index files.
Regards,
Daniel
Daniel Robbins wrote:
> bumping this back over to the list...
>
> Hi Ross,
>
> This patch does fix the problem, and the test indexing program runs
> correctly on PowerPC and generates an scaled output .ts file that is
> valid and can be played back. However, there *may* be some lingering
> issue as the .tsx files generated on x86 and ppc still don't have
> identical md5sums, even though everything seems to work:
>
> # cmp out.tsx ppc-out.tsx
> out.tsx ppc-out.tsx differ: char 3010036, line 9315
>
> As you can see, the binary difference appears about 3MB into the file.
> The index files are around 8MB total.
>
> Let me know if you think there is still an outstanding issue or not.
>
> Regards,
>
> Daniel
>
> Ross Finlayson wrote:
>> OK, thanks.
>>
>> I think I've found the problem now. Try changing line 41 of
>> "liveMedia/MPEG2IndexFromTransportStream.cpp" from
>> void setFirstFlag() { *(u_int8_t*)&fRecordType |= 0x80; }
>> to
>> void setFirstFlag() { fRecordType =
>> (RecordType)(((u_int8_t)fRecordType) | 0x80); }
>> then run
>> make; cd ../testProgs; make MPEG2TransportStreamIndexer
>> and try creating the index file once again on a PowerPC. Let me know
>> if it now turns out the same as the x86 version.
>
>
>
>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: out.txt.bz2
Type: application/octet-stream
Size: 1170 bytes
Desc: not available
Url : http://lists.live555.com/pipermail/live-devel/attachments/20070117/e5eb2096/attachment-0001.obj
More information about the live-devel
mailing list