Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

sceMp3 : use bswap32 for swapping endian #5804

Merged
merged 5 commits into from
Apr 6, 2014
Merged

sceMp3 : use bswap32 for swapping endian #5804

merged 5 commits into from
Apr 6, 2014

Conversation

dbz400
Copy link
Contributor

@dbz400 dbz400 commented Apr 5, 2014

and also log channels/samplerate/bitrate for mp3 data

@sum2012
Copy link
Collaborator

sum2012 commented Apr 5, 2014

edit:I think sceMp3InitResource maybe do something
Do not correct the error code.

@raven02 Can you correct sceMp3ReleaseMp3Handle as well ?
it should return 0 instead -1 from JPCSPTrace log from Hanayaka Nari Wa ga Ichizoku :
00:28:52 user_main - sceMp3ReleaseMp3Handle 0 = 0x0

Full JPCSPTrace log:
https://gist.github.com/sum2012/48c15429fb6dce4a0128

@dbz400
Copy link
Contributor Author

dbz400 commented Apr 6, 2014

@hrydgard , looks good to you to merge this ?

ctx->avformat_context = avformat_alloc_context();
ctx->avformat_context->pb = ctx->avio_context;

int ret;
if ((ret = avformat_open_input(&ctx->avformat_context, NULL, av_find_input_format("mp3"), NULL)) < 0) {
// Load audio buffer
if ((ret = avformat_open_input((AVFormatContext**)&ctx->avformat_context, NULL, av_find_input_format("mp3"), NULL)) < 0) {
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Not sure why you need to add the cast to (AVFormatContext**) ?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Probably not need it .Will remove it.

hrydgard added a commit that referenced this pull request Apr 6, 2014
sceMp3 : use bswap32 for swapping endian
@hrydgard hrydgard merged commit 159f945 into hrydgard:master Apr 6, 2014
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants