ffmpeg.git
3 years agoavcodec/wmadec: fix 0 frame bit_reservoir
Michael Niedermayer [Mon, 12 Jan 2015 00:51:06 +0000 (01:51 +0100)]
avcodec/wmadec: fix 0 frame bit_reservoir

Fixes Ticket968
partly fixes Ticket691

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
3 years agoavcodec/wmadec: also print the number of bits left in the nb_frames <= 0 case
Michael Niedermayer [Mon, 12 Jan 2015 00:48:32 +0000 (01:48 +0100)]
avcodec/wmadec: also print the number of bits left in the nb_frames <= 0 case

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
3 years agodoc/codecs: document nomc flag
Michael Niedermayer [Mon, 12 Jan 2015 00:18:01 +0000 (01:18 +0100)]
doc/codecs: document nomc flag

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
3 years agoAdding Closed caption accessories
Anshul Maheshwari [Tue, 6 Jan 2015 06:55:41 +0000 (12:25 +0530)]
Adding Closed caption accessories

Signed-off-by: Anshul Maheshwari <anshul.ffmpeg@gmail.com>
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
3 years agoAdding Closed caption Support
Anshul Maheshwari [Tue, 6 Jan 2015 06:53:34 +0000 (12:23 +0530)]
Adding Closed caption Support

Signed-off-by: Anshul Maheshwari <anshul.ffmpeg@gmail.com>
To test Closed caption use following command
ffmpeg -f lavfi -i "movie=input.ts[out0+subcc]" -map s output.srt
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
3 years agocmdutils: use av_match_name to filter devices
Lukasz Marek [Sun, 21 Dec 2014 21:42:10 +0000 (22:42 +0100)]
cmdutils: use av_match_name to filter devices

Device name may be coma-separated list.
Use dedicated funtion to compare.

Signed-off-by: Lukasz Marek <lukasz.m.luki2@gmail.com>
3 years agolavd/v4l2: implement list device callback
Lukasz Marek [Sun, 21 Dec 2014 21:37:18 +0000 (22:37 +0100)]
lavd/v4l2: implement list device callback

Signed-off-by: Lukasz Marek <lukasz.m.luki2@gmail.com>
3 years agocmdutils: use helper functions for listing sinks/sources
Lukasz Marek [Sun, 14 Dec 2014 23:31:42 +0000 (00:31 +0100)]
cmdutils: use helper functions for listing sinks/sources

List device callback must be able to return valid list without opening device.
This callback should return input values for open function, not vice-versa.
Read header funtion is very likey to fail without proper configuration provided.

Signed-off-by: Lukasz Marek <lukasz.m.luki2@gmail.com>
3 years agolavd/avdevice: introduce helper functions for sink/sources listing
Lukasz Marek [Sun, 21 Dec 2014 19:12:47 +0000 (20:12 +0100)]
lavd/avdevice: introduce helper functions for sink/sources listing

Signed-off-by: Lukasz Marek <lukasz.m.luki2@gmail.com>
3 years agolavd/avdevice: remove av_ prefix from private function
Lukasz Marek [Sat, 20 Dec 2014 16:15:29 +0000 (17:15 +0100)]
lavd/avdevice: remove av_ prefix from private function

Signed-off-by: Lukasz Marek <lukasz.m.luki2@gmail.com>
3 years agoavcodec/error_resilience: Remove special case for H.264 from is_intra_more_likely
Michael Niedermayer [Sun, 11 Jan 2015 16:00:37 +0000 (17:00 +0100)]
avcodec/error_resilience: Remove special case for H.264 from is_intra_more_likely

This should not be needed

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
3 years agoavcodec/h264: Keep a reference to the last picture for EC
Michael Niedermayer [Sun, 11 Jan 2015 15:40:27 +0000 (16:40 +0100)]
avcodec/h264: Keep a reference to the last picture for EC

This and the next commit improve error concealment for
green-block-artifacts-from-canon-100-hs.MOV

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
3 years agoavcodec/options_table: add entries for MPEG4 video profiles
Michael Niedermayer [Mon, 29 Dec 2014 01:13:28 +0000 (02:13 +0100)]
avcodec/options_table: add entries for MPEG4 video profiles

