Andrew Kelley
41b73ae883
bsf: use standard include paths
...
Removes the special -I flag specified in the avcodec/bsf/ subdirectory.
This makes code copy-pastable to other parts of the ffmpeg codebase, as
well as simplifying the build script.
It also reduces ambiguity, since there are many instances of same-named
header files existing in both libavformat/ and libavcodec/
subdirectories.
Reviewed-by: Lynne <dev@lynne.ee>
Signed-off-by: James Almer <jamrial@gmail.com>
9 months ago
Andreas Rheinhardt
790f793844
avutil/common: Don't auto-include mem.h
...
There are lots of files that don't need it: The number of object
files that actually need it went down from 2011 to 884 here.
Keep it for external users in order to not cause breakages.
Also improve the other headers a bit while just at it.
Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>
9 months ago
Anton Khirnov
887a7817b6
lavc: move bitstream filters into bsf/ subdir
11 months ago
Andreas Rheinhardt
6e5e74c55b
avcodec/evc*: Improve included headers
...
In particular, don't include avcodec.h in evc_frame_merge_bsf.c.
Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>
1 year ago
James Almer
a9d41ab890
avcodec/evc_frame_merge: remove an av_packet_copy_props() call
...
And only fill out if no failures can happen, fixing potential leaks.
Signed-off-by: James Almer <jamrial@gmail.com>
2 years ago
James Almer
b1b45ac9d4
avcodec/evc_frame_merge: ensure the assembled buffer fits in an AVPacket
...
Signed-off-by: James Almer <jamrial@gmail.com>
2 years ago
James Almer
9834660601
avcodec/evc_frame_merge: copy input packet props to output
...
Signed-off-by: James Almer <jamrial@gmail.com>
2 years ago
James Almer
daf61a706a
avcodec/evc_frame_merge: reindent after previous commit
...
Signed-off-by: James Almer <jamrial@gmail.com>
2 years ago
James Almer
e6359b0cc1
avcodec/evc_frame_merge: properly support packets with more than one NALU
...
Parse through all NALUs in a packet, pull new ones when a complete AU could not
be assembled, or keep them around if an AU was assembled while data remained in
them.
Signed-off-by: James Almer <jamrial@gmail.com>
2 years ago
James Almer
7fc6c7633e
avcodec/evc_frame_merge: use a GetBitContext to parse entire NALUs
...
Signed-off-by: James Almer <jamrial@gmail.com>
2 years ago
James Almer
e5da2ec456
avcodec/evc_parse: pass a GetBitContext to the slice header parsing function
...
Signed-off-by: James Almer <jamrial@gmail.com>
2 years ago
James Almer
2212808a72
avcodec/evc_ps: pass a GetBitContext to the SPS and PPS parsing functions
...
This is in preparation for the following patch.
Signed-off-by: James Almer <jamrial@gmail.com>
2 years ago
James Almer
921596e677
avcodec/evc_ps: make ff_evc_parse_{sps,pps} return an error code
...
Signed-off-by: James Almer <jamrial@gmail.com>
2 years ago
James Almer
56e52e870d
avcodec/evc_frame_merge_bsf: make ff_evc_parse_nal_unit() local to the filter
...
Signed-off-by: James Almer <jamrial@gmail.com>
2 years ago
James Almer
1e189fed7a
avcodec/evc_parse: split off Parameter Set parsing into its own file
...
Signed-off-by: James Almer <jamrial@gmail.com>
2 years ago
James Almer
8ab706677c
avcodec/evc_frame_merge_bsf: use av_new_packet()
...
This ensures the buffer is padded as required by the AVPacket API.
Signed-off-by: James Almer <jamrial@gmail.com>
2 years ago
James Almer
96fc192733
avcodec/evc_frame_merge: use av_fast_realloc()
...
Signed-off-by: James Almer <jamrial@gmail.com>
2 years ago
James Almer
f24064e627
avcodec/evc_frame_merge_bsf: free EVCFMergeContext on flush and close
...
Signed-off-by: James Almer <jamrial@gmail.com>
2 years ago
James Almer
b1d0b59d81
avcodec/evc_frame_merge_bsf: check for av_memdup() failure
...
Signed-off-by: James Almer <jamrial@gmail.com>
2 years ago
Dawid Kozinski
ab2671c5f2
avformat/evc_demuxer: Added demuxer to handle reading EVC video files
...
- Provided AVInputFormat struct describing EVC input format (ff_evc_demuxer)
Signed-off-by: Dawid Kozinski <d.kozinski@samsung.com>
2 years ago