[Live-devel] bug report
choujs
qiujianshu at cnc-labs.com
Mon Jul 14 23:13:15 PDT 2008
You are right. Thank you.
> >Hi,
>>
>>I think there is an error in function
>>MPEG2TransportStreamIndexFile::readIndexRecord().
>>The line:
>>
>>++fCurrentIndexRecordNum;
>>
>>should be:
>>
>>fCurrentIndexRecordNum = indexRecordNum;
>>
>>is it?
>
> No, the current code is correct. "readIndexRecord(indexRecordNum)"
> starts by seeking to "indexRecordNum", if we're not already there.
> In doing so, it sets "fCurrentIndexRecordNum" to "indexRecordNum".
> The code then reads that record, which means that the next record
> that would be read (without seeking) would be ""indexRecordNum+1".
> Therefore, we end by setting "fCurrentIndexRecordNum" to that value.
> --
>
> Ross Finlayson
> Live Networks, Inc.
> http://www.live555.com/
> _______________________________________________
> live-devel mailing list
> live-devel at lists.live555.com
> http://lists.live555.com/mailman/listinfo/live-devel
More information about the live-devel
mailing list