summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* avresample: Mark avresample_buffer() as pointer to constKip Warner2015-12-144-9/+13
| | | | | | | | That buffer is read only and marking it accordingly let the user passing a constant buffer to it without having a const-correctness warning. Signed-off-by: Luca Barbato <lu_zero@gentoo.org>
* r3d: fix an invalid read introduced in 6bf4c1dAnton Khirnov2015-12-141-1/+1
|
* rtmpproto: Include the full path as app when "slist=" is foundMartin Storsjö2015-12-131-2/+2
| | | | | | | This matches what librtmp does. This fixes automatic url parsing of crunchyroll urls. Signed-off-by: Martin Storsjö <martin@martin.st>
* vocdec: do not create the stream in read_header()Anton Khirnov2015-12-121-5/+8
| | | | | The stream parameters are not known until we read a packet, so postpone creating it until then.
* vocdec: put the code not shared with other demuxers under appropriate ifdefAnton Khirnov2015-12-121-38/+39
|
* flvdec: do not create any streams in read_header()Anton Khirnov2015-12-121-9/+2
| | | | | | | | | | | The current muxer behaviour is to create streams in read_header() based on the audio/video presence flags, but fill in the stream parameters later when we actually get some packets for them. This is rather shady, since other demuxers set the stream parameters immediately when the stream is created and do not touch the stream codec context after that. Change the flv demuxer to behave in the same way as other similar demuxers -- create the streams only when we get a packet for them.
* lavc: make avpriv_mpa_decode_header private on next bumpAnton Khirnov2015-12-123-2/+15
| | | | It's not used by anything outside of lavc anymore.
* mp3dec: replace avpriv_mpa_decode_header with avpriv_mpegaudio_decode_headerAnton Khirnov2015-12-121-11/+6
| | | | | The latter does not require a full AVCodecContext and still provides all the functionality needed here.
* mpegaudiodecheader: check the header in avpriv_mpegaudio_decode_headerAnton Khirnov2015-12-125-24/+29
| | | | | | Almost all the places from which this function is called already check the header manually and in the two that don't (the mp3 muxer) the check should not cause any problems.
* lavc: get the profile name through the codec descriptor in avcodec_string()Anton Khirnov2015-12-121-11/+1
|
* lavc: add profiles to AVCodecDescriptorAnton Khirnov2015-12-1215-90/+219
| | | | | The profiles are a property of the codec, so it makes sense to export them through AVCodecDescriptors, not just the codec implementations.
* lavc: print the name of the codec, not its implementation, in avcodec_stringAnton Khirnov2015-12-121-2/+5
|
* r3d: do not create the audio stream until we know the sample rateAnton Khirnov2015-12-121-12/+25
|
* ff_parse_specific_params: do not use AVCodecContext.frame_sizeAnton Khirnov2015-12-121-5/+0
| | | | | | It will not be set unless the muxing codec context is also the encoding context, which is discouraged. When the frame size is not known from av_get_audio_frame_duration(), the fallback should still be good enough.
* rmenc: do not use AVCodecContext.frame_sizeAnton Khirnov2015-12-121-2/+5
| | | | | | It will not be set if the stream codec context is not the encoding context. Use av_get_audio_frame_duration() instead, it should work for all audio codecs supported by the muxer.
* mpegvideo_enc: actually add the side data with vbv_delay to the packetAnton Khirnov2015-12-121-0/+7
| | | | Fixes 2507b5dd674834be7261772996f47ae3b95cca69
* hevcdsp: use a macro for .rodata sectionDave Yeo2015-12-111-1/+1
| | | | | | | fixes assembling on OS/2 Signed-off-by: Dave Yeo <dave.r.yeo@gmail.com> Signed-off-by: Luca Barbato <lu_zero@gentoo.org>
* openh264: Directly include the deprecation guards headerLuca Barbato2015-12-081-0/+1
| | | | | Make easier to avoid compile failure when reworking the internal headers.
* log: Use a do {} while (0) for tlogLuca Barbato2015-12-081-1/+1
| | | | Avoid the warning `-Wempty-body`.
* matroskadec: Fix sample_aspect_ratio for stereo matroska contentAaron Colwell2015-12-071-2/+34
| | | | | | | | | matroskaenc applies divisors to the display width/height when generating stereo content. This patch adds the corresponding multipliers to matroskadec so that the original sample aspect ratio can be recovered. Signed-off-by: wm4 <nfxjfg@googlemail.com> Signed-off-by: Vittorio Giovara <vittorio.giovara@gmail.com>
* sgienc: Make sure to initialize skipped header portionsVittorio Giovara2015-12-071-3/+5
| | | | | | | Fix fate tests with asan. Introduced during bytestream2 porting (in revision 62cc8f4d79dad119e8efeaae080a58a8dcb1e89d). Signed-off-by: Vittorio Giovara <vittorio.giovara@gmail.com>
* lavc: Drop exporting 2-pass encoding statsVittorio Giovara2015-12-075-12/+37
| | | | | | | | | | | | | | These variables are coming from mpegvideoenc where are supposedly used as bit counters on various frame properties. However their use is unclear as they lack documentation, are available only from a very small subset of encoders, and they are hardly used in the wild. Also frame_bits in aacenc is employed in a similar way. Remove this functionality from AVCodecContex, these variable are mostly frame properties, and too few encoders support setting them with anything useful. Signed-off-by: Vittorio Giovara <vittorio.giovara@gmail.com>
* lavc: Deprecate coder_type and its symbolsVittorio Giovara2015-12-0710-15/+181
| | | | | | | | | | Most option values are simply unused or ignored and in practice the majory of codecs only need to check whether to enable rle or not. Add appropriate codec private options which better expose the allowed features. Signed-off-by: Vittorio Giovara <vittorio.giovara@gmail.com>
* h264: do not call frame_start() for missing framesAnton Khirnov2015-12-071-18/+32
| | | | | We do not need to do a full setup like for a real frame, just allocate a buffer and set cur_pic(_ptr).
* aacdec: fix aac_static_table_init() prototypeAnton Khirnov2015-12-071-1/+1
|
* avpacket: use ERANGE instead of EOVERFLOWAnton Khirnov2015-12-071-1/+1
| | | | EOVERFLOW seems to be unavailable on certain platforms.
* rtsp: free opts dictionary on failure of getnameinfoGanesh Ajjanagadde2015-12-071-0/+1
| | | | Signed-off-by: Martin Storsjö <martin@martin.st>
* movenc-test: add a missing va_end callGanesh Ajjanagadde2015-12-071-0/+1
| | | | Signed-off-by: Martin Storsjö <martin@martin.st>
* mxfenc: always assume long gopAnton Khirnov2015-12-061-1/+1
| | | | | | Checking the codec context parameters to find out this information is far too unreliable to be useful, so it is safer to assume B-frames are always present.
* lavc: export Dirac parsing API used by the ogg demuxer as publicAnton Khirnov2015-12-066-96/+200
| | | | Also, stop using AVCodecContext for storing the stream parameters.
* mpegenc: use the CPB props side dataAnton Khirnov2015-12-061-5/+10
| | | | | Do not access the encoder options, since it makes no sense when the AVStream codec context is not the encoding context.
* movenc: use the CPB props side dataAnton Khirnov2015-12-061-5/+8
| | | | | Do not access the encoder options, since it makes no sense when the AVStream codec context is not the encoding context.
* qsvenc: export CPB props side dataAnton Khirnov2015-12-061-0/+10
|
* nvenc: export CPB props side dataAnton Khirnov2015-12-061-0/+9
|
* mpegvideo_enc: export vbv_delay in side dataAnton Khirnov2015-12-063-0/+21
| | | | Deprecate AVCodecContext.vbv_delay
* mpegvideo_enc: export CPB props side dataAnton Khirnov2015-12-061-0/+9
|
* libx264: export CPB props side dataAnton Khirnov2015-12-061-0/+8
|
* libvpxenc: export CPB props side dataAnton Khirnov2015-12-061-0/+13
|
* libopenh264enc: export CPB props side dataAnton Khirnov2015-12-063-0/+40
|
* lavc: add a packet side data type for VBV-like parametersAnton Khirnov2015-12-063-0/+69
|
* avconv: pass the global codec side data to the muxerAnton Khirnov2015-12-061-0/+22
|
* lavc: add stream-global packet side dataAnton Khirnov2015-12-063-2/+20
| | | | This is similar to what is done for AVStream.
* avpacket: add a function for wrapping existing data as side dataAnton Khirnov2015-12-064-11/+48
|
* h264: derive the delay from the level when it's not presentAnton Khirnov2015-12-062-11/+37
| | | | | | | | | | | Fall back to maximum DPB size if the level is unknown. This should be more spec-compliant and does not depend on the caller setting has_b_frames before opening the decoder. The old behaviour, when the delay is supplied by the caller setting has_b_frames, can still be obtained by setting strict_std_compliance below normal.
* h264: set frame_num in start_frame(), not decode_slice_header()Anton Khirnov2015-12-061-3/+1
| | | | | That is a more appropriate place for it, since it is not allowed to change between slices.
* h264: eliminate default_ref_listAnton Khirnov2015-12-063-49/+22
| | | | | | | | | | | | | According to the spec, the reference list for a slice should be constructed by first generating an initial (what we now call "default") reference list and then optionally applying modifications to it. Our code has an optimization where the initial reference list is constructed for the first inter slice and then rebuilt for other slices if needed. This, however, adds complexity to the code, requires an extra 2.5kB array in the codec context and there is no reason to think that it has any positive effect on performance. Therefore, simplify the code by generating the reference list from scratch for each slice.
* hevcdsp: add x86 SIMD for MCAnton Khirnov2015-12-058-15/+1125
|
* checkasm: add HEVC MC testsAnton Khirnov2015-12-054-0/+325
|
* hevc: change the stride of the MC buffer to be in bytes instead of elementsAnton Khirnov2015-12-052-1/+13
| | | | | | Currently, the frame stride is passed in bytes, while the MC buffer size is in int16_t elements, This can be confusing, so pass both strides in bytes.
* hevcdsp: split the pred functions by widthAnton Khirnov2015-12-054-94/+174
| | | | This should allow for more efficient SIMD.
OpenPOWER on IntegriCloud