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

ffmpeg.c:1498:17: warning: ‘key_frame’ is deprecated #1833

Open
PeterHolik opened this issue Dec 15, 2024 · 2 comments
Open

ffmpeg.c:1498:17: warning: ‘key_frame’ is deprecated #1833

PeterHolik opened this issue Dec 15, 2024 · 2 comments
Labels

Comments

@PeterHolik
Copy link

Did you read the guide?

Yes

What is the base version number of Motion being used?

4.7.x

What was the install method?

Built from source code

What is base architecture?

x86

What is the distro being used?

Ubuntu

Disto version number

24.10

Camera type(s) being used?

Network camera with RTSP

Describe the issue/problem and steps to reproduce

deprecation warning could befixed with

ffmpeg_key_frame.PATCH

Motion log output at log_level 8

ffmpeg.c: In function ‘ffmpeg_put_image’:
ffmpeg.c:1498:17: warning: ‘key_frame’ is deprecated [-Wdeprecated-declarations]
 1498 |                 ffmpeg->picture->key_frame = 1;
      |                 ^~~~~~
In file included from /usr/include/x86_64-linux-gnu/libavformat/avformat.h:327,
                 from motion.h:90,
                 from ffmpeg.c:37:
/usr/include/x86_64-linux-gnu/libavutil/frame.h:440:9: note: declared here
  440 |     int key_frame;
      |         ^~~~~~~~~
ffmpeg.c:1502:17: warning: ‘key_frame’ is deprecated [-Wdeprecated-declarations]
 1502 |                 ffmpeg->picture->key_frame = 0;
      |                 ^~~~~~
/usr/include/x86_64-linux-gnu/libavutil/frame.h:440:9: note: declared here
  440 |     int key_frame;
      |         ^~~~~~~~~
@PeterHolik PeterHolik added the bug label Dec 15, 2024
@PeterHolik
Copy link
Author

ffmpeg_key_frame.PATCH

@PeterHolik
Copy link
Author

missing ";", sorry

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant