Paul B Mahol
8a4c3f5258
avcodec: add adpcm dat4 decoder
...
Signed-off-by: Paul B Mahol <onemda@gmail.com>
9 years ago
Hendrik Leppkes
994412fb9b
avcodec: properly initialize AVCodecParameters profile/level
...
Signed-off-by: Derek Buitenhuis <derek.buitenhuis@gmail.com>
9 years ago
Clément Bœsch
ffd1c3eeb7
lavc/utils: use pkt_timebase for legacy subtitles timing code
...
This is consistent with other AVSubtitle timing adjustments.
9 years ago
wm4
a5f5b8b96a
lavc: factor apply_param_change() AV_EF_EXPLODE handling
...
Remove the duplicated code for handling failure of apply_param_change().
9 years ago
Clément Bœsch
be8d98c1ad
lavc/utils: transfer width/height for subs in codecpar
...
Signed-off-by: Derek Buitenhuis <derek.buitenhuis@gmail.com>
9 years ago
Derek Buitenhuis
dd77dad4e6
codecpar: Add video delay field
...
Signed-off-by: Derek Buitenhuis <derek.buitenhuis@gmail.com>
9 years ago
Hendrik Leppkes
5b4f8af2f1
Add frame_size to AVCodecParameters
...
Signed-off-by: Derek Buitenhuis <derek.buitenhuis@gmail.com>
9 years ago
James Almer
3fafde6cbe
lavc: Add seek_preroll to AVCodecParameters
...
Signed-off-by: James Almer <jamrial@gmail.com>
9 years ago
Marton Balint
99f2a59c2f
avcodec/utils: fix packet duration of frames with discarded paddings
...
Reviewed-by: Hendrik Leppkes <h.leppkes@gmail.com>
Signed-off-by: Marton Balint <cus@passwd.hu>
9 years ago
Clément Bœsch
2b7a61cbd8
lavc/utils: fix extra ASS sanity check in convert_sub_to_old_ass_form()
9 years ago
wm4
2e2f8534eb
lavc: factor apply_param_change() AV_EF_EXPLODE handling
...
Remove the duplicated code for handling failure of apply_param_change().
Signed-off-by: Anton Khirnov <anton@khirnov.net>
9 years ago
Michael Niedermayer
dec816f92c
avcodec/utils: Fix memleak on error in convert_sub_to_old_ass_form()
...
Fixes CID1355116
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
9 years ago
Michael Niedermayer
fbfd2601f6
avcodec/utils: Fix 'ISO C90 forbids mixed declarations and code'
...
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
9 years ago
Michael Niedermayer
0be09f54fb
avcodec: Add utils test
...
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
9 years ago
Reimar Döffinger
4dd4d53531
Document and validate AVFrame plane pointers.
...
Check that the required plane pointers and only
those are set up.
Currently does not enforce anything for the palette
pointer of pseudopal formats as I am unsure about the
requirements.
Signed-off-by: Reimar Döffinger <Reimar.Doeffinger@gmx.de>
9 years ago
Michael Niedermayer
d39b770aa2
avcodec/utils: Check that the video data[] arrays are NULL on the input to get_buffer_internal()
...
This should return an error to the decoder if the struct it tried to getbuffer is dirty
Reviewed-by: Reimar Döffinger <Reimar.Doeffinger@gmx.de>
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
9 years ago
Michael Niedermayer
bdf7093bd0
avcodec/utils: Check all data[] pointers in video_get_buffer() not just the first
...
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
9 years ago
Clément Bœsch
22ebbda637
lavc: deprecate decoded ass subtitles with timings
9 years ago
Clément Bœsch
2941282124
lavc: allow subtitle text format to be ASS without timing
9 years ago
Michael Niedermayer
410f717ff6
avcodec/utils: Merge identical if conditions
...
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
9 years ago
Neil Birkbeck
ad17b9d2d4
libavcodec:add packet level support for mastering metadata
...
Some containers, like webm/mkv, will contain this mastering metadata.
This is analogous to the way 3D fpa data is handled (in frame and
packet side data).
Signed-off-by: Neil Birkbeck <neil.birkbeck@gmail.com>
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
9 years ago
Kieran Kunhya
4170a44bbc
Add GBRAP12 pixel format
...
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
9 years ago
Anton Khirnov
a8068346e4
lavc: add a variant of av_get_audio_frame_duration working with AVCodecParameters
9 years ago
Anton Khirnov
998e1b8f52
lavc: add codec parameters API
...
This API is intended to allow passing around codec parameters without
using full AVCodecContext (which also contains codec options and
encoder/decoder state).
9 years ago
Anton Khirnov
7b3214d005
lavc: add a field for passing AVHWFramesContext to encoders
9 years ago
Carl Eugen Hoyos
4c44972f99
avcodec: Fix a typo.
9 years ago
Andreas Cadhalpun
5edd1f62ca
avcodec: only warn about hwaccel with frame threads
...
VLC uses hwaccel with frame threads and it works fine, but returning
an error here made it fail.
This regression was introduced in commit 31741ae
.
Signed-off-by: Andreas Cadhalpun <Andreas.Cadhalpun@googlemail.com>
Warning message text by nevcairiel
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
9 years ago
Michael Niedermayer
9ee4c89348
avcodec/utils: Add AV_PIX_FMT_GBRAP16?E to avcodec_align_dimensions2()
...
Found-by: kierank
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
9 years ago
Michael Niedermayer
edc34c937b
avcodec/utils: Check the return code of av_image_fill_linesizes()
...
Fixes CID1271741
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
9 years ago
Clément Bœsch
54ab90c05b
lavc/utils: fix instanciate/instantiate typo
9 years ago
Derek Buitenhuis
265ed6732f
libavcodec/util: Fix timebase overflow check
...
It could accidentally divide by zero if num was zero.
Signed-off-by: Derek Buitenhuis <derek.buitenhuis@gmail.com>
9 years ago
Derek Buitenhuis
21f9468402
avutil: Rename FF_CEIL_COMPAT to AV_CEIL_COMPAT
...
Libav, for some reason, merged this as a public API function. This will
aid in future merges.
A define is left for backwards compat, just in case some person
used it, since it is in a public header.
Signed-off-by: Derek Buitenhuis <derek.buitenhuis@gmail.com>
9 years ago
Michael Niedermayer
ed0c550564
avcodec/utils: run ff_frame_thread_encoder_init() only for encoders
...
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
9 years ago
Michael Niedermayer
a7305c780b
Print the whitelists if entities are not found on them
...
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
9 years ago
Arttu Ylä-Outinen
7486418683
lavc: Make sure that the effective timebase would not overflow
...
In the unlikely situation the user decides to set ticks_per_frame
and timebase to a value large enough to overflow.
Signed-off-by: Luca Barbato <lu_zero@gentoo.org>
9 years ago
Michael Niedermayer
0869ff7e9d
avcodec/utils: Check bits_per_raw_sample on video encoder open
...
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
9 years ago
Hendrik Leppkes
50401f5fb7
avcodec: properly check pkt_timebase for validity
...
Unset/invalid timebases have a zero numerator.
This makes the checks consistent with other timebase checks and fixes an
integer division by 0.
9 years ago
Matthieu Bouron
ae1c750cb4
lavc/utils: use AVPixFmtDescriptor to probe palette formats
...
Also use the input frame format instead of the AVCodecContext one according
to the documentation of AVCodecContext.get_buffer2().
9 years ago
Anton Khirnov
cea1eef25c
lavc: get the profile name through the codec descriptor in avcodec_string()
9 years ago
Anton Khirnov
2c6811397b
lavc: add profiles to AVCodecDescriptor
...
The profiles are a property of the codec, so it makes sense to export
them through AVCodecDescriptors, not just the codec implementations.
9 years ago
Anton Khirnov
cdc9ce098e
lavc: print the name of the codec, not its implementation, in avcodec_string
9 years ago
Clément Bœsch
a8bb81a05c
lavc, lavu: use avutil/thread.h instead of redundant conditional includes
9 years ago
Anton Khirnov
11c9bd633f
libopenh264enc: export CPB props side data
9 years ago
Anton Khirnov
f0b769c16d
lavc: add a packet side data type for VBV-like parameters
9 years ago
Anton Khirnov
84adab333c
lavc: add stream-global packet side data
...
This is similar to what is done for AVStream.
9 years ago
Michael Niedermayer
15d14ce47c
avcodec/utils: Fix overflow in get_bit_rates computations
...
Fixes: 129ca3e28d73af7b1e24a9d4118e7a2d/signal_sigabrt_7ffff6ae7cc9_836_762b310fc3ef6087bd7771e5d8e90b9b.asf
Found-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
9 years ago
Michael Niedermayer
abee0a1c60
avcodec/utils: Clear dimensions in ff_get_buffer() on failure
...
Fixes out of array access
Fixes: 482d8f2fd17c9f532b586458a33f267c/asan_heap-oob_4a52b6_7417_1d08d477736d66cdadd833d146bb8bae.mov
Found-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
9 years ago
Michael Niedermayer
4f03bebc79
avcodec/utils: Use 64bit for aspect ratio calculation in avcodec_string()
...
Fixes integer overflow
Fixes: 3a45b2ae02f2cf12b7bd99543cdcdae5/asan_heap-oob_1dff502_8022_899f75e1e81046ebd7b6c2394a1419f4.mov
Found-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
9 years ago
Michael Niedermayer
4e16ad2868
avcodec/utils: Better check for channels in av_get_audio_frame_duration()
...
Fixes integer overflow
Fixes: 0c2625f236ced104d402b4a03c0d65c7/asan_generic_274e1ce_5990_9314e7a67c26aecf011b178ade9f217c.avi
Found-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
9 years ago
Paul B Mahol
af3f793f60
avcodec: add ADPCM AICA decoder
...
Signed-off-by: Paul B Mahol <onemda@gmail.com>
9 years ago