]> git.sesse.net Git - ffmpeg/log
ffmpeg
11 years agodeprecate av_parse_cpu_flags
Michael Niedermayer [Thu, 16 Aug 2012 19:30:10 +0000 (21:30 +0200)]
deprecate av_parse_cpu_flags

This function is problematic in several ways, its also quite
unpredictable which flags it ends up turning on

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
11 years agoav_parse_cpu_caps: add "mmxext" as alias for mmx2
Michael Niedermayer [Thu, 16 Aug 2012 19:28:31 +0000 (21:28 +0200)]
av_parse_cpu_caps: add "mmxext" as alias for mmx2

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
11 years agofft-test: switch to new cpu flags API
Michael Niedermayer [Thu, 16 Aug 2012 19:28:05 +0000 (21:28 +0200)]
fft-test: switch to new cpu flags API

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
11 years agolavfi: add edgedetect filter.
Clément Bœsch [Thu, 26 Jul 2012 17:45:53 +0000 (19:45 +0200)]
lavfi: add edgedetect filter.

11 years agolavfi/movie: extend a doxygen comment.
Nicolas George [Thu, 16 Aug 2012 16:17:29 +0000 (18:17 +0200)]
lavfi/movie: extend a doxygen comment.

11 years agolibswscale: fix #endif comments in rgb2rgb_template.c
Giorgio Vazzana [Thu, 16 Aug 2012 12:35:41 +0000 (14:35 +0200)]
libswscale: fix #endif comments in rgb2rgb_template.c

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
11 years agolavfi/movie: set pkt->stream_index for flushing.
Nicolas George [Tue, 14 Aug 2012 09:08:48 +0000 (11:08 +0200)]
lavfi/movie: set pkt->stream_index for flushing.

Otherwise, the value of stream_index is kept from the last packet
read, which is not necessarily the stream that needs flushing.

11 years agovc1dsp_mmx: remove libavutil/internal.h include
Michael Niedermayer [Thu, 16 Aug 2012 15:29:29 +0000 (17:29 +0200)]
vc1dsp_mmx: remove libavutil/internal.h include

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
11 years agosimple_idct_mmx: remove libavutil/internal.h include
Michael Niedermayer [Thu, 16 Aug 2012 15:28:57 +0000 (17:28 +0200)]
simple_idct_mmx: remove libavutil/internal.h include

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
11 years agox86/motion_est_mmx: remove libavutil/internal.h include
Michael Niedermayer [Thu, 16 Aug 2012 15:28:37 +0000 (17:28 +0200)]
x86/motion_est_mmx: remove libavutil/internal.h include

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
11 years agox86/mlpdsp: remove libavutil/internal.h include
Michael Niedermayer [Thu, 16 Aug 2012 15:28:13 +0000 (17:28 +0200)]
x86/mlpdsp: remove libavutil/internal.h include

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
11 years agoyadif: remove libavutil/internal.h include
Michael Niedermayer [Thu, 16 Aug 2012 15:27:55 +0000 (17:27 +0200)]
yadif: remove libavutil/internal.h include

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
11 years agolpc_mmx: remove libavutil/internal.h include
Michael Niedermayer [Thu, 16 Aug 2012 15:26:41 +0000 (17:26 +0200)]
lpc_mmx: remove libavutil/internal.h include

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
11 years agoidct_sse2_xvid: remove libavutil/internal.h include
Michael Niedermayer [Thu, 16 Aug 2012 15:26:06 +0000 (17:26 +0200)]
idct_sse2_xvid: remove libavutil/internal.h include

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
11 years agolibvpxenc: check for odd RC parameter combinations that could crash
Michael Niedermayer [Thu, 16 Aug 2012 14:59:42 +0000 (16:59 +0200)]
libvpxenc: check for odd RC parameter combinations that could crash

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
11 years agolibvpxenc: fix division by zero
Michael Niedermayer [Thu, 16 Aug 2012 14:58:59 +0000 (16:58 +0200)]
libvpxenc: fix division by zero

Reported-by: thresh
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
11 years agoMerge remote-tracking branch 'qatar/master'
Michael Niedermayer [Thu, 16 Aug 2012 14:12:45 +0000 (16:12 +0200)]
Merge remote-tracking branch 'qatar/master'

