summaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAge
...
* mlpdec: support major sync headers with optional extension blocksHendrik Leppkes2015-03-11
| | | | Signed-off-by: Anton Khirnov <anton@khirnov.net>
* movenc: Support setting fragment_index before the moov atom is writtenMartin Storsjö2015-03-10
| | | | | | | | | | This way, the caller doesn't need to coordinate setting the option after the moov atom has been written. The downside is that it is no longer possible to use the option for checking whether the moov atom already has been written, but a caller is able to keep track of that by other means anyway. Signed-off-by: Martin Storsjö <martin@martin.st>
* movenc: Don't rely on the fragment index for vc1 info gatheringMartin Storsjö2015-03-10
| | | | | | | | The previous use of the mov->fragments field, for determining whether written packets were part of the first fragment or not, didn't work as intended when using the empty_moov flag. Signed-off-by: Martin Storsjö <martin@martin.st>
* rtpenc_mpegts: Set chain->rtp_ctx only after avformat_write_header succeededMartin Storsjö2015-03-10
| | | | | | | | | | | | By making sure we at each time only have one pointer set, either a local variable or one in the context, we avoid potential double frees in the cleanup routines. If chain->rtp_ctx is set, it is closed by calling avformat_write_trailer, but that shouldn't be called unless avformat_write_header succeeded. This issue was pointed out by Andreas Cadhalpun. Signed-off-by: Martin Storsjö <martin@martin.st>
* rtpenc_mpegts: Free the right ->pb in the error path in the init functionMartin Storsjö2015-03-10
| | | | | | This fixes a typo from 8e32b1f096. Signed-off-by: Martin Storsjö <martin@martin.st>
* FATE: add support for testing hwaccelsAnton Khirnov2015-03-10
|
* avconv: do not abort immediately if initializing hwaccel failsAnton Khirnov2015-03-10
| | | | | | exit_program() will try to free the decoders, which is not a good idea from within get_format(). Return an error instead.
* libvpx: Fix mixed use of av_malloc() and av_reallocp()Vittorio Giovara2015-03-09
| | | | | | | | This buffer is resized when vpx_codec_get_cx_data() returns a VPX_CODEC_STATS_PKT packet. CC: libav-stable@libav.org Signed-off-by: Vittorio Giovara <vittorio.giovara@gmail.com>
* siff: Use the correct type for packet size variablesVittorio Giovara2015-03-09
| | | | | | | | The avio functions used here return an unsigned value. Also reduce a variable scope. CC: libav-stable@libav.org Bug-Id: CID 1258461
* matroskaenc: Also validate chapter end timeVittorio Giovara2015-03-09
| | | | | | | This prevents it to be written as unsigned. Also add an error message. CC: libav-stable@libav.org Bug-Id: CID 1265717
* rtpdec_hevc: Drop extra sanity check for size of input packetVittorio Giovara2015-03-09
| | | | | | | In this case len is always at least 3, since it is checked against RTP_HEVC_PAYLOAD_HEADER_SIZE + 1 before entering the switch block. Bug-Id: CID 1238784
* movenc: Avoid writing separate flags for the first sample if not necessaryMartin Storsjö2015-03-09
| | | | Signed-off-by: Martin Storsjö <martin@martin.st>
* movenc: Set tfhd default sample flags based on actual samples, if possibleMartin Storsjö2015-03-09
| | | | | | | | | | This avoids assuming that e.g. audio samples are marked as sync samples. This allows omitting the sample flags from trun, if the default flags happen to be right for all the samples. Signed-off-by: Martin Storsjö <martin@martin.st>
* utvideodec: Handle slice_height being zeroMichael Niedermayer2015-03-09
| | | | | | | | | | Fixes out of array accesses. CC: libav-stable@libav.org Found-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind Bug-Id: CVE-2014-9604 Signed-off-by: Vittorio Giovara <vittorio.giovara@gmail.com> Signed-off-by: Luca Barbato <lu_zero@gentoo.org>
* avprobe: Export coded_{width,height} in -show_streamsVittorio Giovara2015-03-08
|
* tiff: Check that there is no aliasing in pixel format selectionAnton Khirnov2015-03-08
| | | | | | | | | Fixes possible issues with unexpected bpp/bppcount values. CC: libav-stable@libav.org Found-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind Bug-Id: CVE-2014-8544 Signed-off-by: Luca Barbato <lu_zero@gentoo.org>
* mxfdec: Fix the error handling for when strftime failsMartin Storsjö2015-03-08
| | | | | | The str variable is a char ** here. Signed-off-by: Martin Storsjö <martin@martin.st>
* xcbgrab: Free the host string after checking the connectionLuca Barbato2015-03-08
| | | | | | | Prevent an use after free in the error message. Bug-Id: CID 1274040 CC: libav-stable@libav.org
* vorbis: Check the vlc value in setup_classifsLuca Barbato2015-03-08
| | | | | | | | The valid returned values are always at most 11bit. Remove the previous check that assumed larger values plausible and use a signed integer to check get_vlc2 return values. CC: libav-stable@libav.org
* vorbis: Use a local codebook variableLuca Barbato2015-03-08
| | | | Makes the code a little simpler.
* rmdec: Improve message for demux errorCarl Eugen Hoyos2015-03-08
| | | | | | | Use correct context, reduce log level, don't assume it is a video stream, and print the tag of the unknown stream. Signed-off-by: Vittorio Giovara <vittorio.giovara@gmail.com>
* configure: Move the .object_arch check to the right placeMartin Storsjö2015-03-07
| | | | Signed-off-by: Martin Storsjö <martin@martin.st>
* arm: Suppress tags about used cpu arch and extensionsMartin Storsjö2015-03-07
| | | | | | | | | | When all the codepaths using manually set .arch/.fpu code is behind runtime detection, the elf attributes should be suppressed. This allows tools to know that the final built binary doesn't strictly require these extensions. Signed-off-by: Martin Storsjö <martin@martin.st>
* doc: Add -list_formats all example for video4linux2Jonas Lindgren2015-03-06
| | | | Signed-off-by: Luca Barbato <lu_zero@gentoo.org>
* movenc: Keep writing zero-entry stts atoms as intendedMartin Storsjö2015-03-06
| | | | | | | | a876585215 had the unintended side effect of returning AVERROR(ENOMEM) when track->entry is zero, while the code intentionally wants to continue in that case. Signed-off-by: Martin Storsjö <martin@martin.st>
* dashenc: Update extradata for mov muxerTimo Rothenpieler2015-03-06
| | | | | | | | | | | | The mov muxer already supports picking up extradata that wasn't present during the avformat_write_header call - we just need to propagate it. Since the dash muxer uses delay_moov, we have time up until the first segment is written to get extradata filled in. Also update the codec description string when the extradata becomes available. Signed-off-by: Martin Storsjö <martin@martin.st>
* dashenc: Simplify code by using a local variableTimo Rothenpieler2015-03-06
| | | | Signed-off-by: Martin Storsjö <martin@martin.st>
* libopenh264enc: Add support for building with OpenH264 1.4Martin Storsjö2015-03-06
| | | | Signed-off-by: Martin Storsjö <martin@martin.st>
* avfilter: Return more meaningful error codesHimangi Saraogi2015-03-05
| | | | Signed-off-by: Diego Biurrun <diego@biurrun.de>
* h264: remove a now redundant error checkAnton Khirnov2015-03-05
| | | | It was only relevant when data partitioning was in use.
* avformat/adxdec: set avctx->channels in adx_read_headerAndreas Cadhalpun2015-03-05
| | | | | | | | | It is used in adx_read_packet, which currently depends on the decoder/parser setting this value between reading the file header and demuxing the first packet. Signed-off-by: Andreas Cadhalpun <Andreas.Cadhalpun@googlemail.com> Signed-off-by: Anton Khirnov <anton@khirnov.net>
* rmenc: limit packet sizeAndreas Cadhalpun2015-03-05
| | | | | | | | | | | | The chunk size is limited to UINT16_MAX (written by avio_wb16), so make sure that the packet size is not too large. Such large frames need to be split into slices smaller than 64 kB, but that is currently supported neither by the rv10/rv20 encoders nor the rm muxer. Signed-off-by: Andreas Cadhalpun <Andreas.Cadhalpun@googlemail.com> Signed-off-by: Anton Khirnov <anton@khirnov.net>
* webp: validate the distance prefix codeAndreas Cadhalpun2015-03-05
| | | | | | | | | | | According to the WebP Lossless Bitstream Specification the highest allowed value for a prefix code is 39. If prefix_code is too large, the calculated extra_bits has an invalid value and triggers an assertion in get_bits. Signed-off-by: Andreas Cadhalpun <Andreas.Cadhalpun@googlemail.com> Signed-off-by: Anton Khirnov <anton@khirnov.net>
* rv10: check size of s->mb_width * s->mb_heightAndreas Cadhalpun2015-03-05
| | | | | | | If it doesn't fit into 12 bits it triggers an assertion. Signed-off-by: Andreas Cadhalpun <Andreas.Cadhalpun@googlemail.com> Signed-off-by: Anton Khirnov <anton@khirnov.net>
* rtpdec: experimental VP9 depacketizer (draft 0)Thomas Volkert2015-03-05
| | | | | | The code was tested with live555 server. Signed-off-by: Martin Storsjö <martin@martin.st>
* pcxenc: Return more meaningful error codesHimangi Saraogi2015-03-04
| | | | Signed-off-by: Diego Biurrun <diego@biurrun.de>
* rdt: Use a separate variable to clarify the different value namespacesMartin Storsjö2015-03-05
| | | | | | | | The original flags variable contains rtpdec flags, while the rmflags variable contains RM flag bits which have a completely different definition. Signed-off-by: Martin Storsjö <martin@martin.st>
* rtpdec_qt: Use a local variable instead of RTP_FLAG_KEYMartin Storsjö2015-03-05
| | | | | | | | The only case where RTP_FLAG_KEY actually is needed is in RDT, where such a flag needs to be passed via the rtpdec parse function's flags parameter. Signed-off-by: Martin Storsjö <martin@martin.st>
* rtpdec_asf: Don't set RTP_FLAG_KEYMartin Storsjö2015-03-05
| | | | | | | | Nothing in the framework nor in the rest of the depacketizer actually uses this flag - the chained demuxer sets the keyframe flag properly on demuxed packets already. Signed-off-by: Martin Storsjö <martin@martin.st>
* flv: Validate and reject unsupported codecsLuca Barbato2015-03-04
| | | | | | And provide a more informative message in case of failure. CC: libav-stable@libav.org
* aac: Relax reserved_bit validationVittorio Giovara2015-03-04
| | | | | | | | | | | Although the specification mandates this bit to zero, it may happen that software tools incorrectly flip it to one, invalidating a possibly valid stream. Relax this restriction, by failing only when AV_EF_BITSTREAM is set. This behaviour is similar to aac decoders in Firefox and Quicktime. Signed-off-by: Vittorio Giovara <vittorio.giovara@gmail.com>
* dca: Move syncword definitions to a separate headerDiego Biurrun2015-03-04
|
* rtpdec_asf: Don't free the payload context in the .close functionMartin Storsjö2015-03-04
| | | | | | This was missed in bb4a310bb. This fixes a double free on close. Signed-off-by: Martin Storsjö <martin@martin.st>
* fate: Specify the idct to use for the aic-oddsize testMartin Storsjö2015-03-04
| | | | | | | This fixes fate on all architectures that have an optimized but not bitexact idct available. Signed-off-by: Martin Storsjö <martin@martin.st>
* rtpdec_mpa_robust: Fix incrementing split_posMartin Storsjö2015-03-04
| | | | | | | | | This fixes an oversight in 96084251, in a refactoring done on top of Gilles' original patch. Pointed out by Gilles Chanteperdrix. Signed-off-by: Martin Storsjö <martin@martin.st>
* wma.h: #include "avcodec.h"Anton Khirnov2015-03-03
| | | | | | It's required for at least AVCodecContext. Fixes make checkheaders.
* asf: do not export XMP metadata by defaultVittorio Giovara2015-03-03
| | | | | | | | | | | Similarly to what has been done for MOV, display XMP metadata only when users explicitly require it. The Extensible Metadata Platform tag can contain various kind of data which are not strictly related to the video file, such as history of edits and saves from the project file. Signed-off-by: Vittorio Giovara <vittorio.giovara@gmail.com>
* fate: Add AIC test with odd sizesVittorio Giovara2015-03-03
|
* aic: Fix decoding files with odd dimensionsVittorio Giovara2015-03-03
| | | | | | | | | Normally the aic decoder finds the proper slice combination (multiple of some number less than 32) but in case of odd width, it resorts to the default values, which were actually swapped. The number of slices is modified to account for such odd width cases. CC: libav-stable@libav.org
* dashenc: Simplify code by using a local variableMartin Storsjö2015-03-02
| | | | Signed-off-by: Martin Storsjö <martin@martin.st>