summaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAge
* 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
|
* mtv: improve header check and avoid division by zeroVittorio Giovara2014-10-29
| | | | | CC: libav-stable@libav.org Bug-Id: CID 732203 / CID 732204
* oggenc: remove unneeded null checkMichael Niedermayer2014-10-29
| | | | | | | The code would have segfaulted before if oggstream were NULL. CC: libav-stable@libav.org Bug-Id: CID 732218
* configure: Check only for xcbLuca Barbato2014-10-28
| | | | xcb-utils are not needed anymore.
* lavd: fix building x11grab after a6674d2Anton Khirnov2014-10-28
|
* vdpau: return MAIN instead of BASELINE for H.264 CBPRémi Denis-Courmont2014-10-28
| | | | | | | This is the same as the previous change, but for applications using the old API (such as VLC 2.2). Signed-off-by: Anton Khirnov <anton@khirnov.net>
* vdpau/h264: request MAIN rather than BASELINE VDPAU profile for CBPRémi Denis-Courmont2014-10-28
| | | | | | | | | | | | | | The H.264 Constrained Baseline Profile (CBP) is a subset of both the Main Profile and the Baseline Profile. In principles, a hardware decoder that supports either of those can decode CBP content. As it happens, Main is supported by all VDPAU drivers, and Baseline is not. So favor map CBP to MP for now. Hopefully in the future libvdpau will offer an explicit choice for CBP. This fixes bug 757. Signed-off-by: Anton Khirnov <anton@khirnov.net>
* mxfdec: reduce loop bound in mxf_read_pixel_layout()Tomas Härdin2014-10-27
| | | | | | Makes coverity less confused and code more readable. Bug-Id: CID 732262
* bethsoftvid: check return value and clean memoryVittorio Giovara2014-10-27
| | | | | CC: libav-stable@libav.org Bug-Id: CID 733777
* filmstripdec: avoid integer overflowVittorio Giovara2014-10-27
| | | | | CC: libav-stable@libav.org Bug-Id: CID 732246
* matroskaenc: write correct Display{Width, Height} in stereo encodingVittorio Giovara2014-10-27
| | | | | | | | | | | | | should be the raw amount of pixels (for example 3840x1080 for full HD side by side) and the DisplayWidth/Height in pixels should be the amount of pixels for one plane (1920x1080 for that full HD stream)." So, move the aspect ratio check in the mkv_write_stereo_mode() function and always write the embl when stereo format and/or aspect ration is set. Also add a few comments to that function. CC: libav-stable@libav.org Found-by: Asan Usipov <asan.usipov@gmail.com>
* xcbgrab: XCB-based screen captureLuca Barbato2014-10-26
| | | | Matches the x11grab screen capture by features.
* lavf: Implement ff_brktimegm using gmtime_rMartin Storsjö2014-10-26
| | | | | | | While a standalone implementation is nice, we already depend on gmtime and gmtime_r in a number of places. Signed-off-by: Martin Storsjö <martin@martin.st>
* drawtext: Remove the ifdef for localtime_rMartin Storsjö2014-10-26
| | | | | | | | If it isn't available in the system, we've got a fallback to the normal localtime function, so normal code can assume it is available as long as time_internal.h is included. Signed-off-by: Martin Storsjö <martin@martin.st>
* Use gmtime_r instead of gmtime and localtime_r instead of localtimeMartin Storsjö2014-10-26
| | | | | | | | | | | gmtime isn't thread safe in general. In msvcrt (which lacks gmtime_r), the buffer used by gmtime is thread specific though. One call to localtime is left in avconv_opt.c, where thread safety shouldn't matter (instead of making avconv depend on the libavutil internal header). Signed-off-by: Martin Storsjö <martin@martin.st>
* lavu: Provide fallbacks for gmtime_r and localtime_rMartin Storsjö2014-10-26
| | | | | | | | | | | | This allows writing most code as if they always are is available. These are ok to use from other libraries even though it's not a public header, since they only provide an inline declaration, and doesn't add an actual dependency on lavu internals. (This can be considered more a build system compatibility fallback than a libavutil feature.) Signed-off-by: Martin Storsjö <martin@martin.st>
* lavf: Check the return value of strftimeMartin Storsjö2014-10-26
| | | | | | | | If the buffer provided to strftime is too small, the buffer contents are indeterminate - it does not guarantee actually null terminating the buffer. Signed-off-by: Martin Storsjö <martin@martin.st>
* wtv: Avoid needlessly calling gmtime twice with the same argumentMartin Storsjö2014-10-26
| | | | Signed-off-by: Martin Storsjö <martin@martin.st>
* mov: fix assigment checkVittorio Giovara2014-10-24
| | | | | CC: libav-stable@libav.org Bug-Id: CID 1197050
* mxfenc: Fix possible integer overflowsTomas Härdin2014-10-24
| | | | | | | | | None of these are likely unless the user is writing a file with two billion streams or a duration of around two months. CC: libav-stable@libav.org Bug-Id: CID 700568 / CID 700569 / CID 700570 / CID 700571 / CID 700572 / CID 700573
* mxfdec: add missing breakVittorio Giovara2014-10-24
| | | | | CC: libav-stable@libav.org Bug-Id: CID 732232
* matroskaenc: check avio_open_dyn_buf return valueVittorio Giovara2014-10-24
| | | | | CC: libav-stable@libav.org Bug-Id: CID 703629
* matroskadec: check return valuesVittorio Giovara2014-10-24
| | | | | CC: libav-stable@libav.org Bug-Id: CID 733712
* matroskadec: fix leak on errorVittorio Giovara2014-10-24
| | | | | CC: libav-stable@libav.org Bug-Id: CID 1026767
* lavf: replace rename() with ff_rename()Luca Barbato2014-10-24
| | | | | | | | | The new function wraps errno so that its value is correctly reported when other functions overwrite it (eg. in case of logging). CC: libav-stable@libav.org Bug-Id: CID 1135748 Signed-off-by: Vittorio Giovara <vittorio.giovara@gmail.com>
* flac_picture: prevent a possible out of bound writeVittorio Giovara2014-10-24
| | | | | | | | At "mimetype[len] = 0;" mimetype is a 64 element array and len might be equal to or greater than that. CC: libav-stable@libav.org Bug-Id: CID 1061055