summaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAge
* lavc: Compact the side-data passthroughLuca Barbato2014-11-09
|
* movenc: Require samples before trying to write edtsMartin Storsjö2014-11-08
| | | | | | | This avoids a potential crash if writing a fragmented psp mp4 (which probably is only a hypothetical scenario). Signed-off-by: Martin Storsjö <martin@martin.st>
* movenc: Avoid leaking locally allocated data when returning on errorsMartin Storsjö2014-11-08
| | | | Signed-off-by: Martin Storsjö <martin@martin.st>
* movenc: Remove an outdated commentMartin Storsjö2014-11-08
| | | | | | | QuickTime does support files with an empty initial movie these days. Signed-off-by: Martin Storsjö <martin@martin.st>
* movenc: Write correct presentation timestamps in tfraMartin Storsjö2014-11-07
| | | | | | | Previously we wrote decoding timestamps here, while the specs say it should be presentation timestamps. Signed-off-by: Martin Storsjö <martin@martin.st>
* movenc: Remove a now redundant checkMartin Storsjö2014-11-07
| | | | | | | | | | When using the new first_trun flag instead of checking the track id, we don't need to have a special case for the separate_moof flag any longer. This simplifies the complicated codepath ever so slightly. Signed-off-by: Martin Storsjö <martin@martin.st>
* movenc: Allow to request not to use edit listsMartin Storsjö2014-11-07
| | | | | | | | | | | | | | | | | | | In this case, shift tracks to start from zero instead (potentially stretching the first sample in tracks that start later than the first one). Some software does not support edit lists at all, the adobe flash player seems to be one of these. This results in AV sync errors when edit lists are used to adjust AV sync. Some players, such as QuickTime, don't respect the duration for audio packets, so if an audio track starts later than the video track and the first audio sample gets a duration longer than the actual amount of data in it, the result will be out of sync. Based on patches by Michael Niedermayer. Signed-off-by: Martin Storsjö <martin@martin.st>
* lavf: Print a warning if failed to avoid negative timestamps when requestedMichael Niedermayer2014-11-07
| | | | Signed-off-by: Martin Storsjö <martin@martin.st>
* lavf: Add an option for avoiding negative timestampsMichael Niedermayer2014-11-07
| | | | | | | | | | | This is the same logic as is invoked on AVFMT_TS_NEGATIVE, but which can be enabled manually, or can be enabled in muxers which only need it in certain conditions. Also allow using the same mechanism to force streams to start at 0. Signed-off-by: Martin Storsjö <martin@martin.st>
* avstring: Mark some character handling functions av_constHenrik Gramner2014-11-07
| | | | Signed-off-by: Martin Storsjö <martin@martin.st>
* mjpegdec: fix undefined shiftVittorio Giovara2014-11-06
| | | | | | | Add a comment to explain the code. CC: libav-stable@libav.org Bug-Id: CID 1194388
* pthreads_frame: Do not leak on failure pathLuca Barbato2014-11-06
| | | | | | CC: libav-stable@libav.org Bug-Id: CID 1135767 Signed-off-by: Vittorio Giovara <vittorio.giovara@gmail.com>
* mpeg12dec: simplify context duplicationVittorio Giovara2014-11-06
| | | | | CC: libav-stable@libav.org Bug-Id: CID 717453 / CID 717454 / CID 717915
* mpeg12enc: factor out check in encode_dcVittorio Giovara2014-11-06
| | | | | | | Makes coverity less confused and the code more readable. CC: libav-stable@libav.org Bug-Id: CID 751744
* mpegvideo_enc: factor out denominator and explicitly cast operandsVittorio Giovara2014-11-06
| | | | | CC: libav-stable@libav.org Bug-Id: CID 608053
* mpegvideo_enc: rework direct mode checkVittorio Giovara2014-11-06
| | | | | | | Remove stray semicolon and share codepaths. CC: libav-stable@libav.org Bug-Id: CID 991857
* nutdec: do not set has_b_framesAnton Khirnov2014-11-06
| | | | It is not supposed to be set by demuxers.
* lavc: make avpriv_flac_is_extradata_valid() private on the next bumpAnton Khirnov2014-11-06
|
* oggenc: accept only STREAMINFO extradataAnton Khirnov2014-11-06
| | | | | The reasoning is the same as for 0097cbea695e534fce39958ccd103af2fbf65831.
* lavc: make avpriv_flac_parse_streaminfo() private on the next bumpAnton Khirnov2014-11-06
|
* lavf: stop using avpriv_flac_parse_streaminfo()Anton Khirnov2014-11-06
| | | | | | The only parameters needed by the demuxers are the sample rate and sample count, which can be trivially extracted manually, without resorting to an avpriv function.
* riffenc: do not fall back on AVCodecContext.frame_size for MP3Anton Khirnov2014-11-06
| | | | | | | It will not be set unless the codec context is used as the encoding context, which is discouraged. For MP2, av_get_audio_frame_duration() will already set the frame size properly. For MP3, set the frame size explicitly.
* lavf: use the format context strict_std_compliance instead of the codec oneAnton Khirnov2014-11-06
|
* lavc,lavf: switch to the new vorbis parse APIAnton Khirnov2014-11-06
|
* lavc: add a public API for parsing vorbis packets.Anton Khirnov2014-11-06
| | | | | | It is required by (at least) the ogg demuxer. Mark the current semi-public apriv API for removal.
* vorbis_parser: add an AV prefix to VorbisParseContextAnton Khirnov2014-11-06
| | | | This is done in preparation for making it public.
* vorbis_parser: use a dedicated AVClass for loggingAnton Khirnov2014-11-06
| | | | | | Currently, the API takes an external AVCodecContext, which is used only for extradata and logging. This change will allow to it to work without an AVCodecContext in the following commits.
* rtmpproto: Ignore errors from the getStreamLength methodMartin Storsjö2014-11-05
| | | | | | | | | | It is never an error if this method failed. If rt->live was explicitly set to 0 (known to be a recorded file), print it as a warning, otherwise print it as a debug message. Based on a patch by Michael Niedermayer. Signed-off-by: Martin Storsjö <martin@martin.st>
* hwaccel: Deinitialize hardware acceleration early enoughRémi Denis-Courmont2014-11-04
| | | | | | | | | | | The application will destroy the underlying hardware handles when get_format() gets called again. Also this ensures the deinitialization takes place if the get_format callback returns an error. Regression from 1c80c9d7ef809180042257200c7b5f6b81d0b0e2. Signed-off-by: Luca Barbato <lu_zero@gentoo.org>
* aacdec: add default case in channel layoutVittorio Giovara2014-11-04
| | | | Bug-Id: CID 732291
* aacsbr: change order of operation to prevent out of array readMichael Niedermayer2014-11-04
| | | | | CC: libav-stable@libav.org Bug-Id: CID 732250
* aacsbr: treat 1-d arrays as suchVittorio Giovara2014-11-03
| | | | | | CC: libav-stable@libav.org Bug-Id: CID 1238802 / CID 1238793 / CID 1238785 CID 1238808 / CID 1238809
* celp_filters: don't use filter lenght as loop boundVittorio Giovara2014-11-03
| | | | | | CC: libav-stable@libav.org Bug-Id: CID 717906 / CID 717907 / CID 717916 / CID 717917 / CID 717919 / CID 732259
* error_resilience: initialize prev_* variablesVittorio Giovara2014-11-03
| | | | | CC: libav-stable@libav.org Bug-Id: CID 732293 / CID 732294
* motion_est: remove dead codeVittorio Giovara2014-11-03
| | | | | | mb_type is initialized to 0 and never updated before the check. Bug-Id: CID 1238782
* get_bits: remove unused assignmentVittorio Giovara2014-11-03
| | | | Bug-Id: CID 1238816
* movenc: Define the flag bits using shifts instead of as decimal numbersMartin Storsjö2014-11-03
| | | | Signed-off-by: Martin Storsjö <martin@martin.st>
* movenc: Don't write any iso brands in ismv filesMartin Storsjö2014-10-30
| | | | | | We deviate slightly from the iso specs for these files. Signed-off-by: Martin Storsjö <martin@martin.st>
* movenc: Don't write any tfdt atom for ismv filesMartin Storsjö2014-10-30
| | | | | | | | | The tfdt atom shouldn't be needed in those cases, we already write tfxd atoms for ismv anyway, which is roughly equivalent. This avoids having to declare the iso6 brand for ismv files. Signed-off-by: Martin Storsjö <martin@martin.st>
* movenc: Write a 0 duration in mdhd and tkhd for an empty initial moovMartin Storsjö2014-10-30
| | | | | | | | | | | | | | ISO/IEC 14496-12:2012/Cor 1:2013 is explicit about how this should be handled. All zeros doesn't mean that the full file has got a zero duration, only that the track samples described within the initial moov have got zero duration. An all ones duration means an indeterminate duration. Keep writing a duration consisting of all ones for the ISM mode - older windows media player versions won't play a file if this is zero. (Newer windows media player versions play either version fine.) Signed-off-by: Martin Storsjö <martin@martin.st>
* movenc: Add a flag for using default-base-is-moof in tfhd atomsMartin Storsjö2014-10-29
| | | | | | | | | | | | Similarly to the omit_tfhd_offset flag added in e7bf085b, this avoids writing absolute byte positions to the file, making them more easily streamable. This is a new feature from 14496-12:2012, so application support isn't necessarily too widespread yet (support for it in libav was added in 20f95f21f in July 2014). Signed-off-by: Martin Storsjö <martin@martin.st>
* movenc: Signal iso6 in compatible_brands when using tfdtMartin Storsjö2014-10-29
| | | | Signed-off-by: Martin Storsjö <martin@martin.st>
* doc: Document the omit_tfhd_offset flag to the mp4 muxerMartin Storsjö2014-10-29
| | | | | Signed-off-by: Luca Barbato <lu_zero@gentoo.org> Signed-off-by: Martin Storsjö <martin@martin.st>
* movenc: Use a local variable consistentlyMartin Storsjö2014-10-29
| | | | Signed-off-by: Martin Storsjö <martin@martin.st>
* movenc: Don't check the custom IO flag when using faststartMartin Storsjö2014-10-29
| | | | | | | | The custom IO flag actually never is set for muxers, only for demuxers, so the check was pointless (unless a user intentionally would set the flag to signal using custom IO). Signed-off-by: Martin Storsjö <martin@martin.st>
* movenc: Don't use track_id to decide which track is the first in a moofMartin Storsjö2014-10-29
| | | | | | | | | | If one track doesn't have any samples within a moof, no traf/trun is written for it. When the omit_tfhd_offset flag is set, none of the tfhd atoms have any base_data_offset set, and the implicit offset (end of previous track fragment data, or start of the moof for the first trun) is used. Signed-off-by: Martin Storsjö <martin@martin.st>
* bethsoftvid: simplify return handlingVittorio Giovara2014-10-29
| | | | Fixes a double free in case of av_packet_new_side_data() failure.
* assdec: check av_new_packet return valueVittorio Giovara2014-10-29
| | | | | CC: libav-stable@libav.org Bug-Id: CID 703626
* jack: Use av_strerrorLuca Barbato2014-10-29
|
* fbdev: Use av_strerrorLuca Barbato2014-10-29
|