* qatar/master:
  Fix even more missing includes after the common.h removal
  build: Factor out rangecoder dependencies to CONFIG_RANGECODER
  build: Factor out error resilience dependencies to CONFIG_ERROR_RESILIENCE
  x86: avcodec: Consistently name all init files
  Add more missing includes after removing the implicit common.h
  Add some more missing includes after removing the implicit common.h
  Don't include common.h from avutil.h
  rtmp: Automatically compute the hash for SWFVerification

Conflicts:
configure
doc/APIchanges
doc/examples/decoding_encoding.c
libavcodec/Makefile
libavcodec/assdec.c
libavcodec/audio_frame_queue.c
libavcodec/avpacket.c
libavcodec/dv_profile.c
libavcodec/dwt.c
libavcodec/libtheoraenc.c
libavcodec/rawdec.c
libavcodec/rv40dsp.c
libavcodec/tiff.c
libavcodec/tiffenc.c
libavcodec/v210dec.h
libavcodec/vc1dsp.c
libavcodec/x86/Makefile
libavfilter/asrc_anullsrc.c
libavfilter/avfilter.c
libavfilter/buffer.c
libavfilter/formats.c
libavfilter/vf_ass.c
libavfilter/vf_drawtext.c
libavfilter/vf_fade.c
libavfilter/vf_select.c
libavfilter/video.c
libavfilter/vsrc_testsrc.c
libavformat/version.h
libavutil/audioconvert.c
libavutil/error.h
libavutil/version.h

Merged-by: Michael Niedermayer <michaelni@gmx.at>
11 years agolavfi/hue: add verbose debug message showing initial parameters
Stefano Sabatini [Thu, 16 Aug 2012 12:57:56 +0000 (14:57 +0200)]
lavfi/hue: add verbose debug message showing initial parameters

11 years agolavfi/hue: reindent after previous commits
Stefano Sabatini [Thu, 16 Aug 2012 12:51:33 +0000 (14:51 +0200)]
lavfi/hue: reindent after previous commits

11 years agolavfi/hue: apply misc fixes to default values setting
Stefano Sabatini [Thu, 16 Aug 2012 12:48:54 +0000 (14:48 +0200)]
lavfi/hue: apply misc fixes to default values setting

In particular: signal error in case of bogus h:s values.

11 years agolavfi/hue: add named options support
Jérémy Tran [Thu, 16 Aug 2012 07:15:58 +0000 (09:15 +0200)]
lavfi/hue: add named options support

Old syntax has been kept for compatibility reasons.

Signed-off-by: Stefano Sabatini <stefasab@gmail.com>
11 years agolavfi/mp: remove hue wrapped filter
Stefano Sabatini [Tue, 14 Aug 2012 19:34:01 +0000 (21:34 +0200)]
lavfi/mp: remove hue wrapped filter

hue was integrated as a native libavfilter filter.

11 years agoFix even more missing includes after the common.h removal
Martin Storsjö [Thu, 16 Aug 2012 11:02:24 +0000 (14:02 +0300)]
Fix even more missing includes after the common.h removal

Signed-off-by: Martin Storsjö <martin@martin.st>
11 years agobuild: Factor out rangecoder dependencies to CONFIG_RANGECODER
Diego Biurrun [Mon, 13 Aug 2012 17:16:06 +0000 (19:16 +0200)]
build: Factor out rangecoder dependencies to CONFIG_RANGECODER

A new hidden config variable is added for the codecs that depend on
the rangecoder parts.

11 years agobuild: Factor out error resilience dependencies to CONFIG_ERROR_RESILIENCE
Diego Biurrun [Mon, 13 Aug 2012 17:13:32 +0000 (19:13 +0200)]
build: Factor out error resilience dependencies to CONFIG_ERROR_RESILIENCE

A new hidden config variable is added for the codecs that depend on
the error resilience parts.

11 years agox86: avcodec: Consistently name all init files
Diego Biurrun [Sat, 11 Aug 2012 21:07:27 +0000 (23:07 +0200)]
x86: avcodec: Consistently name all init files