Fixes part of Ticket2901

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
3 years agoavcodec/proresdec_lgpl: Use av_malloc_array()
Michael Niedermayer [Sun, 11 Jan 2015 12:42:06 +0000 (13:42 +0100)]
avcodec/proresdec_lgpl: Use av_malloc_array()

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
3 years agoavcodec/pgssubdec: Use av_malloc*_array()
Michael Niedermayer [Sun, 11 Jan 2015 12:41:14 +0000 (13:41 +0100)]
avcodec/pgssubdec: Use av_malloc*_array()

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
3 years agoavcodec/libvo-aacenc: Use av_mallocz_array()
Michael Niedermayer [Sun, 11 Jan 2015 12:32:55 +0000 (13:32 +0100)]
avcodec/libvo-aacenc: Use av_mallocz_array()

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
3 years agoHandle r10k endianess atom DpxE.
Carl Eugen Hoyos [Sun, 11 Jan 2015 11:11:36 +0000 (12:11 +0100)]
Handle r10k endianess atom DpxE.

Fixes playback and remuxing of r10k_full-range_big-endian.mov.

Reported, analyzed and tested by Olaf Matthes, olaf matthes gmx de

3 years agoavformat/hlsenc: more robust error tests
Michael Niedermayer [Sun, 11 Jan 2015 03:58:29 +0000 (04:58 +0100)]
avformat/hlsenc: more robust error tests

errors are negative throughout ffmpeg

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
3 years agox86/swr: load constants outside the loop in pack_6ch functions
James Almer [Sat, 10 Jan 2015 22:21:52 +0000 (19:21 -0300)]
x86/swr: load constants outside the loop in pack_6ch functions

Reviewed-by: Michael Niedermayer <michaelni@gmx.at>
Signed-off-by: James Almer <jamrial@gmail.com>
3 years agoavformat/voc: add seeking support
Michael Niedermayer [Sat, 10 Jan 2015 23:16:41 +0000 (00:16 +0100)]
avformat/voc: add seeking support

Fixes Ticket1333

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
3 years agoavcodec/libvpxenc.c: Fix linking with codec interface with msvc.
Matt Oliver [Sat, 10 Jan 2015 11:19:08 +0000 (22:19 +1100)]
avcodec/libvpxenc.c: Fix linking with codec interface with msvc.

Default libvpx msvc buils used module definition to export symbols.
These symbols are exported as pointers to data which dont link when
referenced directly.

Reviewed-by: Timothy Gu <timothygu99@gmail.com>
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
3 years agovp9: avoid infinite loop with broken files
wm4 [Sat, 10 Jan 2015 17:00:08 +0000 (18:00 +0100)]
vp9: avoid infinite loop with broken files

With a certain fuzzed file, the parser will always return 0 consumed
bytes, which makes calling code call the parser infinitely. Return the
full packet size on error instead. (Here it would be nice if parsers
could return errors at all.)

Additionally, _if_ there's some data left, return that too, which might
help with somewhat broken but still somehow playable files.

Fixes ticket #4242.

Reviewed-by: "Ronald S. Bultje" <rsbultje@gmail.com>
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
3 years agoavcodec/ratecontrol: Check for av_malloc*() failures
Michael Niedermayer [Sat, 10 Jan 2015 18:29:39 +0000 (19:29 +0100)]
avcodec/ratecontrol: Check for av_malloc*() failures

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
3 years agoavcodec/dvbsubdec: Return proper error codes from more functions
Michael Niedermayer [Sat, 10 Jan 2015 18:24:27 +0000 (19:24 +0100)]
avcodec/dvbsubdec: Return proper error codes from more functions

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
3 years agoavcodec/dvbsubdec: Add some av_malloc() failure checks
Michael Niedermayer [Sat, 10 Jan 2015 18:18:59 +0000 (19:18 +0100)]
avcodec/dvbsubdec: Add some av_malloc() failure checks

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
3 years agoavcodec/diracdec: Check slices malloc and propagate error code
Michael Niedermayer [Sat, 10 Jan 2015 16:25:05 +0000 (17:25 +0100)]
avcodec/diracdec: Check slices malloc and propagate error code

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
3 years agoavfilter/vf_pp7: Add GBRP pixel format
Michael Niedermayer [Sat, 10 Jan 2015 15:05:59 +0000 (16:05 +0100)]
avfilter/vf_pp7: Add GBRP pixel format

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
3 years agoavfilter/vf_pp7: use av_malloc_array()
Michael Niedermayer [Sat, 10 Jan 2015 15:03:46 +0000 (16:03 +0100)]
avfilter/vf_pp7: use av_malloc_array()

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
3 years agoLICENSE.md: mention mpdecimate and not decimate to be GPL
Paul B Mahol [Sat, 10 Jan 2015 13:32:55 +0000 (13:32 +0000)]
LICENSE.md: mention mpdecimate and not decimate to be GPL

