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

libxeve 0.5.1 tag build error with ffmpeg 7.0.1 #120

Open
wader opened this issue Jun 24, 2024 · 6 comments
Open

libxeve 0.5.1 tag build error with ffmpeg 7.0.1 #120

wader opened this issue Jun 24, 2024 · 6 comments
Assignees

Comments

@wader
Copy link

wader commented Jun 24, 2024

Not sure if 0.5.1 has been released yet but an automated update build triggered on the new tag failed with this:

...
libavcodec/libxeve.c:199:27: error: incompatible types when assigning to type 'XEVE_RATIONAL' {aka 'struct _XEVE_RATIONAL'} from type 'long int'
  199 |         cdsc->param.fps = lrintf(av_q2d(avctx->framerate));
      |                           ^~~~~~
libavcodec/libxeve.c: In function 'libxeve_encode':
libavcodec/libxeve.c:484:40: error: incompatible types when assigning to type 'int' from type 'XEVE_RATIONAL' {aka 'struct _XEVE_RATIONAL'}
  484 |                 avpkt->time_base.den = xectx->cdsc.param.fps;
      |                                        ^~~~~
@dariusz-f
Copy link
Collaborator

Yes, API was changed and need to be updated on FFmpeg side. Soon we will prepare patch.

@wader
Copy link
Author

wader commented Jun 25, 2024

👍 close issue or let it be open until patch has been merged?

@dariusz-f
Copy link
Collaborator

Problem exists, so keep issue opened.

@dariusz-f dariusz-f linked a pull request Jun 25, 2024 that will close this issue
@dariusz-f dariusz-f removed a link to a pull request Jun 25, 2024
@dkozinski
Copy link
Collaborator

Not sure if 0.5.1 has been released yet but an automated update build triggered on the new tag failed with this:

...
libavcodec/libxeve.c:199:27: error: incompatible types when assigning to type 'XEVE_RATIONAL' {aka 'struct _XEVE_RATIONAL'} from type 'long int'
  199 |         cdsc->param.fps = lrintf(av_q2d(avctx->framerate));
      |                           ^~~~~~
libavcodec/libxeve.c: In function 'libxeve_encode':
libavcodec/libxeve.c:484:40: error: incompatible types when assigning to type 'int' from type 'XEVE_RATIONAL' {aka 'struct _XEVE_RATIONAL'}
  484 |                 avpkt->time_base.den = xectx->cdsc.param.fps;
      |                                        ^~~~~

I've just submitted a patch to the FFmpeg project that fixes the problem.

https://patchwork.ffmpeg.org/project/ffmpeg/patch/20240625122016.862-1-d.kozinski@samsung.com/

@dkozinski
Copy link
Collaborator

dkozinski commented Jun 28, 2024

The patch has just been merged to the FFmpeg

@dariusz-f
Copy link
Collaborator

Need to test and confirm this with latest FFmpeg HEAD. After sucessfull test we can close this issue.

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

No branches or pull requests

3 participants