summaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAge
...
* h264: add a parameter to the CABAC macro.Anton Khirnov2013-03-21
| | | | This way it does not look like a constant.
* h264: add a parameter to the FIELD_OR_MBAFF_PICTURE macro.Anton Khirnov2013-03-21
| | | | This way it does not look like a constant.
* h264: add a parameter to the FIELD_PICTURE macro.Anton Khirnov2013-03-21
| | | | This way it does not look like a constant.
* h264: add a parameter to the FRAME_MBAFF macro.Anton Khirnov2013-03-21
| | | | This way it does not look like a constant.
* h264: add a parameter to the MB_FIELD macro.Anton Khirnov2013-03-21
| | | | This way it does not look like a constant.
* h264: add a parameter to the MB_MBAFF macro.Anton Khirnov2013-03-21
| | | | This way it does not look like a constant.
* h264: merge common_init() into ff_h264_decode_init.Anton Khirnov2013-03-21
| | | | There is no point in keeping those separate.
* h264: make ff_h264_frame_start static.Anton Khirnov2013-03-21
| | | | It is not called from outside h264.c
* fate: add tests for h264 decoder reinitJanne Grunau2013-03-20
|
* h264: fix bit depth changes with frame threadingJanne Grunau2013-03-20
| | | | | | | | | AVCodecContext.bits_per_raw_sample is updated from the previous thread in the generic update function before the codec specific update_thread function is called. The check for reinitialization of dsp functions uses bits_per_raw_sample. When called from update_thread_context it will be already at the current value and the dsp functions aren't updated if only the bit depth changes.
* rtmp: Pass the parameters to do_adobe_auth in the right orderMartin Storsjö2013-03-20
| | | | | | | | | | | do_adobe_auth takes the parameters in the order "opaque, challenge". Due to the way they are treated, this didn't matter in the tested setups though - if both are set, we only use one. In the tested setups (Wowza and Akamai) either one of them were null or they were both set to the same value, which is why this worked before. Signed-off-by: Martin Storsjö <martin@martin.st>
* mpegvideo: allocate hwaccel privdata after the frame bufferHendrik Leppkes2013-03-19
| | | | | | | | | | This ensures the hwaccel privdata does not leak when a frame buffer could not be allocated (and toggle the assert when the frame is re-used). Having no frame buffer available is quite common when using the DXVA2 hwaccel in situations where the DXVA2 renderer is being re-allocated, for example when moving between displays. Signed-off-by: Anton Khirnov <anton@khirnov.net>
* h264: allocate hwaccel privdata after the frame bufferHendrik Leppkes2013-03-19
| | | | | | | | | | This ensures the hwaccel privdata does not leak when a frame buffer could not be allocated (and toggle the assert when the frame is re-used). Having no frame buffer available is quite common when using the DXVA2 hwaccel in situations where the DXVA2 renderer is being re-allocated, for example when moving between displays. Signed-off-by: Anton Khirnov <anton@khirnov.net>
* pthread: unref already decoded frames when flushing the decoderHendrik Leppkes2013-03-19
| | | | Signed-off-by: Anton Khirnov <anton@khirnov.net>
* mpegvideo: fix allocation of the hwaccel_picture_private dataHendrik Leppkes2013-03-19
| | | | Signed-off-by: Anton Khirnov <anton@khirnov.net>
* lavc: update the doxy for avcodec_decode_{video,audio} wtih refcounting.Anton Khirnov2013-03-19
|
* buffersrc: fix a typo.Anton Khirnov2013-03-19
| | | | Vertical shift is log2_chroma_h, not log2_chroma_w.
* lavc, lavfi: fix counting number of planes in AVBufferRef wrappersAnton Khirnov2013-03-19
| | | | | | Number of planes is not always equal to the number of components even for formats marked with PIX_FMT_PLANAR -- e.g. NV12 has three components in two planes.
* pixdesc: add a function for counting planes in a pixel format.Anton Khirnov2013-03-19
|
* avplay: remove the -debug option.Anton Khirnov2013-03-19
| | | | | It just shadows the corresponding AVOption and prevents using named constants.
* Revert "asfenc: return error on negative timestamp"Anton Khirnov2013-03-19
| | | | | This reverts commit d1bec33b46091546c5b2e6815210e73f87abf413, it breaks FATE.
* print_options: do not generate docs for options without enc or dec flagsAnton Khirnov2013-03-18
| | | | | Those are not usable from the avtools, so mentioning them in the manpages just confuses the reader.
* mpeg12: do not fail on zero dimensions in the sequence header.Anton Khirnov2013-03-18
| | | | | | | | | | | | The total frame size is a combination of the 12 bits in the sequence header and 2 more bits in the the sequence extension. While the specification explicitly forbids the dimensions from the sequence header from being 0 (thus ruling out multiples of 4096), such videos apparrently exist in the wild so we should attempt to decode them. Based on a patch by Michael Niedermayer <michaelni@gmx.at> Fixes Bug 416.
* iff: validate CMAP palette sizeKostya Shishkov2013-03-18
| | | | | | | | | Fixes CVE-2013-2495 Found-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind Signed-off-by: Luca Barbato <lu_zero@gentoo.org> CC: libav-stable@libav.org
* asfenc: return error on negative timestampLuca Barbato2013-03-18
| | | | | | | According to the specification the timestamp is represented by a 32bit unsigned. CC: libav-stable@libav.org
* lavc,lavfi: fix calculating the plane size in the AVBufferRef wrappersAnton Khirnov2013-03-17
| | | | | It is supposed to be height * linesize, not width * linesize. Thanks to Hendrik Leppkes for pointing out the bug.
* document the release processReinhard Tartler2013-03-16
|
* af_join: do not leak input frames.Anton Khirnov2013-03-16
|
* asrc_anullsrc: return EOF, not -1Anton Khirnov2013-03-16
|
* asrc_anullsrc: do not set samplerate and channel layout explicitlyAnton Khirnov2013-03-16
| | | | They are auto-negotiated.
* vf_showinfo: remove its useless init functionAnton Khirnov2013-03-16
| | | | | Filter private data is memset to 0 so there is no point in explicitly initing anything to 0.
* AVOptions: fix using named constants with child contexts.Anton Khirnov2013-03-16
| | | | | The named constant needs to be searched for in the same object on which the option is set, i.e. target_obj.
* AVOption: remove an unused function parameter.Anton Khirnov2013-03-16
|
* filters.texi: restore mistakenly removed section name for noformatAnton Khirnov2013-03-16
|
* avfiltergraph: use sizeof(var) instead of sizeof(type)Anton Khirnov2013-03-16
|
* avfiltergraph: replace AVFilterGraph.filter_count with nb_filtersAnton Khirnov2013-03-16
| | | | This is more consistent with the naming in the rest of Libav.
* lavfi: use designated initializers in avfilter_classAnton Khirnov2013-03-16
|
* lavf: sanity check size in av_get/append_packet().Anton Khirnov2013-03-15
| | | | | | To avoid allocating ridiculous amounts of memory for corrupted files, read the input in chunks limited to filesize or an arbitrary large amount when that is not known (chosen to be 50M).
* lzo: fix overflow checking in copy_backptr()Xi Wang2013-03-15
| | | | | | | | | | | | | The check `src > dst' in the form `&c->out[-back] > c->out' invokes pointer overflow, which is undefined behavior in C. Remove the check. Also replace `&c->out[-back] < c->out_start' with a safe form `c->out - c->out_start < back' to avoid overflow. CC: libav-stable@libav.org Signed-off-by: Xi Wang <xi.wang@gmail.com> Signed-off-by: Luca Barbato <lu_zero@gentoo.org>
* flacdec: simplify bounds checking in flac_probe()Xi Wang2013-03-15
| | | | | | | | | | | Simplify `p->buf > p->buf + p->buf_size - 4' as `p->buf_size < 4'. Avoid a possible out-of-bounds pointer, which is undefined behavior in C. CC: libav-stable@libav.org Signed-off-by: Xi Wang <xi.wang@gmail.com> Signed-off-by: Luca Barbato <lu_zero@gentoo.org>
* atrac3: avoid oversized shifting in decode_bytes()Xi Wang2013-03-15
| | | | | | | | | | | | | | When `off' is 0, `0x537F6103 << 32' in the following expression invokes undefined behavior, the result of which is not necessarily 0. (0x537F6103 >> (off * 8)) | (0x537F6103 << (32 - (off * 8))) Avoid oversized shifting. CC: libav-stable@libav.org Signed-off-by: Xi Wang <xi.wang@gmail.com> Signed-off-by: Luca Barbato <lu_zero@gentoo.org>
* add support for Monkey's Audio versions from 3.93Kostya Shishkov2013-03-15
|
* ape: provide two additional bytes in buffer for old MAC versionsKostya Shishkov2013-03-15
| | | | Range coder in 3.90-3.95 overread two bytes in the final normalize.
* ape: make version-dependent decoding functions called via pointersKostya Shishkov2013-03-15
| | | | | | | This will help in supporting old versions, e.g. version 3.93 uses the same range coder but different predictor and version 3.82 uses different range coder and predictor. Also this should not make decoding newer versions slower by introducing additional checks on versions.
* mpegts: add support for stream_type 0x42, which is CAVSCan Wu2013-03-15
| | | | | | This allows demuxing and muxing of CAVS TS streams. Signed-off-by: Anton Khirnov <anton@khirnov.net>
* avconv: mark attachment streams as immediately finishedAnton Khirnov2013-03-15
| | | | | There are never any packets for those streams. Fixes an infinite loop with -attach.
* vaapi: fix argument for ff_vaapi_common_end_frame callJanne Grunau2013-03-14
|
* avcodec: av_log_missing_feature(1) ---> avpriv_request_sample()Diego Biurrun2013-03-13
|
* avcodec: av_log_ask_for_sample() ---> avpriv_request_sample()Diego Biurrun2013-03-13
|
* rsodec: Use avpriv_report_missing_feature() where appropriateDiego Biurrun2013-03-13
|