The goal is to distinguish between APIs provided by the generic layer to individual codecs and APIs internal to the generic layer. Start by moving ff_{decode,encode}_receive_frame() and ff_{decode,encode}_preinit() into this new header, as those functions are called from generic code and should not be visible to individual codecs.
Showing the changes to libavcodec/avcodec.c (1 of 6 files). Show all
Unified · Split
| @@ -34,6 +34,7 @@ · 33 unmodified lines | ||
| 34 | 34 | #include "libavutil/opt.h" |
| 35 | 35 | #include "libavutil/thread.h" |
| 36 | 36 | #include "avcodec.h" |
| 37 | +#include "avcodec_internal.h" | |
| 37 | 38 | #include "bsf.h" |
| 38 | 39 | #include "codec_internal.h" |
| 39 | 40 | #include "decode.h" |