summaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAge
* svq3: Check for any negative return value from ff_h264_check_intra_pred_modeMartin Storsjö2013-09-17
| | | | | | | | Also pass on any returned error code. Reported-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind CC: libav-stable@libav.org Signed-off-by: Martin Storsjö <martin@martin.st>
* rtmp: rename main_channel_id to stream_id.Josh Allmann2013-09-17
| | | | | | | This more closely corresponds to the usage of the field. Its usage here is unrelated to the channel ID. Signed-off-by: Martin Storsjö <martin@martin.st>
* rtmp: Follow Flash player numbering for channels.Josh Allmann2013-09-17
| | | | | | | | | | | Channel 4 is typically used by the Flash player to transmit audio, channel 6 for video, and various stream-specific invokes get sent over channel 8, which is designated the source channel. This more closely matches the behavior of the Flash player, including the transmission of play requests over channel 8. Signed-off-by: Martin Storsjö <martin@martin.st>
* rtmp: Send video on a separate channel.Josh Allmann2013-09-17
| | | | | | | | | | | Sending non-monotonic packets (e.g. when the audio and video streams are monotonic within themselves but not muxed monotonically) will lead to negative values the RTMP timestamp field (where timestamps are transmitted only as deltas for each channel), and this delta can end up being incorrectly written as a large unsigned number. Signed-off-by: Martin Storsjö <martin@martin.st>
* lavf: Make probe_codec return an error codeAlexandra Khirnova2013-09-16
| | | | | | This allows handling errors from av_realloc properly. Signed-off-by: Martin Storsjö <martin@martin.st>
* x86: Add an xmm clobbering wrapper for avcodec_encode_video2Martin Storsjö2013-09-16
| | | | | | | This is required since 187105ff8 when we started trying to wrap this function as well. Signed-off-by: Martin Storsjö <martin@martin.st>
* lavf: Don't explicitly flush after each written packet in muxersClément Bœsch2013-09-16
| | | | | | | | Since 596e5d4783, this is not necessary anymore. It also allows to actually disable the flushing, improving write performance (but possibly giving worse latency in real-time streaming). Signed-off-by: Martin Storsjö <martin@martin.st>
* lavf: Add a flag to enable/disable per-packet flushingLuca Barbato2013-09-16
| | | | | | | | | This is enabled by default and can be disabled with "-fflags -flush_packets". Inspired by a patch from Nicolas George <nicolas.george@normalesup.org>. Signed-off-by: Martin Storsjö <martin@martin.st>
* flv: Do not export datastream as metadataLuca Barbato2013-09-16
| | | | It is used internally.
* rtmp: Store all the notify messagesLuca Barbato2013-09-16
| | | | The onTextData is used to implement text data streams in flv.
* rtmp: Do not send the first field twice within the handshakeLuca Barbato2013-09-16
|
* rtmp: Drop an unneeded warningLuca Barbato2013-09-16
| | | | | Apparently a widely used streaming server requires that the second field always presents a version during C1 phase.
* rtmp: Support play method in listen modeLuca Barbato2013-09-16
|
* rtmp: Factor out publish specific codeLuca Barbato2013-09-16
| | | | Will be reused for supporting play.
* mem: Introduce av_reallocpLuca Barbato2013-09-16
|
* Fix references to deleted avcodec_encode_video() functionVittorio Giovara2013-09-16
|
* avpacket: Fix error checking in packet_allocMartin Storsjö2013-09-16
| | | | | | | | | | Previously the wrong buffer pointer was checked, when buf instead of *buf was checked. But checking the return value instead is even better. Reported-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind CC: libav-stable@libav.org Signed-off-by: Martin Storsjö <martin@martin.st>
* vp3: Check the framerate for validityMartin Storsjö2013-09-16
| | | | | | Reported-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind CC: libav-stable@libav.org Signed-off-by: Martin Storsjö <martin@martin.st>
* proresdec: Properly make sure an index doesn't run past the limitMartin Storsjö2013-09-16
| | | | | | | | | If idx equaled num_coeffs - 1 on entry to the loop, the previous check failed to break out of the loop. Reported-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind CC: libav-stable@libav.org Signed-off-by: Martin Storsjö <martin@martin.st>
* cavsdec: Make sure a sequence header has been decoded before decoding picturesMartin Storsjö2013-09-16
| | | | | | Reported-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind CC: libav-stable@libav.org Signed-off-by: Martin Storsjö <martin@martin.st>
* vocdec: Don't update codec parameters mid-streamMartin Storsjö2013-09-16
| | | | | | | | | | | | | | | | | | If we really want to support parameter changes, they need to be signalled along with the AVPackets as parameter change side data, not just changing the AVCodecContext parameters when a packet is demuxed (since there may be other earlier packets yet undecoded). Something similar was already done for the sample rate in 0883109b2, but some parameters were left changeable. This avoids having to recheck the channel count for validity for each decoded frame in (ad)pcm decoders, unless the decoders explicitly say that they accept parameter changes. Reported-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind CC: libav-stable@libav.org Signed-off-by: Martin Storsjö <martin@martin.st>
* sierravmd: Do sanity checking of frame sizesMartin Storsjö2013-09-16
| | | | | | | | | | | Limit the size to INT_MAX/2 (for simplicity) to be sure that size + BYTES_PER_FRAME_RECORD won't overflow. Also factorize other existing error return paths. Reported-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind CC: libav-stable@libav.org Signed-off-by: Martin Storsjö <martin@martin.st>
* omadec: Properly check lengths before incrementing the positionMartin Storsjö2013-09-16
| | | | | | Reported-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind CC: libav-stable@libav.org Signed-off-by: Martin Storsjö <martin@martin.st>
* mathops/x86: work around inline asm miscompilation with GCC 4.8.1Hendrik Leppkes2013-09-15
| | | | | | | | The volatile is not required here, and prevents a miscompilation with GCC 4.8.1 when building on x86 with --cpu=i686 Signed-off-by: Michael Niedermayer <michaelni@gmx.at> Signed-off-by: Derek Buitenhuis <derek.buitenhuis@gmail.com>
* mem: Document the non-compatibility of av_realloc() and av_malloc()Diego Biurrun2013-09-14
|
* pcm-dvd: Minor leftoversChristian Schmidt2013-09-13
| | | | Drop a pointless branch in uninit and use the compact copyright.
* pcm-dvd: Support channel configuration changesChristian Schmidt2013-09-13
| | | | | | | | | | The sample buffering logic does not take into account that the blocksize could change. Reset the buffer if the channel configuration changes, since if there are leftover samples, it is most likely a broken or misconcatenated stream. This could lead to negative numbers for missing_samples during decoding. Thanks to Michael Niedermeyer for pointing these out.
* matroskaenc: Fix stray pointers left over from av_reallocp_array refactoringAlexandra Khirnova2013-09-12
| | | | Signed-off-by: Diego Biurrun <diego@biurrun.de>
* mp3: add .mpa extensionVittorio Giovara2013-09-12
| | | | Signed-off-by: Diego Biurrun <diego@biurrun.de>
* configure: Mention that icl does not build both static and shared libsDiego Biurrun2013-09-12
|
* g2meet: Allocate cursor buffers large enough to fit the aligned widthMartin Storsjö2013-09-12
| | | | | | Reported-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind CC: libav-stable@libav.org Signed-off-by: Martin Storsjö <martin@martin.st>
* aic: Validate values read from the bitstreamMartin Storsjö2013-09-12
| | | | | | Reported-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind CC: libav-stable@libav.org Signed-off-by: Martin Storsjö <martin@martin.st>
* mpc8: Make sure the first stream exists before parsing the seek tableMartin Storsjö2013-09-12
| | | | | | Reported-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind CC: libav-stable@libav.org Signed-off-by: Martin Storsjö <martin@martin.st>
* mpc8: Check the seek table size parsed from the bitstreamMartin Storsjö2013-09-12
| | | | | | | | | Limit the size to INT_MAX/2 (for simplicity) to be sure that size + FF_INPUT_BUFFER_PADDING_SIZE won't overflow. Reported-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind CC: libav-stable@libav.org Signed-off-by: Martin Storsjö <martin@martin.st>
* zmbvdec: Check the buffer size for uncompressed dataMichael Niedermayer2013-09-12
| | | | | | | | | Also don't pointlessly set the buffer size to 1 after copying one packet. Reported-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind CC: libav-stable@libav.org Signed-off-by: Martin Storsjö <martin@martin.st>
* ape: Don't allow the seektable to be omittedMartin Storsjö2013-09-12
| | | | | | | | | The seektable is required for filling in ape->frames[i].pos further down. Reported-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind CC: libav-stable@libav.org Signed-off-by: Martin Storsjö <martin@martin.st>
* shorten: Break out of loop looking for fmt chunk if none is foundMartin Storsjö2013-09-12
| | | | | | Reported-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind CC: libav-stable@libav.org Signed-off-by: Martin Storsjö <martin@martin.st>
* shorten: Use a checked bytestream reader for the wave headerMartin Storsjö2013-09-12
| | | | | | Reported-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind CC: libav-stable@libav.org Signed-off-by: Martin Storsjö <martin@martin.st>
* smacker: Free memory properly if the init function failsMartin Storsjö2013-09-11
| | | | Signed-off-by: Martin Storsjö <martin@martin.st>
* smacker: Make sure we don't fill in huffman codes out of rangeMartin Storsjö2013-09-11
| | | | | | Reported-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind CC: libav-stable@libav.org Signed-off-by: Martin Storsjö <martin@martin.st>
* smacker: Check malloc return valuesMartin Storsjö2013-09-11
| | | | | | Also try to free local allocations on errors. Signed-off-by: Martin Storsjö <martin@martin.st>
* smacker: Avoid integer overflow when allocating packetsMartin Storsjö2013-09-11
| | | | | | Reported-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind CC: libav-stable@libav.org Signed-off-by: Martin Storsjö <martin@martin.st>
* smacker: Don't return packets in unallocated streamsMartin Storsjö2013-09-11
| | | | | | Reported-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind CC: libav-stable@libav.org Signed-off-by: Martin Storsjö <martin@martin.st>
* dsicin: Add some basic sanity checks for fields read from the fileMartin Storsjö2013-09-11
| | | | | | Reported-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind CC: libav-stable@libav.org Signed-off-by: Martin Storsjö <martin@martin.st>
* configure: Fix wrong reference to user support mailing listDiego Biurrun2013-09-11
|
* Drop pointless directory name prefixes from #includes in the current dirDiego Biurrun2013-09-10
|
* doc: Drop VDPAU from list of supported codecsDiego Biurrun2013-09-10
|
* fate.sh: Run git-clone quietlyDiego Biurrun2013-09-10
|
* avformat: Use av_reallocp_array() where suitableAlexandra Khirnova2013-09-10
| | | | Signed-off-by: Diego Biurrun <diego@biurrun.de>
* movenc: Simplify setting the fragmentation flagMartin Storsjö2013-09-09
| | | | | | | This makes sure the faststart vs fragmentation check works as intended when fragmentation is enabled due to using the ismv mode. Signed-off-by: Martin Storsjö <martin@martin.st>