Signed-off-by: Paul B Mahol <onemda@gmail.com>
3 years agoavcodec/cavs: Check for av_malloc* failure in ff_cavs_init_top_lines()
Michael Niedermayer [Sat, 10 Jan 2015 12:59:46 +0000 (13:59 +0100)]
avcodec/cavs: Check for av_malloc* failure in ff_cavs_init_top_lines()

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
3 years agoavformat/movenc: move variable to a more local block
Michael Niedermayer [Sat, 10 Jan 2015 03:50:50 +0000 (04:50 +0100)]
avformat/movenc: move variable to a more local block

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
3 years agodoc/examples: fix lib math dep for decoding_encoding
Andreas Cadhalpun [Fri, 9 Jan 2015 16:50:27 +0000 (17:50 +0100)]
doc/examples: fix lib math dep for decoding_encoding

It uses at least sin().

Signed-off-by: Andreas Cadhalpun <Andreas.Cadhalpun@googlemail.com>
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
3 years agoconfigure: enable vsx together with altivec for ppc64el
Andreas Cadhalpun [Fri, 9 Jan 2015 16:32:09 +0000 (17:32 +0100)]
configure: enable vsx together with altivec for ppc64el

The altivec optimizations on little endian ppc64 don't work without vsx.

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
3 years agoavformat/movenc: workaround bug in "PathScale EKOPath(tm) Compiler Suite Version...
Michael Niedermayer [Sat, 10 Jan 2015 02:43:54 +0000 (03:43 +0100)]
avformat/movenc: workaround bug in "PathScale EKOPath(tm) Compiler Suite Version 4.0.12.1"

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
3 years agoavfilter/internal: add fixme to ff_norm_qscale() to document obvious scaling issue
Michael Niedermayer [Sat, 10 Jan 2015 01:27:49 +0000 (02:27 +0100)]
avfilter/internal: add fixme to ff_norm_qscale() to document obvious scaling issue

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
3 years agoavfilter: Factorize the use of norm_qscale in pp7
Arwa Arif [Fri, 9 Jan 2015 20:13:42 +0000 (01:43 +0530)]
avfilter: Factorize the use of norm_qscale in pp7

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
3 years agorm: fix memory leak on init failure
wm4 [Fri, 9 Jan 2015 20:24:54 +0000 (21:24 +0100)]
rm: fix memory leak on init failure

AVInputFormat.read_close is not called if AVInputFormat.read_header
fails, so this needs to be handled separately.

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
3 years agoffserver: Use av_malloc_array()
Michael Niedermayer [Tue, 6 Jan 2015 16:55:50 +0000 (17:55 +0100)]
ffserver: Use av_malloc_array()

Reviewed-by: "Reynaldo H. Verdejo Pinochet" <reynaldo@osg.samsung.com>
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
3 years agox86/vf_pp7: port dctB_mmx to yasm
James Almer [Fri, 9 Jan 2015 19:51:13 +0000 (16:51 -0300)]
x86/vf_pp7: port dctB_mmx to yasm

Reviewed-by: Michael Niedermayer <michaelni@gmx.at>
Signed-off-by: James Almer <jamrial@gmail.com>
3 years agoMerge commit '51da7d02748cc54b7d009115e76efa940b99a8ef'
Michael Niedermayer [Fri, 9 Jan 2015 20:25:26 +0000 (21:25 +0100)]
Merge commit '51da7d02748cc54b7d009115e76efa940b99a8ef'

* commit '51da7d02748cc54b7d009115e76efa940b99a8ef':
  matroskaenc: refuse to write AAC without valid extradata

Merged-by: Michael Niedermayer <michaelni@gmx.at>
3 years agoMerge commit '7e4e010b80e76862e83afbd41c25d50e72f0b44c'
Michael Niedermayer [Fri, 9 Jan 2015 19:51:17 +0000 (20:51 +0100)]
Merge commit '7e4e010b80e76862e83afbd41c25d50e72f0b44c'

* commit '7e4e010b80e76862e83afbd41c25d50e72f0b44c':
  mpeg4audio: check the init_get_bits() return value

Conflicts:
libavcodec/mpeg4audio.c

See: deefdf9788467edd262b9c29a4f6e33d2ae84b8c
Merged-by: Michael Niedermayer <michaelni@gmx.at>
3 years agoavcodec/ass_split: use *alloc_array()
Michael Niedermayer [Fri, 9 Jan 2015 19:20:00 +0000 (20:20 +0100)]
avcodec/ass_split: use *alloc_array()

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
3 years agoavcodec/ass: Use av_realloc_array()
Michael Niedermayer [Fri, 9 Jan 2015 17:57:37 +0000 (18:57 +0100)]
avcodec/ass: Use av_realloc_array()

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
3 years agolavfi: port mp=pp7 to libavfilter
Arwa Arif [Thu, 25 Dec 2014 04:20:24 +0000 (09:50 +0530)]
lavfi: port mp=pp7 to libavfilter

The only difference with mp=pp7 is that default mode is "medium", as stated
in the MPlayer docs, rather than "hard".

Signed-off-by: Stefano Sabatini <stefasab@gmail.com>
3 years agoavformat/hdsenc: Remove redundant NULL pointer checks
Michael Niedermayer [Fri, 9 Jan 2015 14:54:15 +0000 (15:54 +0100)]
avformat/hdsenc: Remove redundant NULL pointer checks

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
3 years agoffmpeg: remove unneeded NULL pointer check
Michael Niedermayer [Fri, 9 Jan 2015 14:51:32 +0000 (15:51 +0100)]
ffmpeg: remove unneeded NULL pointer check

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
3 years agotools/uncoded_frame: Use avio_closep() to avoid leaving stale pointers in memory
Michael Niedermayer [Fri, 9 Jan 2015 14:46:13 +0000 (15:46 +0100)]
tools/uncoded_frame: Use avio_closep() to avoid leaving stale pointers in memory

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
3 years agomatroskaenc: refuse to write AAC without valid extradata
Anton Khirnov [Thu, 1 Jan 2015 17:22:46 +0000 (18:22 +0100)]
matroskaenc: refuse to write AAC without valid extradata

3 years agompeg4audio: check the init_get_bits() return value
Anton Khirnov [Thu, 1 Jan 2015 16:56:56 +0000 (17:56 +0100)]
mpeg4audio: check the init_get_bits() return value

Fixes possible invalid reads.

CC:libav-stable@libav.org

3 years agoavformat/tee: Simplify code by using avio_closep()
Michael Niedermayer [Fri, 9 Jan 2015 12:40:09 +0000 (13:40 +0100)]
avformat/tee: Simplify code by using avio_closep()

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
3 years agoavformat/sapenc: Use avio_closep() to avoid leaving stale pointers in memory
Michael Niedermayer [Fri, 9 Jan 2015 12:39:48 +0000 (13:39 +0100)]
avformat/sapenc: Use avio_closep() to avoid leaving stale pointers in memory

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
3 years agoavformat/utils: Use avio_closep() to avoid leaving stale pointers in memory
Michael Niedermayer [Fri, 9 Jan 2015 12:39:06 +0000 (13:39 +0100)]
avformat/utils: Use avio_closep() to avoid leaving stale pointers in memory

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
3 years agovp9: fix parser return values in error case
wm4 [Fri, 9 Jan 2015 01:13:36 +0000 (02:13 +0100)]
vp9: fix parser return values in error case

