Matthieu Bouron
140da8e810
lavc: add hevc mediacodec decoder
9 years ago
Paul B Mahol
b82c1a377a
avcodec/adpcm: clip step for ADPCM MTAF decoder
...
Signed-off-by: Paul B Mahol <onemda@gmail.com>
9 years ago
Moritz Barsnick
022260271b
libavcodec/qsvdec_h2645.c: drop executable permission
...
Accidentally set in b93e223315
.
Signed-off-by: Moritz Barsnick <barsnick@gmx.net>
9 years ago
Nikolas Bowe
96cd6f672e
avcodec/(e)ac3: Fix target_level for EAC3.
...
Currently when using target_level with EAC3 it produces silence. This small patch fixes target_level for decoding EAC3.
Example:
ffmpeg -y -i /tmp/test.wav -acodec eac3 -dialnorm -14 -ac 6 -b:a 384000 /tmp/test.m2ts
ffmpeg -y -target_level -24 -i /tmp/test.m2ts -acodec pcm_s16le -f matroska /tmp/out.mkv
ffplay /tmp/out.mkv
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
9 years ago
Paul B Mahol
92dbd65700
avcodec/h264_parser: fix for possible overflow
...
Signed-off-by: Paul B Mahol <onemda@gmail.com>
9 years ago
Paul B Mahol
01fa4fb69e
avcodec/h264_parser: set missing pts for top/bottom field frames
...
Adopted from 4eb49fdde8
revert.
Signed-off-by: Paul B Mahol <onemda@gmail.com>
9 years ago
Carl Eugen Hoyos
93e041026f
lavc: Enable a53cc by default for x264 and qsv_h264.
9 years ago
Michael Niedermayer
a5af1240fc
avcodec/g726: Add missing ADDB output mask
...
Fixes: 1.poc
Fixes out of array read
Found-by: 连一汉 <lianyihan@360.cn>
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
9 years ago
Jonathan Campbell
c19da0cfd8
avcodec/mpeg12dec: add comments documenting the format of the DVD CC user-data packet.
...
this is to aid development and maintenance of that code.
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
9 years ago
Michael Niedermayer
5e1bf9d8c0
avcodec/avpacket: clear side_data_elems
...
Fixes null pointer dereference
Found-by: 连一汉 <lianyihan@360.cn>
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
9 years ago
Rodger Combs
dca03ec5f4
ass_split: reindent
9 years ago
Rodger Combs
3b32e1313c
ass_split: fix handling of streams with no [Events] or Format: line
9 years ago
Michael Niedermayer
5bbffe3412
avcodec/h264_refs: Change default case to av_assert0() to suppress warning
...
Should fix "libavcodec/h264_refs.c:372:13: warning: variable 'i' is used uninitialized whenever switch default is taken"
Found-by: durandal_17
Suggested-by: jkqxz
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
9 years ago
Matthieu Bouron
025f75c3ad
lavc/ffjni: do not error out if the last non-mandatory field/method cannot be found
9 years ago
Jens Ziller
bc7066fd5d
libavcodec/mmaldec.c: set AVFrame interlaced_frame and top_field_first, AVCodecContext framerate
...
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
9 years ago
Philip Langdale
4029f05c8b
avcodec/cuvid: Always check for internal errors during parsing
...
The cuvid parser is basically undocumented, and although you'd
think that a failed callback would result in the overall parse
call returning an error, that is not true.
So, we end up silently trying to keep going as if nothing is wrong,
which doesn't achieve anything.
Solution: check the internal error flag every time.
Signed-off-by: Philip Langdale <philipl@overt.org>
Signed-off-by: Timo Rothenpieler <timo@rothenpieler.org>
9 years ago
Rodger Combs
7c5fed15a8
lavc/Makefile: add missing ADPCM_THP_LE objs
9 years ago
Rodger Combs
1177e42121
lavc/Makefile: g729dec: fix missing file
9 years ago
Timo Rothenpieler
b91e0e5987
avcodec/cuvid: check for and warn about invalid pkt_timebase
9 years ago
Timo Rothenpieler
132adf73af
avcodec/cuvid: use pkt_timebase instead of time_base
9 years ago
Thilo Borgmann
4d48add89b
lavc/alsdec: use get_bitsz() to simplify reading of the mantissa
...
Signed-off-by: James Almer <jamrial@gmail.com>
9 years ago
Matthieu Bouron
bf011695fd
lavc/hevc: store VPS/SPS/PPS data
9 years ago
Michael Niedermayer
752e6dfa3e
avcodec/ccaption_dec: Use simple array instead of AVBuffer
...
This is simpler and fixes an out of array read, fixing it with AVBuffers
would be more complex
Fixes: e00d9e6e50e5495cc93fea41147b97bb/asan_heap-oob_12dcdbb_8798_b32a97ea722dd37bb5066812cc674552.mov
Found-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
9 years ago
Michael Niedermayer
037422178d
avcodec/alsdec: Fix reading 0 mantisse bits
...
Fixes assertion failure
Fixes: 848c24abc1721c9e3d1ba7bfee8d9fcc/asan_heap-oob_1d99eca_3709_567bba70d67e7d62714dcf56f26fb1da.mp4
Found-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
9 years ago
Michael Niedermayer
2d3099ad8e
avcodec/svq3: Reintroduce slice_type
...
Fixes out of array read
Fixes: 1642cd3962249d6aaf0eec2836023fb6/signal_sigsegv_2557a72_2995_04efaf2ff57a052f609a3b4a2ea4e622.mov
Found-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
9 years ago
Michael Niedermayer
c0fc83ed41
avcodec/mlz: Check offset before writing
...
Fixes: 0cee183a09bff5aa5108429717c35a4d/asan_heap-oob_1d99eca_3702_9ef60e80de79082a778d3d9ce8ef3b64.mp4
Affects no release
Found-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
9 years ago
Michael Niedermayer
2f7a12fab5
avcodec/mlz: clear dict on allocation to ensure there are no uninitialized values
...
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
9 years ago
Michael Niedermayer
f2192e0f03
avcodec/alsdec: Fix raw_mantissa memleak
...
Fixes: 0cee183a09bff5aa5108429717c35a4d/asan_heap-oob_1d99eca_3702_9ef60e80de79082a778d3d9ce8ef3b64.mp4
Found-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
9 years ago
Michael Niedermayer
837e72b016
avcodec/alsdec: Fix mlz memleak
...
Fixes: 0cee183a09bff5aa5108429717c35a4d/asan_heap-oob_1d99eca_3702_172c75af9868d4c2556a79cc2413f4cc.mp4
Found-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
9 years ago
Timo Rothenpieler
8ebe1dddfb
avcodec/nvenc: use frame size instead of surface size
9 years ago
Matthieu Bouron
4b290078e4
lavc/mediacodecdec_h264: use h264_parse.h instead of h264dec.h
...
ff_h264_decode_extradata is referenced by h264_parse.h and not
h264dec.h.
9 years ago
Matthieu Bouron
256e99f6f0
lavc/mediacodecdec_h264: move bsf variable declaration at the top of the function
9 years ago
Sven C. Dack
4aeb7a88ec
avcodec/nvenc: support RGB input
...
nvenc still encodes as yuv, but does the conversion internally which
brings some performance gains.
Signed-off-by: Timo Rothenpieler <timo@rothenpieler.org>
9 years ago
Timo Rothenpieler
fa3ecad071
avcodec/nvenc: correctly set inputPitch
9 years ago
Timo Rothenpieler
96cba1c552
avcodec/nvenc: use av_image_copy for copying frame data
9 years ago
Carl Eugen Hoyos
7a8e5ff1fd
lavc/avcodec: Improve av_parser_parse() documentation, mention padding.
...
Fixes ticket #5809 .
9 years ago
Paul B Mahol
7a258ef97e
avcodec/gif: don't honor transparency if palette changed
...
It generally does not work.
Signed-off-by: Paul B Mahol <onemda@gmail.com>
9 years ago
Matthieu Bouron
f574012d5f
lavc/mediacodecdec_h264: fix SODB escaping
...
Fixes escaping of consecutive 0x00, 0x00, 0x0{0-3} sequences.
9 years ago
Michael Niedermayer
a97e35e7c2
avcodec: Fix successfull typo
...
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
9 years ago
Philip Langdale
86910b15c9
cuvid: Implement flush to support seeking in media players
...
Right now, if we attempt to use cuvid in a media player and then
try to seek, the decoder will happily pass out whatever frames were
already in flight before the seek.
There is both the output queue in our code and some number of frames
within the cuvid decoder that need to be accounted for.
cuvid doesn't support flush, so our only choice is to do a brute-force
re-creation of the decoder, which also implies re-creating the parser,
but this is fine.
The only subtlty is that there is sanity check code in decoder
initialisation that wants to make sure the HWContextFrame hasn't already
been initialised. This is a fair check to do at the beginning but not
after a flush, so it has to be made conditional.
Signed-off-by: Philip Langdale <philipl@overt.org>
Signed-off-by: Timo Rothenpieler <timo@rothenpieler.org>
9 years ago
Philip Langdale
1891dfe013
cuvid: Add hwaccels and decoders for remaining supported formats
...
cuvid/nvdecode also supports mpeg1, mpeg2, h.263/mpeg4-asp and mjpeg.
It should, in theory, also support wmv3 via the vc1 support, given
that vdpau supports this. However, it failed to play wmv3 samples
which vdpau played correctly, so I'm not sure what to make of it.
Signed-off-by: Philip Langdale <philipl@overt.org>
Signed-off-by: Timo Rothenpieler <timo@rothenpieler.org>
9 years ago
Carl Eugen Hoyos
f077ad69c6
lavc/avpacket: Fix undefined behaviour, do not pass a null pointer to memcpy().
...
Fixes ticket #5128 .
9 years ago
Paul B Mahol
e7bc9623e5
avcodec/pnmdec: fix undefined behaviour
...
Signed-off-by: Paul B Mahol <onemda@gmail.com>
9 years ago
Paul B Mahol
3c55baf08f
avccodec/utvideoenc: support encoding ULY4 and ULH4
...
Signed-off-by: Paul B Mahol <onemda@gmail.com>
9 years ago
Paul B Mahol
c62cb9bf5a
avcodec/utvideodec: add support for ULY4 and ULH4
...
Signed-off-by: Paul B Mahol <onemda@gmail.com>
9 years ago
James Almer
d2e74315e5
avcodec/utils: print only the padding values that are set
...
Reviewed-by: Carl Eugen Hoyos <ceffmpeg@gmail.com>
Signed-off-by: James Almer <jamrial@gmail.com>
9 years ago
James Almer
4fed4aca0c
avcodec/utils: print initial and trailing paddings only in verbose levels
...
Reviewed-by: Carl Eugen Hoyos <ceffmpeg@gmail.com>
Signed-off-by: James Almer <jamrial@gmail.com>
9 years ago
Carl Eugen Hoyos
a6a453ccd1
Cosmetics: Reindent after e82b181f
.
9 years ago
Carl Eugen Hoyos
e82b181f80
lavc/mjpegdec: Only read JFIF thumbnail size if the segment is long enough.
...
Fixes ticket #5805 .
9 years ago
Carl Eugen Hoyos
cef5bc0e6e
lavc/mjpegdec: Do not skip reading quantization tables.
...
They may contain 0xFFs, confusing the start code finding algorithm.
Fixes ticket #5819 .
9 years ago