Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/FFmpeg/FFmpeg.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
2017-01-26avcodec/utils: correct align value for interplayMichael Niedermayer
Fixes out of array access Fixes: 452/fuzz-1-ffmpeg_VIDEO_AV_CODEC_ID_INTERPLAY_VIDEO_fuzzer Found-by: continuous fuzzing process https://github.com/google/oss-fuzz/tree/master/targets/ffmpeg Signed-off-by: Michael Niedermayer <michael@niedermayer.cc> (cherry picked from commit 2080bc33717955a0e4268e738acf8c1eeddbf8cb) Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
2016-10-24lavc/utils: avcodec_string: dump field order when knownRodger Combs
2016-10-22avcodec/utils: Move emms_c() before memory allocation functions in ↵Michael Niedermayer
avcodec_encode_video2() Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
2016-10-21avcodec/utils: Clear MMX state before returning from avcodec_default_execute*()Michael Niedermayer
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
2016-10-16avcodec/utils: print Chroma Location string in verbose log levelJames Almer
It's container level information on some formats (Matroska, MXF, yuv4mpeg), so it should be printed at higher log levels than debug. Reviewed-by: Michael Niedermayer <michael@niedermayer.cc> Signed-off-by: James Almer <jamrial@gmail.com>
2016-10-07Merge commit '32c8359093d1ff4f45ed19518b449b3ac3769d27'Hendrik Leppkes
* commit '32c8359093d1ff4f45ed19518b449b3ac3769d27': lavc: export the timestamps when decoding in AVFrame.pts Merged-by: Hendrik Leppkes <h.leppkes@gmail.com>
2016-10-05lavc: set best effort timestamp if unset when using new decode APIwm4
Some API users (in particular ffmpeg.c) check the best effort timestamp only.
2016-10-03lavc/utils: disallow zero sized packets with data set in avcodec_send_packetMarton Balint
Reviewed-by: wm4 <nfxjfg@googlemail.com> Reviewed-by: Hendrik Leppkes <h.leppkes@gmail.com> Signed-off-by: Marton Balint <cus@passwd.hu>
2016-10-01ffmpeg: move subframe warning to libavcodecwm4
With the new decode API, doing this in ffmpeg.c is impractical. There was resistance against removing the warning, so put it into libavcodec. Not bothering with reducing the warning to verbose log level for subsequent wanrings. The warning should be rare, and only happen when developing new codecs for the old API. Includes a change suggested by Michael Niedermayer.
2016-09-29lavc/utils.c: Subtract skip_samples when frame is DISCARDed.Sasi Inguva
Signed-off-by: Sasi Inguva <isasi@google.com> Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
2016-09-28Merge commit 'e85f6f7f8d037c0af0f294000718d9ba22753baa'James Almer
* commit 'e85f6f7f8d037c0af0f294000718d9ba22753baa': lavc: allow using AVCodecContext.hw_frames_ctx for decoding Conflicts: doc/APIchanges libavcodec/version.h Merged-by: James Almer <jamrial@gmail.com>
2016-09-19avcodec/utils: If using discard frame flag, ignore skip_samples set by the ↵Sasi Inguva
decoder Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
2016-09-19lavc: Add a flag in AVPacket to discard packet after decoding. Discard ↵Sasi Inguva
frames after decoding based on the flag. Signed-off-by: Sasi Inguva <isasi@google.com> Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
2016-09-03avcodec/utils: print only the padding values that are setJames Almer
Reviewed-by: Carl Eugen Hoyos <ceffmpeg@gmail.com> Signed-off-by: James Almer <jamrial@gmail.com>
2016-09-03avcodec/utils: print initial and trailing paddings only in verbose levelsJames Almer
Reviewed-by: Carl Eugen Hoyos <ceffmpeg@gmail.com> Signed-off-by: James Almer <jamrial@gmail.com>
2016-08-18avcodec: add 64-bit signed pcm codecPaul B Mahol
2016-08-16lavc: add trailing_padding to AVCodecContext to match AVCodecParameters.Jon Toohill
Shows encoder delay/padding in the stream summary if they are set. Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
2016-08-12avcodec/utils: only warn when passed invalid lowres valueAman Gupta
This makes it easier to use the lowres option when dealing with input files in different codecs. If the codec doesn't support lowres=1 for instance, it will throw a warning and use lowres=0 instead of erroring out completely. Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
2016-06-22Merge commit 'e62ff72fc1052273deb708ba715f73e5187281d4'Clément Bœsch
* commit 'e62ff72fc1052273deb708ba715f73e5187281d4': lavc: make avcodec_open2() fail when the timebase is not set for encoding Merged-by: Clément Bœsch <u@pkh.me>
2016-06-21lavc: export the timestamps when decoding in AVFrame.ptsAnton Khirnov
Currently it's exported as AVFrame.pkt_pts, which is also the only use for that field. The reason it is done like this is that lavc used to export various codec-specific "timing" information in AVFrame.pts, which is not done anymore. Since it is confusing to the callers to have a separate field which is used only for decoder timestamps and nothing else, deprecate pkt_pts and use just AVFrame.pts everywhere.
2016-06-21lavc: allow using AVCodecContext.hw_frames_ctx for decodingAnton Khirnov
For now it will only be used by the default get_buffer2 callback for allocating hw frames.
2016-06-19libavcodec: factor out SEI generation for A53 captionsAndrey Turkin
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
2016-06-07avcodec/utils: check skip_samples signednessMichael Niedermayer
Fixes Ticket5528 Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
2016-06-04avcodec/utils: initialize delay in avcodec_parameters_to_context()Michael Niedermayer
Fixes lost codec delayy Should fix Ticket5509 Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
2016-05-21avcodec: add adpcm MTAF decoderPaul B Mahol
Signed-off-by: Paul B Mahol <onemda@gmail.com>
2016-05-20avcodec/utils: Move avctx->codec check before its useMichael Niedermayer
Fixes CID1361954 Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
2016-05-16lavc: make avcodec_open2() fail when the timebase is not set for encodingAnton Khirnov
Many encoders use it. There is also a divide by the timebase lower in this function, which would crash when it is not set.
2016-05-15avcodec: add Direct Stream Transfer (DST) decoderPeter Ross
Signed-off-by: Paul B Mahol <onemda@gmail.com>
2016-05-11Merge commit 'd12b5b2f135aade4099f4b26b0fe678656158c13'Derek Buitenhuis
* commit 'd12b5b2f135aade4099f4b26b0fe678656158c13': build: Split test programs off into separate files Some conversions done by: James Almer <jamrial@gmail.com> Merged-by: Derek Buitenhuis <derek.buitenhuis@gmail.com>
2016-05-01lavc: override decode return value only in case of errorClément Bœsch
Fixes Ticket #5350 Regression since 29412821241050c846dbceaad4b9752857659977.
2016-04-29avcodec/utils: split side-data in new decode API toowm4
The deprecated avcodec_decode_video2() and avcodec_decode_audio4() functions called av_packet_split_side_data() on the input packets. This is required for packets produced by libavformat with the AVFMT_FLAG_KEEP_SIDE_DATA flag unset (which is unfortunately the default). The new API didn't do this yet, although it didn't matter as no decoder supports the new API yet. The emulation layer for the old API calls the old API functions, which took care of the splitting. Add this code to the new API codec entrypoints too, because we shouldn't send essentially corrupted data to decoders.
2016-04-23avcodec/utils: Assert that the number of consumed bytes in ↵Michael Niedermayer
avcodec_decode_audio4() is <= the input size Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
2016-04-22avcodec/utils: fix minor memory leaks on avcodec_open2() failurewm4
2016-04-21lavc: introduce a new decoding/encoding API with decoupled input/outputwm4
Until now, the decoding API was restricted to outputting 0 or 1 frames per input packet. It also enforces a somewhat rigid dataflow in general. This new API seeks to relax these restrictions by decoupling input and output. Instead of doing a single call on each decode step, which may consume the packet and may produce output, the new API requires the user to send input first, and then ask for output. For now, there are no codecs supporting this API. The API can work with codecs using the old API, and most code added here is to make them interoperate. The reverse is not possible, although for audio it might. From Libav commit 05f66706d182eb0c36af54d72614bf4c33e957a9. Signed-off-by: Anton Khirnov <anton@khirnov.net>
2016-04-21avcodec: Add avpriv_codec_get_cap_skip_frame_fill_param()Michael Niedermayer
With this the use of the caps_internal from libavformat can be avoided Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
2016-04-15avcodec/utils: Add braces to framecount computationMichael Niedermayer
Suggestes-by: ubitux Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
2016-04-15avcodec/utils: Fix duration of ATRAC3 packetsMichael Niedermayer
Fixes ticket1680 Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
2016-04-15avcodec: Add bits_per_raw_sample to AVCodecParametersMichael Niedermayer
The bits_per_raw_sample represents the number of bits of precision per sample. The field is added at the logical place, not at the end as the code was just recently added This fixes the regression about losing the audio sample precision information The change in the fate test checksum un-does the change from the merge Previous version reviewed by: wm4 <nfxjfg@googlemail.com> Previous version reviewed by: Dominik 'Rathann' Mierzejewski <dominik@greysector.net> Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
2016-04-05avcodec: add adpcm dat4 decoderPaul B Mahol
Signed-off-by: Paul B Mahol <onemda@gmail.com>
2016-04-03avcodec: properly initialize AVCodecParameters profile/levelHendrik Leppkes
Signed-off-by: Derek Buitenhuis <derek.buitenhuis@gmail.com>
2016-04-02lavc/utils: use pkt_timebase for legacy subtitles timing codeClément Bœsch
This is consistent with other AVSubtitle timing adjustments.
2016-04-01lavc: factor apply_param_change() AV_EF_EXPLODE handlingwm4
Remove the duplicated code for handling failure of apply_param_change().
2016-03-31lavc/utils: transfer width/height for subs in codecparClément Bœsch
Signed-off-by: Derek Buitenhuis <derek.buitenhuis@gmail.com>
2016-03-31codecpar: Add video delay fieldDerek Buitenhuis
Signed-off-by: Derek Buitenhuis <derek.buitenhuis@gmail.com>
2016-03-31Add frame_size to AVCodecParametersHendrik Leppkes
Signed-off-by: Derek Buitenhuis <derek.buitenhuis@gmail.com>
2016-03-31lavc: Add seek_preroll to AVCodecParametersJames Almer
Signed-off-by: James Almer <jamrial@gmail.com>
2016-03-31Merge commit 'a8068346e48e123f8d3bdf4d64464d81e53e5fc7'Derek Buitenhuis
* commit 'a8068346e48e123f8d3bdf4d64464d81e53e5fc7': lavc: add a variant of av_get_audio_frame_duration working with AVCodecParameters Fixes from jamrial incorporated. Merged-by: Derek Buitenhuis <derek.buitenhuis@gmail.com>
2016-03-31Merge commit '998e1b8f521b73e1ed3a13caaabcf79eb401cf0d'Derek Buitenhuis
* commit '998e1b8f521b73e1ed3a13caaabcf79eb401cf0d': lavc: add codec parameters API Fixes added in: - bit_rate has been made int64_t to match. - profile and level are properly initialize. Merged-by: Derek Buitenhuis <derek.buitenhuis@gmail.com>
2016-03-29avcodec/utils: fix packet duration of frames with discarded paddingsMarton Balint
Reviewed-by: Hendrik Leppkes <h.leppkes@gmail.com> Signed-off-by: Marton Balint <cus@passwd.hu>
2016-03-23lavc: introduce a new decoding/encoding API with decoupled input/outputwm4
Until now, the decoding API was restricted to outputting 0 or 1 frames per input packet. It also enforces a somewhat rigid dataflow in general. This new API seeks to relax these restrictions by decoupling input and output. Instead of doing a single call on each decode step, which may consume the packet and may produce output, the new API requires the user to send input first, and then ask for output. For now, there are no codecs supporting this API. The API can work with codecs using the old API, and most code added here is to make them interoperate. The reverse is not possible, although for audio it might. Signed-off-by: Anton Khirnov <anton@khirnov.net>