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

chore: update AviRecord to comply with updated x265 API #766

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

chenrui333
Copy link

@@ -460,7 +460,8 @@ static int encode_frame( unsigned char *inBuf, int width, int height )
pic->stride[1] = width/2;
pic->stride[2] = width/2;

ret = x265_encoder_encode( hdl, &nal, &i_nal, pic, &pic_out );
x265_picture *pic_out = nullptr;
Copy link

@carlocab carlocab Oct 30, 2024

Choose a reason for hiding this comment

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

Not sure this looks right. Aren't you shadowing

static x265_picture pic_out;

?

Comment on lines +463 to +464
x265_picture *pic_out = nullptr;
ret = x265_encoder_encode(hdl, &nal, &i_nal, pic, &pic_out);

Choose a reason for hiding this comment

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

I suspect this maybe should be something like

Suggested change
x265_picture *pic_out = nullptr;
ret = x265_encoder_encode(hdl, &nal, &i_nal, pic, &pic_out);
x265_picture *pic_out_ptr = &pic_out;
ret = x265_encoder_encode(hdl, &nal, &i_nal, pic, &pic_out_ptr);

Hard to say though.

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.

AviRecord.cpp build failure with x265 4.0
2 participants