[Live-devel] [Fwd: Re: trick mode index files: x86 and ppc]
Daniel Robbins
drobbins at fsmlabs.com
Wed Jan 17 09:50:49 PST 2007
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.
More information about the live-devel
mailing list