The parser must always set the out_size and out_data pointers. The API
seems to require it, and the common code in parser.c also relies on it.

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
3 years agoconfigure: fix convoluted shlib code
Michael Niedermayer [Sun, 21 Dec 2014 02:46:53 +0000 (03:46 +0100)]
configure: fix convoluted shlib code

Fixes Ticket 4199

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
3 years agoavformat/aiffdec: improve readability
Peter Ross [Thu, 8 Jan 2015 23:09:04 +0000 (10:09 +1100)]
avformat/aiffdec: improve readability

Signed-off-by: Peter Ross <pross@xvid.org>
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
3 years agoSkip Exif data when auto-detecting jpeg images.
Carl Eugen Hoyos [Thu, 8 Jan 2015 23:30:02 +0000 (00:30 +0100)]
Skip Exif data when auto-detecting jpeg images.

3 years agoffmpeg: Clear error message array at init.
Michael Niedermayer [Thu, 8 Jan 2015 22:02:30 +0000 (23:02 +0100)]
ffmpeg: Clear error message array at init.

This avoids printing uninitialized bytes if no error message is set

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
3 years agoavformat/mlvdec: Use avio_closep() to avoid leaving stale pointers in memory
Michael Niedermayer [Thu, 8 Jan 2015 19:11:00 +0000 (20:11 +0100)]
avformat/mlvdec: Use avio_closep() to avoid leaving stale pointers in memory

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
3 years agoavformat/mlvdec: Simplify code by using avio_closep()
Michael Niedermayer [Thu, 8 Jan 2015 19:10:47 +0000 (20:10 +0100)]
avformat/mlvdec: Simplify code by using avio_closep()

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
3 years agoavformat/mov: Use avio_closep() to avoid leaving stale pointers in memory
Michael Niedermayer [Thu, 8 Jan 2015 19:09:30 +0000 (20:09 +0100)]
avformat/mov: Use avio_closep() to avoid leaving stale pointers in memory

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
3 years agoavformat/rtpenc_chain: Use avio_closep() to avoid leaving stale pointers in memory
Michael Niedermayer [Thu, 8 Jan 2015 19:08:24 +0000 (20:08 +0100)]
avformat/rtpenc_chain: Use avio_closep() to avoid leaving stale pointers in memory

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
3 years agoavformat/rtsp: Use avio_closep() to avoid leaving stale pointers in memory
Michael Niedermayer [Thu, 8 Jan 2015 19:08:24 +0000 (20:08 +0100)]
avformat/rtsp: Use avio_closep() to avoid leaving stale pointers in memory

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
3 years agoavcodec/dvdsubdec: fix accessing dangling pointers
wm4 [Thu, 8 Jan 2015 16:19:17 +0000 (17:19 +0100)]
avcodec/dvdsubdec: fix accessing dangling pointers

dvdsub_decode() can call append_to_cached_buf() 2 times, the second time
with ctx->buf as argument. If the second append_to_cached_buf() reallocs
ctx->buf, the argument will be a pointer to the previous, freed block.
This can cause invalid reads at least with some fuzzed files - and
possibly with valid files.

Since packets can apparently not be larger than 64K (even if packets are
combined), just use a fixed size buffer. It will be allocated as part of
the DVDSubContext, and although some memory is "wasted", it's relatively
minimal by modern standards and should be acceptable.

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
3 years agoMerge commit '2dbd35b00c6433e587d5f44d5dbc8972ebbaa88e'
Michael Niedermayer [Thu, 8 Jan 2015 16:35:17 +0000 (17:35 +0100)]
Merge commit '2dbd35b00c6433e587d5f44d5dbc8972ebbaa88e'

* commit '2dbd35b00c6433e587d5f44d5dbc8972ebbaa88e':
  libfdk-aacdec: Make sure decoding doesn't add any extra delay in the latest version of fdk-aac

Merged-by: Michael Niedermayer <michaelni@gmx.at>
3 years agoMerge commit '3852e2c926ddb166c7aa69c4644a86100ea144d9'
Michael Niedermayer [Thu, 8 Jan 2015 16:26:57 +0000 (17:26 +0100)]
Merge commit '3852e2c926ddb166c7aa69c4644a86100ea144d9'

* commit '3852e2c926ddb166c7aa69c4644a86100ea144d9':
  libopenh264enc: Fix a typo and some nitpicks

Merged-by: Michael Niedermayer <michaelni@gmx.at>
3 years agoMerge commit '71ec3d36fa6122b3b6c5c68a21b9c70cb2e668e8'
Michael Niedermayer [Thu, 8 Jan 2015 16:12:49 +0000 (17:12 +0100)]
Merge commit '71ec3d36fa6122b3b6c5c68a21b9c70cb2e668e8'

* commit '71ec3d36fa6122b3b6c5c68a21b9c70cb2e668e8':
  doc: Add initial documentation about the OpenH264 encoder wrapper

Merged-by: Michael Niedermayer <michaelni@gmx.at>
3 years agolavfi/boxblur: Readd 8bit colour spaces on big-endian.
Carl Eugen Hoyos [Thu, 8 Jan 2015 14:24:59 +0000 (15:24 +0100)]
lavfi/boxblur: Readd 8bit colour spaces on big-endian.

3 years agoavformat/hlsenc: Use avio_closep() to avoid leaving stale pointers in memory
Michael Niedermayer [Thu, 8 Jan 2015 13:51:04 +0000 (14:51 +0100)]
avformat/hlsenc: Use avio_closep() to avoid leaving stale pointers in memory

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
3 years agoavformat/img2dec: Use avio_closep() to avoid leaving stale pointers in memory
Michael Niedermayer [Thu, 8 Jan 2015 13:50:34 +0000 (14:50 +0100)]
avformat/img2dec: Use avio_closep() to avoid leaving stale pointers in memory

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
3 years agoavformat/img2enc: Use avio_closep() to avoid leaving stale pointers in memory
Michael Niedermayer [Thu, 8 Jan 2015 13:50:07 +0000 (14:50 +0100)]
avformat/img2enc: Use avio_closep() to avoid leaving stale pointers in memory

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
3 years agoavformat/hdsenc: Simplify code by using avio_closep()
Michael Niedermayer [Thu, 8 Jan 2015 13:13:36 +0000 (14:13 +0100)]
avformat/hdsenc: Simplify code by using avio_closep()

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
3 years agoavdevice/lavfi: Use avio_closep() to avoid leaving stale pointers in memory
Michael Niedermayer [Thu, 8 Jan 2015 13:11:44 +0000 (14:11 +0100)]
avdevice/lavfi: Use avio_closep() to avoid leaving stale pointers in memory

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
3 years agoffserver: Use avio_closep() to avoid leaving stale pointers in memor
Michael Niedermayer [Thu, 8 Jan 2015 13:11:12 +0000 (14:11 +0100)]
ffserver: Use avio_closep() to avoid leaving stale pointers in memor

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
3 years agoffmpeg: Use avio_closep() to avoid leaving stale pointers in memory
Michael Niedermayer [Thu, 8 Jan 2015 13:10:58 +0000 (14:10 +0100)]
ffmpeg: Use avio_closep() to avoid leaving stale pointers in memory

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
3 years agoffmpeg_opt: Use avio_closep() to avoid leaving stale pointers in memory
Michael Niedermayer [Thu, 8 Jan 2015 13:10:23 +0000 (14:10 +0100)]
ffmpeg_opt: Use avio_closep() to avoid leaving stale pointers in memory

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
3 years agolibfdk-aacdec: Make sure decoding doesn't add any extra delay in the latest version...
Martin Storsjö [Wed, 7 Jan 2015 21:49:41 +0000 (23:49 +0200)]
libfdk-aacdec: Make sure decoding doesn't add any extra delay in the latest version of fdk-aac

The latest version added support for a new option for enabling
a signal level limiter, which adds some extra delay. In fdk-aac, this
is enabled by default, but disable it by default here since we'd rather
have zero-delay decoding.

Signed-off-by: Martin Storsjö <martin@martin.st>
3 years agolibopenh264enc: Fix a typo and some nitpicks
Martin Storsjö [Wed, 7 Jan 2015 22:03:09 +0000 (00:03 +0200)]
libopenh264enc: Fix a typo and some nitpicks

Also move the .long_name entry to below the .name entry.

Signed-off-by: Martin Storsjö <martin@martin.st>
3 years agodoc: Add initial documentation about the OpenH264 encoder wrapper
Martin Storsjö [Wed, 7 Jan 2015 22:02:05 +0000 (00:02 +0200)]
doc: Add initial documentation about the OpenH264 encoder wrapper

Signed-off-by: Martin Storsjö <martin@martin.st>
3 years agodoc/examples/transcoding: Use avio_closep() in examples as it avoids leaving stale...
Michael Niedermayer [Thu, 8 Jan 2015 04:10:55 +0000 (05:10 +0100)]
doc/examples/transcoding: Use avio_closep() in examples as it avoids leaving stale pointers

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
3 years agoidoc/examples/remuxing: Use avio_closep() in examples as it avoids leaving stale...
Michael Niedermayer [Thu, 8 Jan 2015 04:10:39 +0000 (05:10 +0100)]
idoc/examples/remuxing: Use avio_closep() in examples as it avoids leaving stale pointers

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
3 years agodoc/examples/transcode_aac: Use avio_closep() in examples as it avoids leaving stale...
Michael Niedermayer [Thu, 8 Jan 2015 04:09:52 +0000 (05:09 +0100)]
doc/examples/transcode_aac: Use avio_closep() in examples as it avoids leaving stale pointers

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
3 years agodoc/examples/muxing: Use avio_closep() in examples as it avoids leaving stale pointers
Michael Niedermayer [Thu, 8 Jan 2015 04:09:06 +0000 (05:09 +0100)]
doc/examples/muxing: Use avio_closep() in examples as it avoids leaving stale pointers

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
3 years agodoc: fix typos
Lou Logan [Thu, 8 Jan 2015 02:16:54 +0000 (17:16 -0900)]
doc: fix typos

Signed-off-by: Lou Logan <lou@lrcd.com>
3 years agoavcodec/dvdsubdec: error on bitmaps with size 0
wm4 [Wed, 7 Jan 2015 22:57:50 +0000 (23:57 +0100)]
avcodec/dvdsubdec: error on bitmaps with size 0

Attemtping to decode them could lead to invalid writes with some fuzzed
samples.

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
3 years agoMerge commit '5a1addd7c1d8ff218ed4b84f4f02fdb83980094c'
Michael Niedermayer [Wed, 7 Jan 2015 23:04:17 +0000 (00:04 +0100)]
Merge commit '5a1addd7c1d8ff218ed4b84f4f02fdb83980094c'

* commit '5a1addd7c1d8ff218ed4b84f4f02fdb83980094c':
  xsub: Support DXSA subtitles

Conflicts:
libavcodec/xsubdec.c

See: d6f910ea47255b519e0b71c33d74c409a29ab3db
Merged-by: Michael Niedermayer <michaelni@gmx.at>
3 years agoMerge commit '01168bf1405ddbf671f1074a927b951b8777adbb'
Michael Niedermayer [Wed, 7 Jan 2015 21:48:15 +0000 (22:48 +0100)]
Merge commit '01168bf1405ddbf671f1074a927b951b8777adbb'

* commit '01168bf1405ddbf671f1074a927b951b8777adbb':
  mpeg: Remove unused field

Merged-by: Michael Niedermayer <michaelni@gmx.at>
3 years agoavformat/segment: Clear contexts after deallocation
Michael Niedermayer [Wed, 7 Jan 2015 21:29:16 +0000 (22:29 +0100)]
avformat/segment: Clear contexts after deallocation

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
3 years agoMerge commit 'b3f04657368a32a9903406395f865e230b1de348'
Michael Niedermayer [Wed, 7 Jan 2015 21:15:45 +0000 (22:15 +0100)]
Merge commit 'b3f04657368a32a9903406395f865e230b1de348'

