summaryrefslogtreecommitdiff
path: root/libavformat/codec2.c
Commit message (Collapse)AuthorAge
* avformat/codec2: remove surplus include 'memory.h' statementPeter Ross2022-04-09
| | | | | | | | on glibc memory.h drags in string.h, but codec2 does not use any str* or mem* functions. additionally, memory.h is not part of the C99 or POSIX standards. Signed-off-by: Marton Balint <cus@passwd.hu>
* configure: Use a separate config_components.h header for $ALL_COMPONENTSMartin Storsjö2022-03-16
| | | | | | | | This avoids unnecessary rebuilds of most source files if only the list of enabled components has changed, but not the other properties of the build, set in config.h. Signed-off-by: Martin Storsjö <martin@martin.st>
* codec2: convert to new channel layout APIAnton Khirnov2022-03-15
| | | | Signed-off-by: James Almer <jamrial@gmail.com>
* avformat: Avoid allocation for AVFormatInternalAndreas Rheinhardt2021-09-17
| | | | | | | | | | | | | Do this by allocating AVFormatContext together with the data that is currently in AVFormatInternal; or rather: Put AVFormatContext at the beginning of a new structure called FFFormatContext (which encompasses more than just the internal fields and is a proper context in its own right, hence the name) and remove AVFormatInternal altogether. The biggest simplifications occured in avformat_alloc_context(), where one can now simply call avformat_free_context() in case of errors. Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>
* avcodec/avcodec: Stop including channel_layout.h in avcodec.hAndreas Rheinhardt2021-07-22
| | | | | | Also include channel_layout.h directly wherever used. Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>
* avformat/codec2: Remove unused AVClass with wrong categoryAndreas Rheinhardt2021-07-08
| | | | | | | The codec2 muxer has no options and so it needs no AVClass; and it certainly needs no AVClass of category AV_CLASS_CATEGORY_DEMUXER. Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>
* avformat/Makefile: Remove rawdec dependency from aptx, codec2 demuxersAndreas Rheinhardt2021-07-08
| | | | | | | These demuxers don't need anything from rawdec; they furthermore only used rawdec.h to include opt.h. Both of this has been fixed. Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>
* avformat: Constify all muxer/demuxersAndreas Rheinhardt2021-04-27
| | | | | | | This is possible now that the next-API is gone. Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com> Signed-off-by: James Almer <jamrial@gmail.com>
* avcodec/codec2utils: move the remaining avpriv functions to lavfJames Almer2020-10-28
| | | | | | | | They are only used by the codec2 demuxers. The symbols are kept around until the next major bump. Signed-off-by: James Almer <jamrial@gmail.com>
* libavcodec/codec2utils: remove codec2_version_from_extradata()James Almer2020-10-28
| | | | | | | | It's only used in the codec2 demuxers, and can be simplified with an AV_RB16() call instead. Suggested-by: Andreas Rheinhardt <andreas.rheinhardt@gmail.com> Signed-off-by: James Almer <jamrial@gmail.com>
* avcodec/codec2utils: remove avpriv prefix from inline functionsJames Almer2020-10-28
| | | | Signed-off-by: James Almer <jamrial@gmail.com>
* lavf: Constify the probe function argument.Carl Eugen Hoyos2019-03-21
| | | | | Reviewed-by: Lauri Kasanen Reviewed-by: Tomas Härdin
* Add muxer/demuxer for raw codec2 and .c2 filesTomas Härdin2018-02-24