Michael Niedermayer
b0b3676e13
avcodec/flac_parser: Raise threshold for detecting invalid data
...
Fixes regression from Ticket5428
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
9 years ago
Clément Bœsch
6c98398b0b
lavc/get_bits: add a logging context to check_marker()
...
Based on d338abb664
9 years ago
Michael Niedermayer
70d48accd8
avcodec/tests/options: Set timebase
...
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
9 years ago
Clément Bœsch
85185578ce
lavc/qtrleenc: simplify FF_API_CODED_FRAME deprecation guard
9 years ago
Clément Bœsch
0491d6993a
lavc/error_resilience: remove unused skip_last_mv label
...
Unused since a7b8a6e704
9 years ago
Matthieu Bouron
df3484f87c
lavc/videotoolbox: fix avcC extradata creation
...
Fixes properly ticket #5638 .
Since 772ad7142d
PPS and SPS contain the
nal type byte.
This reverts commit b8d754c5d0
.
This reverts commit 8e47a99f57
.
9 years ago
Matthieu Bouron
0cd5e281df
lavc/mediacodecdec_h264: use ff_h264_decode_extradata to extract PPS/SPS
...
Fixes playback of HLS streams on MediaTek devices which requires PPS/SPS
to be set in their respective csd-{0,1} buffers.
9 years ago
Clément Bœsch
d16aefee5c
lavc/mmaldec: reduce some diffs with Libav missed in previous skipped merges
9 years ago
Clément Bœsch
26cfafa52d
lavc/h264_slice: mark ref2frm as const pointers
9 years ago
Matthieu Bouron
0ea58059d6
lavc/h264_ps: add ff_h264_ps_uninit and use it
9 years ago
Carl Eugen Hoyos
dcdf69561f
lavc/audiotoolboxdec: Forward extradata for QDMC and QDM2.
...
Fixes audiotoolbox decoding of QDMC and QDM2.
9 years ago
Clément Bœsch
38a2d9aeec
lavc/h264_parser: replace AVCodecContext with logging ctx in scan_mmco_reset()
9 years ago
Clément Bœsch
4fdea02d68
lavc/h264: add a logging ctx to ff_h264_pred_weight_table()
9 years ago
Matthieu Bouron
432891a96e
lavc/mediacodecdec{,_h264}: set FF_CODEC_CAP_SETS_PKT_DTS capability
...
And sets frames pkt_dts to AV_NOPTS_VALUE as we do not want lavc/utils
to overwrite the field with incorrect values as the decoder is
asynchronous.
9 years ago
Dan Dennedy
b8d754c5d0
lavc/videotoolbox: Fix videotoolbox compile error on OS X 10.8.
...
Fixes error:
libavcodec/videotoolbox.c:511:18: error: implicit declaration of function
'CMVideoFormatDescriptionCreateFromH264ParameterSets' is invalid in C99
This was added in 10.9:
https://developer.apple.com/reference/coremedia/1489818-cmvideoformatdescriptioncreatefr?language=objc
9 years ago
Clément Bœsch
fd1d84bcf6
lavc/magicyuv: fix undefined behaviour introduced in 8a135a55b
...
Order of evaluation of parameters in C is not defined.
9 years ago
James Almer
5f5a97dc3d
avcodec/qsvenc_h264: declare the QSVEncContext variable before using it
...
Should fix compilation.
Regression introduced by commit 63adb3602d
Signed-off-by: James Almer <jamrial@gmail.com>
9 years ago
Clément Bœsch
34ec084b84
lavc/h264: move history parsing variable to H264ParseContext
...
This makes h264_find_frame_end() not depend on H264Context anymore.
9 years ago
Clément Bœsch
48ea5433c8
lavc/h264_parser: pass logctx to h264_find_frame_end()
...
This helps removing the H264Context from the H264ParseContext.
9 years ago
Paul B Mahol
8a135a55b3
avcodec/magicyuv: check dimensions
...
Signed-off-by: Paul B Mahol <onemda@gmail.com>
9 years ago
Andrey Turkin
63adb3602d
libavcodec: factor out SEI generation for A53 captions
...
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
9 years ago
Clément Bœsch
b51d5c99b8
lavc/h264_parse: remove tabs introduced in a2922b5d
9 years ago
James Almer
403a53c60e
avcodec/ffv1enc: silence warning about deprecated coded_frame
...
Reviewed-by: Michael Niedermayer <michael@niedermayer.cc>
Signed-off-by: James Almer <jamrial@gmail.com>
9 years ago
Michael Niedermayer
4efbeadadc
avcodec/snow: Document BlockNode
...
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
9 years ago
Michael Niedermayer
737f06577c
avcodec/snow: Remove unused function
...
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
9 years ago
Clément Bœsch
6cb550e933
lavc/videotoolbox: remove config_info maximum capacity
...
In case of extradata, config_info will contain two entries instead of
one.
9 years ago
Clément Bœsch
6fd58eba1c
lavc/videotoolbox: CFRelease() session
...
"When you are done with a decompression session you created, call
VTDecompressionSessionInvalidate to tear it down and then CFRelease to
release your object reference."
9 years ago
Steve Lhomme
193a421994
d3d11va: don't keep the context lock while waiting for a frame
...
also fixes a deadlock found by Денис Кулаков <kudesnik33ra@gmail.com>
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
9 years ago
Rick Kern
8b069b1cd5
lavc/videotoolboxenc: remove unnecessary logging
...
Signed-off-by: Rick Kern <kernrj@gmail.com>
9 years ago
Rick Kern
8e47a99f57
lavc/videotoolbox: fix H.264 hwaccel init issue
...
Fixes VTDecompressionSessionCreate() error.
Signed-off-by: Rick Kern <kernrj@gmail.com>
9 years ago
Rick Kern
143685a42b
lavc/audiotoolboxenc: fix dropped frames on iOS
...
AudioConverterFillComplexBuffer() doesn't always call its callback. A frame
queue is used to prevent skipped audio samples.
Signed-off-by: Rick Kern <kernrj@gmail.com>
9 years ago
James Almer
94011f994a
avodec/h264dec: fix compilation with -DTRACE
...
Signed-off-by: James Almer <jamrial@gmail.com>
9 years ago
Paul B Mahol
6098d4b8a8
avcodec/sheervideo: check build_vlc for failure
...
Signed-off-by: Paul B Mahol <onemda@gmail.com>
9 years ago
Carl Eugen Hoyos
aec96e233f
lavc/dpx: Support decoding 12 bit colourspace with transparency information.
9 years ago
Matthieu Bouron
346b3c5c41
lavc/mediacodec: re-indent after previous commit
9 years ago
Matthieu Bouron
e452abc5c2
lavc/mediacodec: refactor ff_AMediaCodecList_getCodecByType
...
Allows to select a codec (encoder or decoder) only if it supports a
specific profile.
Adds ff_AMediaCodecProfile_getProfileFromAVCodecContext to convert an
AVCodecContext profile to a MediaCodec profile. It only supports H264
for now.
The codepath using MediaCodecList.findDecoderForFormat() (Android >= 5.0)
has been dropped as this method does not allow to select a decoder
compatible with a specific profile.
9 years ago
James Almer
ede4ec1f8f
x86/aacpsdsp: optimize add_squares loop
...
Signed-off-by: James Almer <jamrial@gmail.com>
9 years ago
Carl Eugen Hoyos
d5ded429f2
lavc/dpx: Support decoding 10 bit colourspace with transparency information.
...
Fixes one sample from ticket #5639 .
9 years ago
Clément Bœsch
7dd8cd1933
lavc/h264_sei: fix broken style around green metadata code
9 years ago
Clément Bœsch
5342bb624d
lavc/h264: rename GreenMetaData to H264SEIGreenMetaData
...
Reduces diff for the next merge with Libav.
9 years ago
Clément Bœsch
b0ec36c9b1
lavc/h264_sei: reduce scope of parameters for green meta decode
...
This is again will help the merge as ff_h264_decode_sei will not have
access to H264Context anymore.
9 years ago
Clément Bœsch
fef89aae98
lavc/h264: move green meta logging out of the sei decoding
...
This will simplify the next Libav merge where SEI decoding doesn't have
access to the debug level anymore.
9 years ago
Clément Bœsch
7a2a8b541a
lavc/h264_sei: fix green metadata typo
9 years ago
Jérôme Martinez
878c3a3645
avcodec/ffv1dec: fix some unsupported pix_fmt
...
When checking pix_fmt mapping, some bitstreams are mapped to an
incorrect pix_fmt instead of being rejected (ENOSYS).
Actually, such bitstreams are not supported (FFmpeg encoder does not
produce such bitstream, such bitstream may come only from another
encoder for the moment).
- JPEG 2000 RCT 11/13/15/16 bit depths are mapped to a 8-bit FFmpeg
pix_fmt (e.g. bgr0), which is not expected.
- JPEG 2000 RCT 9/10/12/14 bit depths with alpha are mapped to a
FFmpeg pix_fmt without alpha (e.g. AV_PIX_FMT_GBRP9 for 9-bit with
alpha), which is not expected.
The order for choosing the pix_fmt is changed to the one used by YCbCr
selection (<=8 bit first).
" && !f->transparency" is added to the other lines.
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
9 years ago
Michael Niedermayer
4a8ed314fb
avcodec/h264_slice: Add casts to suppress warnings
...
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
9 years ago
Clément Bœsch
aafdad1b45
lavc/videotoolbox: fix sps/pps mistake introduced in 1534ef87
9 years ago
Clément Bœsch
4df944920c
lavc/videotoolbox: fixes compilation after 1534ef87
9 years ago
Clément Bœsch
82d79970ed
lavc/vda_h264: fixes compilation after 1534ef87
9 years ago
Anton Khirnov
6e92181bf8
h264: pass just the PPS to get_chroma_qp()
...
It does not need the whole context. This will simplify the following
commit.
9 years ago
Anton Khirnov
d1f539c97e
h264: merge the two reinit blocks in slice_header_parse()
...
The only difference is that the first of them contains a
ff_h264_flush_change() call. While that is not necessary in the second
block, it should cause no problems either.
Reduce the verbosity of the reinit log message from info to verbose,
since now it will be displayed during every decode session.
9 years ago