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

Replace deprecated code #149

Closed
nschlia opened this issue Jun 27, 2023 · 0 comments
Closed

Replace deprecated code #149

nschlia opened this issue Jun 27, 2023 · 0 comments
Assignees

Comments

@nschlia
Copy link
Owner

nschlia commented Jun 27, 2023

Several deprecated settings must be replaced

#if FF_API_TICKS_PER_FRAME
Global AVCodecContext::ticks_per_frame
    decoding: Use AVCodecDescriptor.props & AV_CODEC_PROP_FIELDS
    encoding: Set AVCodecContext.framerate instead

#if FF_API_FRAME_KEY
Global AVFrame::key_frame
    Use AV_FRAME_FLAG_KEY instead 

 #if FF_API_INTERLACED_FRAME
Global AVFrame::top_field_first
    Use AV_FRAME_FLAG_TOP_FIELD_FIRST instead
Global AVFrame::interlaced_frame
    Use AV_FRAME_FLAG_INTERLACED instead 

+#if FF_API_FLAG_TRUNCATED
 /**
  * Input bitstream might be truncated at a random location
  * instead of only at frame boundaries.
+ *
+ * @deprecated use codec parsers for packetizing input
  */
 #define AV_CODEC_FLAG_TRUNCATED       (1 << 16)
+#endif

https://ffmpeg.org/doxygen/trunk/deprecated.html
https://raw.githubusercontent.com/FFmpeg/FFmpeg/master/doc/APIchanges

@nschlia nschlia self-assigned this Jun 27, 2023
@nschlia nschlia closed this as completed Feb 3, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant