ffmpeg.git
6 years agovideo_get_buffer: return ENOMEM instead of -1 on malloc failure
Michael Niedermayer [Tue, 3 Jul 2012 22:47:18 +0000 (00:47 +0200)]
video_get_buffer: return ENOMEM instead of -1 on malloc failure

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
6 years agolavc/utils: print error message on get_buffer related errors
Michael Niedermayer [Tue, 3 Jul 2012 22:46:36 +0000 (00:46 +0200)]
lavc/utils: print error message on get_buffer related errors

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
6 years agomdutils: print error message on error get_buffer related errors
Michael Niedermayer [Tue, 3 Jul 2012 22:45:37 +0000 (00:45 +0200)]
mdutils: print error message on error get_buffer related errors

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
6 years agoMerge remote-tracking branch 'qatar/master'
Michael Niedermayer [Tue, 3 Jul 2012 22:32:31 +0000 (00:32 +0200)]
Merge remote-tracking branch 'qatar/master'

* qatar/master:
  cosmetics: Consistently use C-style comments with multiple inclusion guards
  anm: fix a few Doxygen comments
  misc typo and wording fixes
  attributes: add av_noreturn
  attributes: drop pointless define guards
  configure: do not disable av_always_inline with --enable-small
  flvdec: initial stream switch support
  avplay: fix write on freed memory for rawvideo
  snow: remove a VLA used for edge emulation
  x86: lavfi: fix gradfun/yadif build with mmx/sse disabled
  snow: remove the runs[] VLA.
  snow: Check mallocs at init
  flacdec: remove redundant setting of avctx->sample_fmt

Conflicts:
ffplay.c
libavcodec/h264.c
libavcodec/snow.c
libavcodec/snow.h
libavcodec/snowdec.c
libavcodec/snowenc.c
libavformat/flvdec.c
libavutil/attributes.h
tools/patcheck

Merged-by: Michael Niedermayer <michaelni@gmx.at>
6 years agolavf/segment: rename SegmentContext.pb to list_pb
Stefano Sabatini [Tue, 17 Jan 2012 19:04:14 +0000 (20:04 +0100)]
lavf/segment: rename SegmentContext.pb to list_pb

The new name is more auto-explicative, as the pb is used for the segment
list file.

6 years agolavf/segment: add error log in case of invalid filename template
Stefano Sabatini [Tue, 17 Jan 2012 18:50:12 +0000 (19:50 +0100)]
lavf/segment: add error log in case of invalid filename template

Better rather than silently exit.

6 years agolavf/segment: fix logic for segmenting audio-only inputs
Stefano Sabatini [Sat, 14 Jan 2012 01:40:09 +0000 (02:40 +0100)]
lavf/segment: fix logic for segmenting audio-only inputs

Also add a comment for clarifying the logic.

Fix trac ticket #1290.

6 years agolavf/segment: add more information in log message in seg_write_packet()
Stefano Sabatini [Mon, 16 Jan 2012 23:15:48 +0000 (00:15 +0100)]
lavf/segment: add more information in log message in seg_write_packet()

6 years agodoc: add documentation regarding MIPS optimizations
Nedeljko Babic [Tue, 26 Jun 2012 11:13:21 +0000 (13:13 +0200)]
doc: add documentation regarding MIPS optimizations

Add doc/mips.txt document with short explanation regarding targeted
platform for MIPS optimizations and regarding MIPS copyright notice.

Signed-off-by: Nedeljko Babic <nbabic@mips.com>
Signed-off-by: Stefano Sabatini <stefasab@gmail.com>
6 years agolavf/segment: remove unused offset variable
Stefano Sabatini [Mon, 16 Jan 2012 16:58:50 +0000 (17:58 +0100)]
lavf/segment: remove unused offset variable

6 years agolavf/segment: apply misc fixes to the private options internal documentation
Stefano Sabatini [Sat, 14 Jan 2012 10:00:16 +0000 (11:00 +0100)]
lavf/segment: apply misc fixes to the private options internal documentation

Option help message tell what the option *does*, not what the set field
represents.

6 years agolavf/segment: slightly simplify fail logic in seg_write_packet()
Stefano Sabatini [Fri, 13 Jan 2012 23:19:59 +0000 (00:19 +0100)]
lavf/segment: slightly simplify fail logic in seg_write_packet()

6 years agolavf/segment: move list filename printing logic from segment_end() to segment_start()
Stefano Sabatini [Fri, 13 Jan 2012 23:16:55 +0000 (00:16 +0100)]
lavf/segment: move list filename printing logic from segment_end() to segment_start()

Allow to deal with the list file printing only in a single point, thus
simplifying logic, and allow a bit of factorization (no special case
needed when printing the first file name of the list).

6 years agoSuggest aresample filter if it was not compiled but requested.
Carl Eugen Hoyos [Tue, 3 Jul 2012 19:35:20 +0000 (21:35 +0200)]
Suggest aresample filter if it was not compiled but requested.

6 years agoavcodec_align_dimensions2: support 12 & 14 bit planar colorspaces
Michael Niedermayer [Tue, 3 Jul 2012 02:10:52 +0000 (04:10 +0200)]
avcodec_align_dimensions2: support 12 & 14 bit planar colorspaces

Reviewed-by: Jean First <jeanfirst@gmail.com>
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
6 years agoimgconvert: add planar RGB formats to pix_fmt_info
Michael Niedermayer [Tue, 3 Jul 2012 17:00:01 +0000 (19:00 +0200)]
imgconvert: add planar RGB formats to pix_fmt_info

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
6 years agoimgconvert: add yuv 9,10,12,14 bit planar YUV formats to pix_fmt_info
Michael Niedermayer [Tue, 3 Jul 2012 16:57:02 +0000 (18:57 +0200)]
imgconvert: add yuv 9,10,12,14 bit planar YUV formats to pix_fmt_info

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
6 years agolibavutil: add 12 and 14 bit planar colorspaces
Michael Niedermayer [Tue, 3 Jul 2012 02:09:28 +0000 (04:09 +0200)]
libavutil: add 12 and 14 bit planar colorspaces

Reviewed-by: Jean First <jeanfirst@gmail.com>
Reviewed-by: Paul B Mahol <onemda@gmail.com>
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
6 years agocosmetics: Consistently use C-style comments with multiple inclusion guards
Diego Biurrun [Mon, 2 Jul 2012 08:17:07 +0000 (10:17 +0200)]
cosmetics: Consistently use C-style comments with multiple inclusion guards

6 years agoanm: fix a few Doxygen comments
Diego Biurrun [Mon, 2 Jul 2012 18:40:26 +0000 (20:40 +0200)]
anm: fix a few Doxygen comments

6 years agomisc typo and wording fixes
Diego Biurrun [Wed, 13 Jun 2012 09:41:12 +0000 (11:41 +0200)]
misc typo and wording fixes

6 years agoattributes: add av_noreturn
Reinhard Tartler [Sun, 1 Jul 2012 17:38:40 +0000 (19:38 +0200)]
attributes: add av_noreturn

Also use it in the declaration of the various exit_program
implementations in avtools.

inspired by a clang-scan report.

6 years agoattributes: drop pointless define guards
Reinhard Tartler [Sun, 1 Jul 2012 18:36:03 +0000 (20:36 +0200)]
attributes: drop pointless define guards

the av_-prefixed attributes must not be defined outside of this file

6 years agoconfigure: do not disable av_always_inline with --enable-small
Mans Rullgard [Sun, 1 Jul 2012 19:21:10 +0000 (20:21 +0100)]
configure: do not disable av_always_inline with --enable-small

Currently, --enable-small turns av_always_inline into plain inline,
which is more or less ignored by the compiler.  While the intent of
this is probably to reduce code size by avoiding some inlining, it
has more far-reaching effects.

We use av_always_inline in two situations:

1. The body of a function is smaller than the call overhead.
   Instances of these are abundant in libavutil, the bswap.h
   functions being good examples.

2. The function is a template relying on constant propagation
   through inlined calls for sane code generation.  These are
   often found in motion compensation code.

Both of these types of functions should be inlined even if targeting
small code size.

Although GCC has heuristics for detecting the first of these types,
it is not always reliable, especially when the function uses inline
assembler, which is often the reason for having those functions in
the first place, so making it explicit is generally a good idea.

The size increase from inlining template-type functions is usually
much smaller than it seems due to different branches being mutually
exclusive between the different invocations.  The dead branches can,
however, only be removed after inlining and constant propagation have
been performed, which means the initial cost estimate for inlining
these is much higher than is actually the case, resulting in GCC
often making bad choices if left to its own devices.

Furthermore, the GCC inliner limits how much it allows a function to
grow due to automatic inlining of calls, and this appears to not take
call overhead into account.  When nested inlining is used, the limit
may be hit before the innermost level is reached.  In some cases, this
has prevented inlining of type 1 functions as defined above, resulting
in significant performance loss.

Signed-off-by: Mans Rullgard <mans@mansr.com>
6 years agoflvdec: initial stream switch support
Luca Barbato [Sun, 1 Jul 2012 21:01:00 +0000 (23:01 +0200)]
flvdec: initial stream switch support

Codec change midstream gets mapped to a separate stream.

6 years agoavplay: fix write on freed memory for rawvideo
Luca Barbato [Thu, 28 Jun 2012 18:55:04 +0000 (20:55 +0200)]
avplay: fix write on freed memory for rawvideo

Do not assume avpacket and the decoded frames are independent.

To be absolutely sure and not sprinkle av_free_packet around the code
the call had been placed before getting the frame and on the error path.

6 years agosnow: remove a VLA used for edge emulation
Ronald S. Bultje [Mon, 2 Jul 2012 07:39:54 +0000 (10:39 +0300)]
snow: remove a VLA used for edge emulation

Signed-off-by: Martin Storsjö <martin@martin.st>
6 years agox86: lavfi: fix gradfun/yadif build with mmx/sse disabled
Mans Rullgard [Mon, 2 Jul 2012 22:04:04 +0000 (23:04 +0100)]
x86: lavfi: fix gradfun/yadif build with mmx/sse disabled

These functions are defined conditionally so any uses need to have
preprocessor guards.

Signed-off-by: Mans Rullgard <mans@mansr.com>
6 years agojvdec: check if there is enough data
Paul B Mahol [Tue, 3 Jul 2012 11:56:55 +0000 (11:56 +0000)]
jvdec: check if there is enough data

Signed-off-by: Paul B Mahol <onemda@gmail.com>
6 years agojvdec: remove redundant check
Paul B Mahol [Tue, 3 Jul 2012 11:38:19 +0000 (11:38 +0000)]
jvdec: remove redundant check

Signed-off-by: Paul B Mahol <onemda@gmail.com>
6 years agojvdec: remove buf_size
Paul B Mahol [Tue, 3 Jul 2012 11:34:33 +0000 (11:34 +0000)]
jvdec: remove buf_size

It is same as avpkt->size.

Signed-off-by: Paul B Mahol <onemda@gmail.com>
6 years agojvdec: stop reading partial palette
Paul B Mahol [Tue, 3 Jul 2012 11:16:56 +0000 (11:16 +0000)]
jvdec: stop reading partial palette

Signed-off-by: Paul B Mahol <onemda@gmail.com>
6 years agotools: add bisect script
Michael Niedermayer [Mon, 2 Jul 2012 14:04:30 +0000 (16:04 +0200)]
tools: add bisect script

This script works like "git bisect" except that you can
specify with "bisect need ffmpeg|ffplay|ffserver|ffprobe" which tool(s)
are needed for testing a checkout

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
6 years agoyadif/x86: add prototypes for functions, make code valid C again.
Michael Niedermayer [Tue, 3 Jul 2012 10:43:06 +0000 (12:43 +0200)]
yadif/x86: add prototypes for functions, make code valid C again.

Broken by: libav (a87b17f3283aada762820f1b797eeb7a2dff6c61)
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
6 years agojvdec: check that the video_size fits in the packet.
Michael Niedermayer [Tue, 3 Jul 2012 10:32:26 +0000 (12:32 +0200)]
jvdec: check that the video_size fits in the packet.

Prevents use of out of array data and fate failure.

Found-by: durandal_1707
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
6 years agojvdec: fix memleak of jv->frames
Paul B Mahol [Tue, 3 Jul 2012 09:51:44 +0000 (09:51 +0000)]
jvdec: fix memleak of jv->frames

Signed-off-by: Paul B Mahol <onemda@gmail.com>
6 years agosnow: remove the runs[] VLA.
Ronald S. Bultje [Sat, 30 Jun 2012 17:34:39 +0000 (10:34 -0700)]
snow: remove the runs[] VLA.

Signed-off-by: Martin Storsjö <martin@martin.st>
6 years agosnow: Check mallocs at init
Martin Storsjö [Mon, 2 Jul 2012 07:39:25 +0000 (10:39 +0300)]
snow: Check mallocs at init

Signed-off-by: Martin Storsjö <martin@martin.st>
6 years agojvdemux: correct size for truncated packets
Michael Niedermayer [Tue, 3 Jul 2012 03:24:26 +0000 (05:24 +0200)]
jvdemux: correct size for truncated packets

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
6 years agofate: add test for Bitmap Brothers JV demuxer
Paul B Mahol [Tue, 3 Jul 2012 00:52:06 +0000 (00:52 +0000)]
fate: add test for Bitmap Brothers JV demuxer

Signed-off-by: Paul B Mahol <onemda@gmail.com>
6 years agofate: add test for Bitmap Brothers JV video
Paul B Mahol [Tue, 3 Jul 2012 00:44:55 +0000 (00:44 +0000)]
fate: add test for Bitmap Brothers JV video

Signed-off-by: Paul B Mahol <onemda@gmail.com>
6 years agoh264pred: assert that depth is supported
Michael Niedermayer [Tue, 3 Jul 2012 01:21:24 +0000 (03:21 +0200)]
h264pred: assert that depth is supported

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
6 years agoh264dsp: assert that depth is supported
Michael Niedermayer [Tue, 3 Jul 2012 01:20:51 +0000 (03:20 +0200)]
h264dsp: assert that depth is supported

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
6 years agodsputil: assert that depth is supported
Michael Niedermayer [Tue, 3 Jul 2012 01:19:55 +0000 (03:19 +0200)]
dsputil: assert that depth is supported

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
6 years agolavfi: remove vsrc_buffer.h API
Stefano Sabatini [Mon, 25 Jun 2012 22:41:33 +0000 (00:41 +0200)]
lavfi: remove vsrc_buffer.h API

The vsrc_buffer.h is not installed since commit 0b3b95813576, so there is
no point into keeping it around.

The buffersrc.h API, which is more powerful, should be used instead.

6 years agolavc/rawdec: add assertion check in raw_decode()
Stefano Sabatini [Mon, 25 Jun 2012 16:56:46 +0000 (18:56 +0200)]
lavc/rawdec: add assertion check in raw_decode()

Check on an implicit assumption done on the number of coded bits for
paletted rawvideo with coded bits == 2.

6 years agolavc/rawdec: prefer constant AVPALETTE_SIZE over 256*4
Stefano Sabatini [Mon, 25 Jun 2012 15:59:01 +0000 (17:59 +0200)]
lavc/rawdec: prefer constant AVPALETTE_SIZE over 256*4

Improve readability.

