Mark Thompson
ce5870a3a8
cbs: Refcount all the things!
This makes it easier for users of the CBS API to get alloc/free right -
all subelements use the buffer API so that it's clear how to free them.
It also allows eliding some redundant copies: the packet -> fragment copy
disappears after this change if the input packet is refcounted, and more
codec-specific cases are now possible (but not included in this patch).
7 years ago
Mark Thompson
1d12a545ce
cbs: Add an explicit type for coded bitstream unit types
Also fix conversion specifiers used for the unit type.
8 years ago
Carl Eugen Hoyos
9b79c65ec0
lavu/lavc/lavf/lavfi: Do not use type modifier %zu on Windows MSVCRT.
7 years ago
Mark Thompson
5a6707e49b
cbs_mpeg2: Fix marker_bit type
8 years ago
Mark Thompson
7bf3f38046
cbs: Add padding to slice data allocations
These may be read by the bitstream reader, so they should include the
necessary padding for overreads.
8 years ago
Mark Thompson
79d666aa57
cbs_mpeg2: Fix format specifier
8 years ago
Mark Thompson
5b2c71bb94
cbs_mpeg2: Fix type for marker_bit reading
8 years ago
Mark Thompson
686e388bbb
lavc: Add coded bitstream read/write support for MPEG-2
(cherry picked from commit 2bc9ba8d3c )
(cherry picked from commit a41b69b5eb )
8 years ago
Mark Thompson
e7f64191b2
cbs: Add buffer padding when splitting fragments
Remove any trailing zeroes from H.26[45] NAL units at the same time.
8 years ago
Mark Thompson
44cde38c8a
cbs: Always check for bitstream end before reading
8 years ago
Mark Thompson
2bc9ba8d3c
lavc: Add coded bitstream read/write support for MPEG-2
Also enable MPEG-2 support in the trace_headers filter.
8 years ago