* commit 'b3f04657368a32a9903406395f865e230b1de348':
  segment: Fix the failure paths

Conflicts:
libavformat/segment.c

Merged-by: Michael Niedermayer <michaelni@gmx.at>
3 years agoavcodec/aic: Use av_malloc_array
Michael Niedermayer [Wed, 7 Jan 2015 18:46:16 +0000 (19:46 +0100)]
avcodec/aic: Use av_malloc_array

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
3 years agoffmpeg_opt: Check for av_realloc_array() failure
Michael Niedermayer [Wed, 7 Jan 2015 17:09:52 +0000 (18:09 +0100)]
ffmpeg_opt: Check for av_realloc_array() failure

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
3 years agoffmpeg_opt: Use av_realloc_array()
Michael Niedermayer [Wed, 7 Jan 2015 16:26:39 +0000 (17:26 +0100)]
ffmpeg_opt: Use av_realloc_array()

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
3 years agoavcodec/libxvid: fix potential integer overflow
Michael Niedermayer [Wed, 7 Jan 2015 16:23:25 +0000 (17:23 +0100)]
avcodec/libxvid: fix potential integer overflow

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
3 years agoavformat/dvbsub: remove unused variable
Michael Niedermayer [Wed, 7 Jan 2015 16:20:39 +0000 (17:20 +0100)]
avformat/dvbsub: remove unused variable

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
3 years agoxsub: Support DXSA subtitles
Alexandre Colucci [Wed, 7 Jan 2015 11:18:08 +0000 (12:18 +0100)]
xsub: Support DXSA subtitles

These have a DXSA tag and contain alpha in addition to
color values for palette.

Signed-off-by: Jean-Baptiste Kempf <jb@videolan.org>
Signed-off-by: Luca Barbato <lu_zero@gentoo.org>
3 years agompeg: Remove unused field
Luca Barbato [Tue, 30 Dec 2014 22:17:17 +0000 (23:17 +0100)]
mpeg: Remove unused field

3 years agoavcodec/mpeg12: Try to fetch pts/dts from both the packet associated with the picture...
Michael Niedermayer [Wed, 7 Jan 2015 11:18:40 +0000 (12:18 +0100)]
avcodec/mpeg12: Try to fetch pts/dts from both the packet associated with the picture start code as well as earlier start codes

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
3 years agosegment: Fix the failure paths
Luca Barbato [Mon, 5 Jan 2015 09:40:41 +0000 (10:40 +0100)]
segment: Fix the failure paths

A failure in segment_end() or segment_start() would lead to freeing
a dangling pointer and in general further calls to seg_write_packet()
or to seg_write_trailer() would have the same faulty behaviour.

CC: libav-stable@libav.org
Reported-By: luodalongde@gmail.com
3 years agoavcodec/parser: add fuzzy mode to ff_fetch_timestamp()
Michael Niedermayer [Wed, 7 Jan 2015 10:52:08 +0000 (11:52 +0100)]
avcodec/parser: add fuzzy mode to ff_fetch_timestamp()

This will be needed for the following timestamp fix

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
3 years agoavcodec/allcodecs: prefer x264 over openh264 if both are available
Michael Niedermayer [Wed, 7 Jan 2015 00:15:57 +0000 (01:15 +0100)]
avcodec/allcodecs: prefer x264 over openh264 if both are available

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
3 years agoMerge commit '8a3d9ca603f4d15ecaa9ca379cbaab4ecaec8ce4'
Michael Niedermayer [Tue, 6 Jan 2015 23:48:23 +0000 (00:48 +0100)]
Merge commit '8a3d9ca603f4d15ecaa9ca379cbaab4ecaec8ce4'

* commit '8a3d9ca603f4d15ecaa9ca379cbaab4ecaec8ce4':
  libavcodec: Add an OpenH264 encoder wrapper

Conflicts:
Changelog
configure
libavcodec/version.h

Merged-by: Michael Niedermayer <michaelni@gmx.at>