6 years agoh264: sps: handle more profiles
Michael Niedermayer [Mon, 2 Jul 2012 22:40:26 +0000 (00:40 +0200)]
h264: sps: handle more profiles

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
6 years agoh264: add support for constraint_set4_flag / constraint_set5_flag
Michael Niedermayer [Mon, 2 Jul 2012 22:36:08 +0000 (00:36 +0200)]
h264: add support for constraint_set4_flag / constraint_set5_flag

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
6 years agox86/gradfun: fix compilation failure on open solaris
Michael Niedermayer [Mon, 2 Jul 2012 21:49:54 +0000 (23:49 +0200)]
x86/gradfun: fix compilation failure on open solaris

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
6 years agoRevert "alsdec: remove dead assignments"
Michael Niedermayer [Mon, 2 Jul 2012 21:43:06 +0000 (23:43 +0200)]
Revert "alsdec: remove dead assignments"

This reverts commit 4ca6d206d1b5beea42c4290d2ee801aaf5cd31f0.

The assignment is not dead, this should fix fate failures on BSD

6 years agohas_decode_delay_been_guessed: tighten up the heuristic.
Michael Niedermayer [Mon, 2 Jul 2012 21:23:33 +0000 (23:23 +0200)]
has_decode_delay_been_guessed: tighten up the heuristic.

This adds the minimum delay needed with the current decoder to
recognize the reorder buffer size for the reference bitstreams.

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
6 years agohas_decode_delay_been_guessed: skip guessing when sps.num_reorder_frames is available
Michael Niedermayer [Mon, 2 Jul 2012 21:18:32 +0000 (23:18 +0200)]
has_decode_delay_been_guessed: skip guessing when sps.num_reorder_frames is available

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
6 years agofate: drop strict 1 for MR4_TANDBERG_C.264 and MR5_TANDBERG_C.264
Michael Niedermayer [Mon, 2 Jul 2012 21:18:04 +0000 (23:18 +0200)]
fate: drop strict 1 for MR4_TANDBERG_C.264 and MR5_TANDBERG_C.264

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
6 years agoh264: add avpriv_h264_has_num_reorder_frames()
Michael Niedermayer [Mon, 2 Jul 2012 21:16:59 +0000 (23:16 +0200)]
h264: add avpriv_h264_has_num_reorder_frames()

This function exports the exact sps.num_reorder_frames value

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
6 years agoflacdec: remove redundant setting of avctx->sample_fmt
Mans Rullgard [Mon, 2 Jul 2012 12:49:13 +0000 (13:49 +0100)]
flacdec: remove redundant setting of avctx->sample_fmt

Signed-off-by: Mans Rullgard <mans@mansr.com>
6 years agohas_decode_delay_been_guessed: improve heuristic
Michael Niedermayer [Mon, 2 Jul 2012 20:59:42 +0000 (22:59 +0200)]
has_decode_delay_been_guessed: improve heuristic

This allows MR4_TANDBERG_C.264 and MR5_TANDBERG_C.264 to be decoded without -strict 1

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
6 years agodoc/developer: refer to av_malloc() instead of malloc()
Michael Niedermayer [Mon, 2 Jul 2012 19:24:47 +0000 (21:24 +0200)]
doc/developer: refer to av_malloc() instead of malloc()

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
6 years agoMerge remote-tracking branch 'qatar/master'
Michael Niedermayer [Mon, 2 Jul 2012 19:19:41 +0000 (21:19 +0200)]
Merge remote-tracking branch 'qatar/master'

* qatar/master:
  asfdec: read attached pictures.
  apetag: reindent
  apetag: export attached covers as video streams.
  apetag: fix the amount of data read from binary tags.
  apetag: make sure avio_get_str() doesn't read more than it should.
  mov: read itunes cover art.
  snow: remove VLA in mc_block()
  intfloat: Don't use designated initializers in the public headers
  snow: remove a VLA.
  doc: Remind devs to check return values, especially for malloc() et al
  MS ATC Screen (aka MSS3) decoder
  vf_yadif: move x86 init code to x86/yadif.c
  vf_gradfun: move x86 init code to x86/gradfun.c
  roqvideo: Remove a totally unused dspcontext
  smacker: remove some unused code
  dsicin: remove dead assignment
  aacdec: remove dead assignment
  rl2: remove dead assignment
  proresenc: make a variable local to the loop where it is used
  alsdec: remove dead assignments

Conflicts:
Changelog
doc/developer.texi
libavcodec/allcodecs.c
libavcodec/avcodec.h
libavcodec/version.h
libavfilter/gradfun.h
libavfilter/x86/gradfun.c

Merged-by: Michael Niedermayer <michaelni@gmx.at>
6 years agomem: heap memory poisoning.
Clément Bœsch [Mon, 2 Jul 2012 17:31:35 +0000 (19:31 +0200)]
mem: heap memory poisoning.

Enable it by default with FATE.
limitation: not random, and not supported with realloc.

6 years agovc1dsp: use av_assert2
Michael Niedermayer [Mon, 2 Jul 2012 18:52:36 +0000 (20:52 +0200)]
vc1dsp: use av_assert2

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
6 years agoresample2: use av_assert()
Michael Niedermayer [Mon, 2 Jul 2012 18:52:22 +0000 (20:52 +0200)]
resample2: use av_assert()

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
6 years agoswr: fix warning: passing argument 2 of s->mix_any_f from incompatible pointer type
Michael Niedermayer [Mon, 2 Jul 2012 15:33:27 +0000 (17:33 +0200)]
swr: fix warning: passing argument 2 of s->mix_any_f from incompatible pointer type

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
6 years agoswr: fix warning: passing argument 1 of s->mix_any_f from incompatible pointer type
Michael Niedermayer [Mon, 2 Jul 2012 15:32:23 +0000 (17:32 +0200)]
swr: fix warning: passing argument 1 of s->mix_any_f from incompatible pointer type

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
6 years agoswr: fix warning: passing argument 2 of ctx->simd_f from incompatible pointer type
Michael Niedermayer [Mon, 2 Jul 2012 15:31:16 +0000 (17:31 +0200)]
swr: fix warning: passing argument 2 of ctx->simd_f from incompatible pointer type

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
6 years agoswr: fix mix* related function pointer warnings
Michael Niedermayer [Mon, 2 Jul 2012 15:23:22 +0000 (17:23 +0200)]
swr: fix mix* related function pointer warnings

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
6 years agoasfdec: read attached pictures.
Anton Khirnov [Thu, 21 Jun 2012 20:17:43 +0000 (22:17 +0200)]
asfdec: read attached pictures.

6 years agoapetag: reindent
Anton Khirnov [Thu, 21 Jun 2012 17:02:40 +0000 (19:02 +0200)]
apetag: reindent

6 years agoapetag: export attached covers as video streams.
Anton Khirnov [Tue, 26 Jun 2012 16:58:39 +0000 (18:58 +0200)]
apetag: export attached covers as video streams.

6 years agoapetag: fix the amount of data read from binary tags.
Anton Khirnov [Tue, 26 Jun 2012 16:54:00 +0000 (18:54 +0200)]
apetag: fix the amount of data read from binary tags.

Substract the filename size from the data size.

6 years agoapetag: make sure avio_get_str() doesn't read more than it should.
Anton Khirnov [Tue, 26 Jun 2012 16:49:04 +0000 (18:49 +0200)]
apetag: make sure avio_get_str() doesn't read more than it should.

6 years agomov: read itunes cover art.
Anton Khirnov [Thu, 21 Jun 2012 16:24:27 +0000 (18:24 +0200)]
mov: read itunes cover art.

6 years agolavf/wtvdec: add missing { } around if.
Clément Bœsch [Mon, 2 Jul 2012 06:17:40 +0000 (08:17 +0200)]
lavf/wtvdec: add missing { } around if.

This should fix the current failures spotted by FATE.

6 years agosnow: remove VLA in mc_block()
Mans Rullgard [Sun, 1 Jul 2012 14:39:22 +0000 (15:39 +0100)]
snow: remove VLA in mc_block()

Signed-off-by: Mans Rullgard <mans@mansr.com>
6 years agointfloat: Don't use designated initializers in the public headers
Ronald S. Bultje [Mon, 2 Jul 2012 07:22:30 +0000 (10:22 +0300)]
intfloat: Don't use designated initializers in the public headers