11 years agoSupport reading 16-channel lxf files.
Carl Eugen Hoyos [Thu, 16 Aug 2012 08:20:25 +0000 (10:20 +0200)]
Support reading 16-channel lxf files.

Fixes ticket #1608.

Reported, analyzed and tested by Gabriel Gerard.

11 years agoAdd more missing includes after removing the implicit common.h
Martin Storsjö [Thu, 16 Aug 2012 07:22:31 +0000 (10:22 +0300)]
Add more missing includes after removing the implicit common.h

Signed-off-by: Martin Storsjö <martin@martin.st>
11 years agomovtextdec: Don't emit errors for normal duration-end packets.
Philip Langdale [Sun, 12 Aug 2012 21:16:35 +0000 (14:16 -0700)]
movtextdec: Don't emit errors for normal duration-end packets.

The logic here was off. If the packet size is exactly two, then
it's a well-formed empty subtitle, used to mark the end of the
duration of the previous subtitle.

Signed-off-by: Philip Langdale <philipl@overt.org>
11 years agosrtenc: Add timing-less "subrip" encoder.
Philip Langdale [Sun, 12 Aug 2012 21:18:35 +0000 (14:18 -0700)]
srtenc: Add timing-less "subrip" encoder.

Unsurprisingly, if a timing-less subrip decoder is desireable, an
encoder is as well. With this in place, we can move on to remove
the use of the old encoder/decoder with embedded timing and move
all timing handling the (de)muxer where they belong.

Signed-off-by: Philip Langdale <philipl@overt.org>
11 years agosrtdec: Add timing-less "subrip" decoder.
Philip Langdale [Sun, 12 Aug 2012 03:27:51 +0000 (20:27 -0700)]
srtdec: Add timing-less "subrip" decoder.

After various discussions, we concluded that, amongst other things,
it made sense to have a separate subrip decoder that did not use
in-band timing information, and rather relied on the ffmpeg level
timing.

As this is 90% the same as the existing srt decoder, it's implemented
in the same file.

Signed-off-by: Philip Langdale <philipl@overt.org>
11 years agolavf: minor bump for avformat_queue_attached_pictures()
Michael Niedermayer [Thu, 16 Aug 2012 02:57:08 +0000 (04:57 +0200)]
lavf: minor bump for avformat_queue_attached_pictures()

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
11 years agoLICENSE: correct incorrect claims on *GPL incompatibility
Michael Niedermayer [Mon, 13 Aug 2012 16:45:33 +0000 (18:45 +0200)]
LICENSE: correct incorrect claims on *GPL incompatibility

There are currently no statements from any person qualified in the art
of law about the LGPL compatibility of the libfaac license and others.
Furthermore their is no consensus about their compatibility amongth
people not qualified in the art.

Also of interrest may be that ubuntu distributes and links libfaac
to LGPL code. And the ubuntu technical comittee decision about libfaac
https://lists.ubuntu.com/archives/technical-board/2011-February/000703.html

Comments and other viewpoints, especially if i have missed something
are very welcome!

Reviewed-by: Michael Bradshaw <mbradshaw@sorensonmedia.com>
Reviewed-by: Reimar Döffinger <Reimar.Doeffinger@gmx.de>
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
11 years agoffplay: reque attached pictures on channel changes.
Michael Niedermayer [Tue, 14 Aug 2012 00:02:08 +0000 (02:02 +0200)]
ffplay: reque attached pictures on channel changes.

Fixes Ticket1473

Reviewed-by: Marton Balint <cus@passwd.hu>
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
11 years agoavformat: export queue_attached_pictures
Michael Niedermayer [Tue, 14 Aug 2012 00:01:38 +0000 (02:01 +0200)]
avformat: export queue_attached_pictures

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
11 years agodv: fix null ptr dereference
Michael Niedermayer [Thu, 16 Aug 2012 02:25:07 +0000 (04:25 +0200)]
dv: fix null ptr dereference

Fixes Ticket1640

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
11 years agosp5xdec: fix off by 1 error causing a crash
Michael Niedermayer [Thu, 16 Aug 2012 01:15:14 +0000 (03:15 +0200)]
sp5xdec: fix off by 1 error causing a crash

Fixes Ticket1633

Found-by: Piotr Bandurski <ami_stuff@o2.pl>
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
11 years agoav_get_audio_frame_duration: fix ra144
Michael Niedermayer [Thu, 16 Aug 2012 00:57:11 +0000 (02:57 +0200)]
av_get_audio_frame_duration: fix ra144

Fixes Ticket1612

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
11 years agosnowdec: add 2 av_asserts to check run validity
Michael Niedermayer [Wed, 15 Aug 2012 23:35:10 +0000 (01:35 +0200)]
snowdec: add 2 av_asserts to check run validity

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
11 years agosnowdec: check log in get_symbol2()
Michael Niedermayer [Wed, 15 Aug 2012 23:31:19 +0000 (01:31 +0200)]
snowdec: check log in get_symbol2()

Fixes Ticket1635

Found-by: Piotr Bandurski <ami_stuff@o2.pl>
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
11 years agoAdd some more missing includes after removing the implicit common.h
Martin Storsjö [Wed, 15 Aug 2012 20:27:52 +0000 (23:27 +0300)]
Add some more missing includes after removing the implicit common.h

Signed-off-by: Martin Storsjö <martin@martin.st>
11 years agompegvideo: dont call draw edges on lowres
Michael Niedermayer [Wed, 15 Aug 2012 20:33:55 +0000 (22:33 +0200)]
mpegvideo: dont call draw edges on lowres

this crashes otherwise, and can happen from try_decode_frame() in the case of decoding errors
Fixes Ticket1602

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
11 years agoh263penc: fix multitheraded encoding
Michael Niedermayer [Wed, 15 Aug 2012 20:14:24 +0000 (22:14 +0200)]
h263penc: fix multitheraded encoding

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
11 years agompegvideo_enc: reset mb_x/y before writing the headers
Michael Niedermayer [Wed, 15 Aug 2012 20:09:56 +0000 (22:09 +0200)]
mpegvideo_enc: reset mb_x/y before writing the headers

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
11 years agomotion_est: switch some asserts to av_assert
Michael Niedermayer [Wed, 15 Aug 2012 19:39:53 +0000 (21:39 +0200)]
motion_est: switch some asserts to av_assert

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
11 years agoDon't include common.h from avutil.h
Martin Storsjö [Mon, 6 Aug 2012 13:49:32 +0000 (16:49 +0300)]
Don't include common.h from avutil.h

Signed-off-by: Martin Storsjö <martin@martin.st>
11 years agortmp: Automatically compute the hash for SWFVerification
Samuel Pitoiset [Wed, 15 Aug 2012 14:11:50 +0000 (16:11 +0200)]
rtmp: Automatically compute the hash for SWFVerification

Signed-off-by: Martin Storsjö <martin@martin.st>
11 years agoMerge remote-tracking branch 'qatar/master'
Michael Niedermayer [Wed, 15 Aug 2012 13:41:01 +0000 (15:41 +0200)]
Merge remote-tracking branch 'qatar/master'

* qatar/master:
  rtmp: Add support for SWFVerification
  api-example: use new video encoding API.
  x86: avcodec: Appropriately name files containing only init functions
  mpegvideo_mmx_template: drop some commented-out cruft
  libavresample: add mix level normalization option
  w32pthreads: Add missing #includes to make header compile standalone
  rtmp: Gracefully ignore _checkbw errors by tracking them
  rtmp: Do not send _checkbw calls as notifications
  prores: interlaced ProRes encoding

Conflicts:
doc/examples/decoding_encoding.c
libavcodec/proresenc_kostya.c
libavcodec/w32pthreads.h
libavcodec/x86/Makefile
libavformat/version.h

Merged-by: Michael Niedermayer <michaelni@gmx.at>
11 years agortmp: Add support for SWFVerification
Samuel Pitoiset [Mon, 13 Aug 2012 15:05:00 +0000 (17:05 +0200)]
rtmp: Add support for SWFVerification

Specifies how the server verifies client SWF files before allowing the
files to connect to an application. Verifying SWF files is a security
measure that prevents someone from creating their own SWF files that can
attempt to stream your resources.

Signed-off-by: Martin Storsjö <martin@martin.st>
11 years agoapi-example: use new video encoding API.
Anton Khirnov [Tue, 31 Jul 2012 14:35:18 +0000 (16:35 +0200)]
api-example: use new video encoding API.

11 years agomsmpeg4v2: initialize mb_type array
Michael Niedermayer [Wed, 15 Aug 2012 03:29:28 +0000 (05:29 +0200)]
msmpeg4v2: initialize mb_type array

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
11 years agompegvideo: fix MB/MV vissualization on videos that are not mod 16 == 0
Michael Niedermayer [Wed, 15 Aug 2012 03:03:37 +0000 (05:03 +0200)]
mpegvideo: fix MB/MV vissualization on videos that are not mod 16 == 0

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
11 years agox86: avcodec: Appropriately name files containing only init functions
Diego Biurrun [Sat, 11 Aug 2012 20:45:53 +0000 (22:45 +0200)]
x86: avcodec: Appropriately name files containing only init functions

11 years agompegvideo_mmx_template: drop some commented-out cruft
Diego Biurrun [Mon, 13 Aug 2012 10:28:59 +0000 (12:28 +0200)]
mpegvideo_mmx_template: drop some commented-out cruft

11 years agomovdec: Try to recover from overreading atoms
Michael Niedermayer [Wed, 15 Aug 2012 01:21:19 +0000 (03:21 +0200)]
movdec: Try to recover from overreading atoms

Fixes Ticket1596

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
11 years agopafdec: fix wrong check for input buffer size.
Michael Niedermayer [Tue, 14 Aug 2012 23:58:41 +0000 (01:58 +0200)]
pafdec: fix wrong check for input buffer size.

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
11 years agopafdec: fix wrong palette index check.
Michael Niedermayer [Tue, 14 Aug 2012 23:57:45 +0000 (01:57 +0200)]
pafdec: fix wrong palette index check.

Fixes Ticket1641

Found-by: Piotr Bandurski <ami_stuff@o2.pl>
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
11 years agolibavresample: add mix level normalization option
John Stebbins [Thu, 2 Aug 2012 18:23:06 +0000 (11:23 -0700)]
libavresample: add mix level normalization option

Provides an option to disable mix level normalization

Signed-off-by: Diego Biurrun <diego@biurrun.de>
11 years agow32pthreads: Add missing #includes to make header compile standalone
Diego Biurrun [Tue, 14 Aug 2012 21:17:20 +0000 (23:17 +0200)]
w32pthreads: Add missing #includes to make header compile standalone

11 years agortmp: Gracefully ignore _checkbw errors by tracking them
Samuel Pitoiset [Sat, 11 Aug 2012 10:42:17 +0000 (12:42 +0200)]
rtmp: Gracefully ignore _checkbw errors by tracking them

Signed-off-by: Martin Storsjö <martin@martin.st>
11 years agortmp: Do not send _checkbw calls as notifications
Samuel Pitoiset [Sat, 11 Aug 2012 10:41:33 +0000 (12:41 +0200)]
rtmp: Do not send _checkbw calls as notifications

The _checkbw calls were changed to use transactionId 0 in commit
82613564 so that servers would not return _result/_error about it.
While this is the strict interpretation of the spec, there are
servers that return _error about it, even if transactionId was 0.

The latest version of EvoStream Media Server (the commercial version
of crtmpserver) behaves properly as described, i.e. returning an
_error normally but not returning anything when using transactionId
0. The latest version of crtmpserver (right now at least) doesn't
behave like this though, it returns an error even if transactionId
was 0.

There are also other servers that return errors even if transactionId
is set to 0. Therefore set a proper transaction id so that the invoke
can be tracked and the error properly ignored instead.

Signed-off-by: Martin Storsjö <martin@martin.st>
11 years agovda: better frame allocation.
Sebastien Zwickert [Tue, 14 Aug 2012 19:22:20 +0000 (21:22 +0200)]
vda: better frame allocation.

11 years agoprores: interlaced ProRes encoding
Maksalov Boris [Fri, 3 Aug 2012 17:50:05 +0000 (19:50 +0200)]
prores: interlaced ProRes encoding

Signed-off-by: Luca Barbato <lu_zero@gentoo.org>
11 years agobmv_videodec: fix out of array read
Michael Niedermayer [Tue, 14 Aug 2012 16:58:49 +0000 (18:58 +0200)]
bmv_videodec: fix out of array read

Fixes Ticket1373

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
11 years agoremove duplicated code
upsuper [Tue, 14 Aug 2012 15:10:45 +0000 (23:10 +0800)]
remove duplicated code

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
11 years agoprores_kostya: implement interlaced encoding.
Boris Maksalov [Tue, 14 Aug 2012 09:03:36 +0000 (10:03 +0100)]
prores_kostya: implement interlaced encoding.

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
11 years agoprores_kostya: fix incorrect picture_size field.
Boris Maksalov [Tue, 14 Aug 2012 09:05:38 +0000 (10:05 +0100)]
prores_kostya: fix incorrect picture_size field.

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
11 years agoAdd ICO muxer
Michael Bradshaw [Sun, 12 Aug 2012 16:29:36 +0000 (10:29 -0600)]
Add ICO muxer

Signed-off-by: Michael Bradshaw <mbradshaw@sorensonmedia.com>
Reviewed-by: Peter Ross <pross@xvid.org>
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
11 years agoCheck for avio fail in avformat_write_header, av_write_frame
Andrey Utkin [Tue, 14 Aug 2012 09:48:45 +0000 (12:48 +0300)]
Check for avio fail in avformat_write_header, av_write_frame

With minor changes by michael
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
11 years agoMerge remote-tracking branch 'qatar/master'
Michael Niedermayer [Tue, 14 Aug 2012 13:31:43 +0000 (15:31 +0200)]
Merge remote-tracking branch 'qatar/master'

* qatar/master:
  g723.1: simplify scale_vector()
  g723.1: simplify normalize_bits()
  vda: cosmetics: fix Doxygen comment formatting
  vda: better frame allocation
  vda: Merge implementation into one file
  vda: support synchronous decoding
  vda: Reuse the bitstream buffer and reallocate it only if needed
  build: Factor out mpegvideo encoding dependencies to CONFIG_MPEGVIDEOENC
  avprobe: Include libm.h for the log2 fallback
  proresenc: use the edge emulation buffer
  rtmp: handle bytes read reports
  configure: Fix typo in mpeg2video/svq1 decoder dependency declaration
  Use log2(x) instead of log(x) / log(2)
  x86: swscale: fix fragile memory accesses
  x86: swscale: remove disabled code
  x86: yadif: fix asm with suncc
  x86: cabac: allow building with suncc
  x86: mlpdsp: avoid taking address of void
  ARM: intmath: use native-size return types for clipping functions

Conflicts:
configure
ffprobe.c
libavcodec/Makefile
libavcodec/g723_1.c
libavcodec/v210dec.h
libavcodec/vda.h
libavcodec/vda_h264.c
libavcodec/x86/cabac.h
libavfilter/x86/yadif_template.c
libswscale/x86/rgb2rgb_template.c

Merged-by: Michael Niedermayer <michaelni@gmx.at>
11 years agovda: fix make checkheaders.
Sebastien Zwickert [Tue, 14 Aug 2012 08:28:22 +0000 (10:28 +0200)]
vda: fix make checkheaders.

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
11 years agolavfi/asetnsamples: push as many frames as ready
Andrey Utkin [Tue, 7 Aug 2012 22:55:03 +0000 (01:55 +0300)]
lavfi/asetnsamples: push as many frames as ready

Signed-off-by: Stefano Sabatini <stefasab@gmail.com>
11 years agog723.1: simplify scale_vector()
Mans Rullgard [Mon, 13 Aug 2012 22:50:10 +0000 (23:50 +0100)]
g723.1: simplify scale_vector()

It is impossible for bits to be 15 here so the special case is
not needed.

Signed-off-by: Mans Rullgard <mans@mansr.com>
11 years agog723.1: simplify normalize_bits()
Mans Rullgard [Mon, 13 Aug 2012 22:03:37 +0000 (23:03 +0100)]
g723.1: simplify normalize_bits()

This function is always called with a non-negative argument, so
those special cases are not needed.  In the places the argument
might be zero, the return value for a zero argument does not matter
since it would then be used to scale an array full of zeros.

Signed-off-by: Mans Rullgard <mans@mansr.com>
11 years agovda: cosmetics: fix Doxygen comment formatting
Sebastien Zwickert [Tue, 14 Aug 2012 09:48:17 +0000 (11:48 +0200)]
vda: cosmetics: fix Doxygen comment formatting

Signed-off-by: Diego Biurrun <diego@biurrun.de>
11 years agovda: better frame allocation
Sebastien Zwickert [Tue, 14 Aug 2012 09:47:39 +0000 (11:47 +0200)]
vda: better frame allocation

Signed-off-by: Diego Biurrun <diego@biurrun.de>
11 years agovda: Merge implementation into one file
Sebastien Zwickert [Tue, 14 Aug 2012 08:42:52 +0000 (10:42 +0200)]
vda: Merge implementation into one file

Signed-off-by: Diego Biurrun <diego@biurrun.de>
11 years agovda: support synchronous decoding
Sebastien Zwickert [Tue, 14 Aug 2012 09:45:29 +0000 (11:45 +0200)]
vda: support synchronous decoding

Note that the symbols used to run the hardware decoder in asynchronous mode
have been marked deprecated and will be dropped at a future version bump.

Signed-off-by: Diego Biurrun <diego@biurrun.de>
11 years agovda: Reuse the bitstream buffer and reallocate it only if needed
Sebastien Zwickert [Mon, 13 Aug 2012 18:17:45 +0000 (20:17 +0200)]
vda: Reuse the bitstream buffer and reallocate it only if needed

Signed-off-by: Diego Biurrun <diego@biurrun.de>
11 years agofilter_design: document ownership and permissions.
Nicolas George [Sun, 12 Aug 2012 11:58:09 +0000 (13:58 +0200)]
filter_design: document ownership and permissions.

11 years agolavfi: use min_perms and rej_perms for out pads.
Nicolas George [Sun, 12 Aug 2012 08:59:37 +0000 (10:59 +0200)]
lavfi: use min_perms and rej_perms for out pads.

There are several reasons for doing that:

1. It documents the code for the reader and helps find
   inconsistencies and bugs.

2. For rej_perms, it guarantees the change will be done
   even if the output reference can be created by several
   code paths.

3. It can be used to predict cases where a copy will,
   or will not happen and optimize buffer allocation
   (for example not request a rare direct-rendering buffer
   from a device sink if it will be copied anyway).

Note that a filter is still allowed to manage the permissions
on its own without using these fields.

11 years agodvdsubenc: reindent after recent commit.
Nicolas George [Tue, 14 Aug 2012 09:58:32 +0000 (11:58 +0200)]
dvdsubenc: reindent after recent commit.

11 years agolavc: add const to AVCodecContext.codec_descriptor.
Nicolas George [Mon, 13 Aug 2012 09:28:10 +0000 (11:28 +0200)]
lavc: add const to AVCodecContext.codec_descriptor.

11 years agolavc: reimplement avcodec_get_name with descriptors.
Nicolas George [Mon, 13 Aug 2012 09:27:20 +0000 (11:27 +0200)]
lavc: reimplement avcodec_get_name with descriptors.

11 years agoffmpeg: copy subtitles frame dimensions.
Nicolas George [Thu, 9 Aug 2012 09:55:22 +0000 (11:55 +0200)]
ffmpeg: copy subtitles frame dimensions.

The sub-movtextenc ref file changes because the dimensions
(400×60) are stored by the format.

11 years agoffmpeg: make -s work for subtitles too.
Nicolas George [Thu, 9 Aug 2012 09:51:45 +0000 (11:51 +0200)]
ffmpeg: make -s work for subtitles too.

Some codecs allow to encode the frame size and some players use it.

11 years agodvdsubenc: set frame size in extradata.
Nicolas George [Tue, 7 Aug 2012 17:05:43 +0000 (19:05 +0200)]
dvdsubenc: set frame size in extradata.

11 years agolavf: probe PGS subtitles definition.
Nicolas George [Tue, 7 Aug 2012 16:53:00 +0000 (18:53 +0200)]
lavf: probe PGS subtitles definition.

The resolution is in the packets, so decoding must happen.
Since most other formats do not set the dimension, make it
a special case for PGS. If other codecs were to have the
same requirement, using a CODEC_CAP would be preferred.

11 years agodvdsubenc: make it usable for transcoding.
Nicolas George [Mon, 6 Aug 2012 12:14:27 +0000 (14:14 +0200)]
dvdsubenc: make it usable for transcoding.

DVD subtitles packets can only encode a single rectangle:
if there are several, copy them into a big transparent one.

DVD subtitles rely on an external 16-colors palette:
use a reasonable default one, stored in the private context,
and encode it into the extradata, as specified by Matroska.
TODO: allow to change the palette with an option.

Each packet can use four colors out of the global palette.
The old logic was to map transparent colors to the color 0
and all other colors to 3, 2, 1, cyclically in descending
frequency order, completely disregarding the original color.

Select the "best" four colors from the global palette, according
to heuristics based on frequency, opacity and brightness, and
arrange them in standard DVD order: background, foreground,
outline, other.
TODO: select the alpha value more finely; see if CHG_COLCON can
allow more than 4 colors per packet.

Reference:
http://dvd.sourceforge.net/dvdinfo/spu.html

With these changes, dvdsubenc can be used to transcode DVB subtitles
and get a very decent result.

11 years agoffmpeg: add an option to fix subtitles durations.
Nicolas George [Thu, 9 Aug 2012 09:44:17 +0000 (11:44 +0200)]
ffmpeg: add an option to fix subtitles durations.

With this option, transcoding DVB subtitles becomes possible.

11 years agobuild: Factor out mpegvideo encoding dependencies to CONFIG_MPEGVIDEOENC
Diego Biurrun [Mon, 13 Aug 2012 11:00:24 +0000 (13:00 +0200)]
build: Factor out mpegvideo encoding dependencies to CONFIG_MPEGVIDEOENC

A new hidden config variable is added for the codecs that depend on
the mpegvideo encoding parts.

11 years agovda: merge implementation into one file.
Sebastien Zwickert [Sun, 12 Aug 2012 15:03:06 +0000 (17:03 +0200)]
vda: merge implementation into one file.

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
11 years agovda: support synchronous decoding.
Sebastien Zwickert [Sun, 12 Aug 2012 15:03:05 +0000 (17:03 +0200)]
vda: support synchronous decoding.

Note that the symbols used to run the hardware decoder in asynchronous mode
has been marked as deprecated and will be dropped at a future version dump.

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
11 years agomore verbose error messages at configure time
rogerdpack [Thu, 9 Aug 2012 20:12:02 +0000 (14:12 -0600)]
more verbose error messages at configure time

Signed-off-by: rogerdpack <rogerpack2005@gmail.com>
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
11 years agoasfdec: ignore too tiny indexes
Michael Niedermayer [Tue, 14 Aug 2012 01:21:08 +0000 (03:21 +0200)]
asfdec: ignore too tiny indexes

Fixes Ticket1521

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
11 years agoavprobe: Include libm.h for the log2 fallback
Martin Storsjö [Mon, 13 Aug 2012 22:29:15 +0000 (01:29 +0300)]
avprobe: Include libm.h for the log2 fallback

Signed-off-by: Martin Storsjö <martin@martin.st>
11 years agoproresenc: use the edge emulation buffer
Boris Maksalov [Fri, 10 Aug 2012 08:50:35 +0000 (09:50 +0100)]
proresenc: use the edge emulation buffer

Prevents reading past the end of frame buffer.

Signed-off-by: Luca Barbato <lu_zero@gentoo.org>
11 years agortmp: handle bytes read reports
Luca Barbato [Mon, 13 Aug 2012 17:46:04 +0000 (19:46 +0200)]
rtmp: handle bytes read reports

0x03 (bytes read report) is a known type and should be safely ignored
beside in debug situations.

11 years agohls: Initialize stream_offset before find_stream_info.
Michael Niedermayer [Mon, 13 Aug 2012 18:37:52 +0000 (20:37 +0200)]
hls: Initialize stream_offset before find_stream_info.

find stream info causes reads that may use the offset in their callback

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
11 years agohls: check that the streams have been initialized before checking their discard flags.
Michael Niedermayer [Mon, 13 Aug 2012 18:37:04 +0000 (20:37 +0200)]
hls: check that the streams have been initialized before checking their discard flags.

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