Andreas Rheinhardt
12a5e0409d
avcodec/ac3_tab: Zero-terminate ff_ac3_sample_rate_tab
...
This is required to use it as an AVCodec.supported_samplerates array.
Adding the sentinel has been forgotten in 4679a474
.
Without it e.g. the FATE-test ffmpeg-filter_complex_audio fails with ASAN.
Reviewed-by: Carl Eugen Hoyos <ceffmpeg@gmail.com>
Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@gmail.com>
5 years ago
Zane van Iperen
67c4405fac
avcodec/adpcm: remove unused shift parameter from adpcm_ima_qt_expand_nibble()
...
Signed-off-by: Zane van Iperen <zane@zanevaniperen.com>
5 years ago
Carl Eugen Hoyos
5325423437
lavc/amrwbdec: Add a comment about the missing muting technique.
5 years ago
Carl Eugen Hoyos
e426f71c96
lavc/amrwbdec: Output silence for frames marked as corrupt.
...
Fixes ticket #7113 .
5 years ago
Carl Eugen Hoyos
8f01fa378f
lavc/amrwbdec: Remove a dead comparison.
...
Modes > MODE_SID are already filtered out at this point.
Simplifies the following change.
5 years ago
Rosen Penev
875ba23333
avcodec/aacdec: fix compilation under soft float MIPS
...
Place HAVE_MIPSFPU further up so that functions that use floating point
ASM are defined away. Otherwise compilation failures result when soft
float in enabled on the toolchain.
Signed-off-by: Rosen Penev <rosenp@gmail.com>
5 years ago
Carl Eugen Hoyos
dbc5c0c1c8
lavfi/telecine: Mark telecined frames as interlaced.
5 years ago
Mattias Wadman
9d21d18ec3
lavf/oggparsevorbis: Use case-insensitive key compare for vorbis picture
...
Regression since 8d3630c540
where keys were changed
to not be touppered but the picture block strcmp was not changed to be case-insensitive.
Fixes ticket #8608 .
5 years ago
John Stebbins
99360990a9
libavformat/mov: restore use of mfra time as dts
...
This was inadvertantly removed in 4a9d32baca
Reviewed-by: Gyan Doshi <ffmpeg@gyani.pro>
5 years ago
Gyan Doshi
49a32fa45c
avfilter/delogo: correct indentation for option show.
5 years ago
Gyan Doshi
74fe697f96
avfilter/delogo: remove deprecated options
...
Deprecated in 2015 in 8bc708fcee
5 years ago
John Stebbins
fa736a994c
lavc/xsubenc: return meaningfull error codes
...
Signed-off-by: Philip Langdale <philipl@overt.org>
5 years ago
John Stebbins
5fcf620eee
lavc/webvttenc: return more meaningful error codes
...
Signed-off-by: Philip Langdale <philipl@overt.org>
5 years ago
John Stebbins
9ac715a367
lavc/srtenc: return more meaninful error codes
...
Signed-off-by: Philip Langdale <philipl@overt.org>
5 years ago
John Stebbins
1d544e410e
lavc/movtextenc: return more meaningful error codes
...
Signed-off-by: Philip Langdale <philipl@overt.org>
5 years ago
John Stebbins
9a0817baa4
lavc/assenc: return more meaningful error code
...
When the buffer is too small, return AVERROR_BUFFER_TOO_SMALL
Signed-off-by: Philip Langdale <philipl@overt.org>
5 years ago
John Stebbins
75a8458863
lavc/dvbsub: return meaningful error codes
...
Signed-off-by: Philip Langdale <philipl@overt.org>
5 years ago
John Stebbins
eda8d48fea
lavc/dvbsub: fix potential encode buffer overflow
...
encode buffer size was ignored
Signed-off-by: Philip Langdale <philipl@overt.org>
5 years ago
Philip Langdale
7b0c22768e
Changelog: Add entry for expanded styling support in movtext
5 years ago
John Stebbins
ad3f6212ac
lavc/movtextenc: handle changes to hilight alpha
...
Signed-off-by: Philip Langdale <philipl@overt.org>
5 years ago
John Stebbins
eeef870851
lavc/movtextenc: add option to scale fontsize with height
...
If the video dimensions are different than the ASS play_res then the
font sizes need to be adjusted to get the same apparent render size.
Signed-off-by: Philip Langdale <philipl@overt.org>
5 years ago
John Stebbins
1f8278ee24
lavc/movtextenc: add font name handling
...
Initializes the mov text sample description from the ASS header and
creates an mov font table from the fonts available in the ASS Styles.
Signed-off-by: Philip Langdale <philipl@overt.org>
5 years ago
John Stebbins
dbdbcbf384
lavc/movtextenc: simplify initialization of new style record
...
Signed-off-by: Philip Langdale <philipl@overt.org>
5 years ago
John Stebbins
bb8fd04665
lavc/movtextenc: handle cancel overrides callback
...
Signed-off-by: Philip Langdale <philipl@overt.org>
5 years ago
John Stebbins
848792be60
lavc/movtextenc: add font size tag handling
...
Signed-off-by: Philip Langdale <philipl@overt.org>
5 years ago
John Stebbins
2e79843e37
lavc/movtextenc: add alpha tag handling
...
Signed-off-by: Philip Langdale <philipl@overt.org>
5 years ago
John Stebbins
b847bd9582
lavc/movtextenc: add color tag handling
...
Signed-off-by: Philip Langdale <philipl@overt.org>
5 years ago
John Stebbins
37ab5e2e7b
lavc/movtextenc: init style record from ASS dialog style
...
Signed-off-by: Philip Langdale <philipl@overt.org>
5 years ago
John Stebbins
a129cc9e29
lavc/movtextenc: fix unclosed style records
...
The last record at the end of each dialog was never closed
Signed-off-by: Philip Langdale <philipl@overt.org>
5 years ago
John Stebbins
1bf0df4c4f
lavc/movtextenc: simplify style record updates
...
Makes style update code easier to extend for style types not yet handled
Signed-off-by: Philip Langdale <philipl@overt.org>
5 years ago
John Stebbins
15b81f5e6b
lavc/movtextenc: keep values in native byte order till written
...
Signed-off-by: Philip Langdale <philipl@overt.org>
5 years ago
John Stebbins
32cf264d8f
lavc/movtextenc: use correct color component order
...
Signed-off-by: Philip Langdale <philipl@overt.org>
5 years ago
John Stebbins
a52eef68d4
lavc/ass_split: fix parsing utf8 scripts
...
The [Script Info] section was skipped if starts with UTF8 BOM
Signed-off-by: Philip Langdale <philipl@overt.org>
5 years ago
John Stebbins
b8d4a66b29
lavc/movtextdec: allow setting subtitle frame dimensions
...
Font sizes are relative to the subtitle frame dimensions. If the
expected frame dimensions are not known, the font sizes will most
likely be incorrect.
Signed-off-by: Philip Langdale <philipl@overt.org>
5 years ago
John Stebbins
f406dc9ceb
lavc/movtextdec: restore active style color after hilite
...
Signed-off-by: Philip Langdale <philipl@overt.org>
5 years ago
John Stebbins
032ad7a0bb
lavc/movtextdec: add color and alpha style tags
...
Signed-off-by: Philip Langdale <philipl@overt.org>
5 years ago
John Stebbins
91447ae3ba
lavc/movtextdec: add alpha default to ass header colors
...
Signed-off-by: Philip Langdale <philipl@overt.org>
5 years ago
John Stebbins
c0d3fea600
lavc/movtextdec: make sure default font name is set
...
Signed-off-by: Philip Langdale <philipl@overt.org>
5 years ago
John Stebbins
e5b99df096
lavc/movtextdec: only write fontsize, fontID tags if not default
...
Signed-off-by: Philip Langdale <philipl@overt.org>
5 years ago
John Stebbins
d3c012ff42
lavc/movtextdec: handle changes to default style flags
...
Style flags were only being turned on. If the default was on and style
record turned off, style flag remained on.
Signed-off-by: Philip Langdale <philipl@overt.org>
5 years ago
John Stebbins
5f39f63a65
lavc/movtextdec: fix bold, italic, underline flags
...
They should be 0 or 1 so that 0 or -1 is written to the ass header
Signed-off-by: Philip Langdale <philipl@overt.org>
5 years ago
John Stebbins
2949f17e99
lavc/movtextdec: simplify style record walk
...
It's not necessary to walk the style record list twice per subtitle
character. style records are in order and do not overlap.
Signed-off-by: Philip Langdale <philipl@overt.org>
5 years ago
John Stebbins
47e88adc0d
lavc/movtextdec: fix ass header colors
...
A conversion from rgb to bgr is necessary
Signed-off-by: Philip Langdale <philipl@overt.org>
5 years ago
Anton Khirnov
c3a2615bb8
lavc: install codec_desc.h
...
Forgotten in 672946c7fe
5 years ago
Anton Khirnov
fc12d6c258
h264dec: do not set picture_structure on init
...
This has been cargo culted from mpegvideo and serves no useful purpose.
It will be initialize correctly in h264_field_start()
5 years ago
Anton Khirnov
4fb05c0d5d
h264dec: rename flush_dpb()
...
The name is misleading, this function does a lot more than just flushing
the DPB.
5 years ago
Anton Khirnov
5e316096fa
h264_ps: make the PPS hold a reference to its SPS
...
It represents the relationship between them more naturally and will be
useful in the following commits.
Allows significantly more frames in fate-h264-attachment-631 to be
decoded.
5 years ago
Anton Khirnov
ec7f33a38e
h264_sei: parse the picture timing SEIs correctly
...
Those SEIs refer to the currently active SPS. However, since the SEI
NALUs precede the coded picture data in the bitstream, the active SPS is
in general not known when we are decoding the SEI.
Therefore, store the content of the picture timing SEIs and actually
parse it when the active SPS is known.
5 years ago
Anton Khirnov
1e9615c5d4
h264_sei: use a separate reader for the individual SEI messages
...
This tells the parsing functions the payload size and prevents them from
overreading.
5 years ago
Anton Khirnov
d41faffb53
h264dec: do not abort if decoding extradata fails
...
Such errors are not necessarily fatal and decoding might still be
possible, e.g. it happens for MVC streams where we do not handle the
subset SPS thus failing to parse its corresponding PPS.
5 years ago