intfloat.h is a public header, and is now (since a1245d5ca) included
by mathematics.h, which many external callers include.

This fixes building third party applications that include
mathematics.h in a language that doesn't support designated
initalizers.

Signed-off-by: Martin Storsjö <martin@martin.st>
6 years agowmaenc: dont mess with the bitrate.
Michael Niedermayer [Mon, 2 Jul 2012 10:47:08 +0000 (12:47 +0200)]
wmaenc: dont mess with the bitrate.

The bitrate is not writeable by an encoder.
Fixes generation of invalid wma

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
6 years agosnow: remove a VLA.
Ronald S. Bultje [Fri, 15 Jun 2012 16:59:57 +0000 (09:59 -0700)]
snow: remove a VLA.

Signed-off-by: Martin Storsjö <martin@martin.st>
6 years agodoc: Remind devs to check return values, especially for malloc() et al
Diego Biurrun [Sat, 30 Jun 2012 13:35:57 +0000 (15:35 +0200)]
doc: Remind devs to check return values, especially for malloc() et al

6 years agoMS ATC Screen (aka MSS3) decoder
Kostya Shishkov [Thu, 28 Jun 2012 19:18:23 +0000 (21:18 +0200)]
MS ATC Screen (aka MSS3) decoder

6 years agowtvdec: return error when filetime_to_iso8601/crazytime_to_iso8601 conversion fails
Peter Ross [Mon, 2 Jul 2012 00:28:31 +0000 (10:28 +1000)]
wtvdec: return error when filetime_to_iso8601/crazytime_to_iso8601 conversion fails

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
6 years agovf_yadif: move x86 init code to x86/yadif.c
Mans Rullgard [Sun, 1 Jul 2012 12:08:17 +0000 (13:08 +0100)]
vf_yadif: move x86 init code to x86/yadif.c

Signed-off-by: Mans Rullgard <mans@mansr.com>
6 years agovf_gradfun: move x86 init code to x86/gradfun.c
Mans Rullgard [Sun, 1 Jul 2012 11:51:30 +0000 (12:51 +0100)]
vf_gradfun: move x86 init code to x86/gradfun.c

Signed-off-by: Mans Rullgard <mans@mansr.com>
6 years agoconfigure: make fast_unaligned configureable
Michael Niedermayer [Sun, 1 Jul 2012 23:58:30 +0000 (01:58 +0200)]
configure: make fast_unaligned configureable

Fixes Ticket1481

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
6 years agoroqvideo: Remove a totally unused dspcontext
Martin Storsjö [Sun, 1 Jul 2012 20:46:28 +0000 (23:46 +0300)]
roqvideo: Remove a totally unused dspcontext

Signed-off-by: Martin Storsjö <martin@martin.st>
6 years agoMerge remote-tracking branch 'qatar/master'
Michael Niedermayer [Sun, 1 Jul 2012 20:12:38 +0000 (22:12 +0200)]
Merge remote-tracking branch 'qatar/master'

* qatar/master:
  opt/eval: Include mathematics.h for NAN/INFINITY
  mathematics: Don't use division by zero in NAN/INFINITY macros
  wma: Lower the maximum number of channels to 2
  x86: cpu: clean up check for cpuid instruction support
  ARM: generate position independent code to access data symbols

Conflicts:
libavutil/opt.c

Merged-by: Michael Niedermayer <michaelni@gmx.at>
6 years agomov: add workaround for incorrect 0 time point.
Michael Niedermayer [Sun, 1 Jul 2012 19:41:06 +0000 (21:41 +0200)]
mov: add workaround for incorrect 0 time point.

Fixes Ticket1471

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
6 years agosmacker: remove some unused code
Mans Rullgard [Sun, 1 Jul 2012 13:56:16 +0000 (14:56 +0100)]
smacker: remove some unused code

This removes some code apparently left over from vlc reader
debugging.

Signed-off-by: Mans Rullgard <mans@mansr.com>
6 years agodsicin: remove dead assignment
Mans Rullgard [Sun, 1 Jul 2012 13:28:50 +0000 (14:28 +0100)]
dsicin: remove dead assignment

Signed-off-by: Mans Rullgard <mans@mansr.com>
6 years agoaacdec: remove dead assignment
Mans Rullgard [Sun, 1 Jul 2012 12:50:09 +0000 (13:50 +0100)]
aacdec: remove dead assignment

Signed-off-by: Mans Rullgard <mans@mansr.com>
6 years agorl2: remove dead assignment
Mans Rullgard [Sun, 1 Jul 2012 12:43:44 +0000 (13:43 +0100)]
rl2: remove dead assignment

Signed-off-by: Mans Rullgard <mans@mansr.com>
6 years agoproresenc: make a variable local to the loop where it is used
Mans Rullgard [Sun, 1 Jul 2012 12:38:12 +0000 (13:38 +0100)]
proresenc: make a variable local to the loop where it is used

This moves the mbs_per_slice declaration inside the only loop
where it is used.  Fixes a dead assignment.

Signed-off-by: Mans Rullgard <mans@mansr.com>
6 years agoalsdec: remove dead assignments
Mans Rullgard [Sun, 1 Jul 2012 12:36:30 +0000 (13:36 +0100)]
alsdec: remove dead assignments

Signed-off-by: Mans Rullgard <mans@mansr.com>
6 years agoRELEASE: update, seem this has been forgotten
Michael Niedermayer [Sun, 1 Jul 2012 19:21:07 +0000 (21:21 +0200)]
RELEASE: update, seem this has been forgotten

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
6 years agolavf/aiffdec: handle ID3 chunk
Matthieu Bouron [Sat, 30 Jun 2012 17:05:05 +0000 (19:05 +0200)]
lavf/aiffdec: handle ID3 chunk

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
6 years agoh264: clear the ref lists when the reference are cleared.
Michael Niedermayer [Sun, 1 Jul 2012 18:29:52 +0000 (20:29 +0200)]
h264: clear the ref lists when the reference are cleared.

Fixes reading of freed arrays (Ticket1498)

Found-by: Piotr Bandurski <ami_stuff@o2.pl>
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
6 years agoh264: check log2_max_poc_lsb for validity
Michael Niedermayer [Sun, 1 Jul 2012 17:25:17 +0000 (19:25 +0200)]
h264: check log2_max_poc_lsb for validity

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
6 years agolavf/segment: rename variable "size" to "list_size"
Stefano Sabatini [Fri, 13 Jan 2012 23:01:05 +0000 (00:01 +0100)]
lavf/segment: rename variable "size" to "list_size"

The new name is more meaningful/less confusing.

6 years agolavf/segment: pass the top level chained muxer format context to segment_end()
Stefano Sabatini [Fri, 13 Jan 2012 22:24:13 +0000 (23:24 +0100)]
lavf/segment: pass the top level chained muxer format context to segment_end()

Consistent with segment_start() and less confusing.

6 years agoopt/eval: Include mathematics.h for NAN/INFINITY
Martin Storsjö [Sat, 30 Jun 2012 15:49:33 +0000 (18:49 +0300)]
opt/eval: Include mathematics.h for NAN/INFINITY

These files use NAN/INFINITY but didn't include mathematics.h to get
the fallback definitions if the system lacks the macros.

Signed-off-by: Martin Storsjö <martin@martin.st>
6 years agomathematics: Don't use division by zero in NAN/INFINITY macros
Ronald S. Bultje [Fri, 22 Jun 2012 10:05:21 +0000 (13:05 +0300)]
mathematics: Don't use division by zero in NAN/INFINITY macros

Some compilers, MSVC among them, don't recognize the divisions by
zero as meaning infinity/nan.

These macros should, according to the standard, expand to constant
expressions, but this shouldn't matter for our usage.

Signed-off-by: Martin Storsjö <martin@martin.st>