Gents, My TI C55xx complier is complaining about (in opus_encoder.c, opus_encode()): st->silk_mode.payloadSize_ms = 1000 * frame_size / st->Fs; where .payloadSize_ms is opus_int, frame_size is an int, and Fs is a long. Should one of these be cast differently? Thx, MikeH -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.xiph.org/pipermail/opus/attachments/20120822/05995302/attachment.htm
On 12-08-22 05:52 PM, Mike Hooper wrote:> My TI C55xx complier is complaining about (in opus_encoder.c, > opus_encode()): > > st->silk_mode.payloadSize_ms = 1000 * frame_size / st->Fs; > > where .payloadSize_ms is opus_int, frame_size is an int, and Fs is a > long. Should one of these be cast differently?I think this code should be: st->silk_mode.payloadSize_ms = 1000 * (opus_int32)frame_size / st->Fs; Will fix.
On 12-08-22 2:52 PM, Mike Hooper wrote:> My TI C55xx complier is complaining about (in opus_encoder.c, > opus_encode()): > > st->silk_mode.payloadSize_ms = 1000 * frame_size / st->Fs; > > where .payloadSize_ms is opus_int, frame_size is an int, and Fs is a > long. Should one of these be cast differently?Fs should be an int instead of a long. It was changed to an opus_int32 in September, so if you update to 0.9.7 or later the problem should go away. I would suggest working with git master or the 1.0.1 release candidate source if you're doing a new port. -r