It is only used by encoders; in fact, AVCodecContext.time_base is only used by encoders, so it is only useful for encoders. Also constify the AVCodecContext parameter in it. Also fixup the other headers a bit while removing now unnecessary internal.h inclusions.
Showing the changes to libavcodec/audio_frame_queue.c (1 of 11 files). Show all
Unified · Split
| @@ -22,7 +22,7 @@ · 21 unmodified lines | ||
| 22 | 22 | #include "libavutil/attributes.h" |
| 23 | 23 | #include "libavutil/common.h" |
| 24 | 24 | #include "audio_frame_queue.h" |
| 25 | −#include "internal.h" | |
| 25 | +#include "encode.h" | |
| 26 | 26 | #include "libavutil/avassert.h" |
| 27 | 27 | |
| 28 | 28 | av_cold void ff_af_queue_init(AVCodecContext *avctx, AudioFrameQueue *afq) |