05-02-2012, 08:02 PM
(05-02-2012, 05:36 PM)Itaru Wrote: I think I've found a workaround for the end of data problem with the new Xuggle during AT3 playback. The workaround is to modify line 315 in the jpcsp.media.MediaEngine class as follows:Interesting finding!
The queryStreamMetaData parameter has to be set to false for AT3 decoding to work properly without the end of data read problem, and it has to be set to true for video decoding to work properly. Using decodeVideo to set the queryStreamMetaData parameter in the above code seems to work nicely. I haven't done much testing with this workaround yet, and I'm not even sure that the workaround is a good idea.Code:if (container.open(channel, IContainer.Type.READ, null, true, decodeVideo) < 0) {
I've also tried reducing the look-ahead size in line 365 of the jpcsp.connector.AtracCodec class after applying the workaround above. I've tried reducing the look-ahead size to 0x7000 bytes and AT3 playback still works correctly. However, setting it to 0x6000 causes end of data problem.
![Smile Smile](https://www.emunewz.net/forum/images/smilies/smile.gif)
I've committed it in r2542 so that more people can test it. It doesn't seem to me it would break something.
I just kept the parameter "streamsCanBeAddedDynamically" to false as I don't think this is possible on a PSP.
Always include a complete log file at INFO level in your reports. Thanks! How to post a log