ffmpeg.git
7 years agolibopenjpegenc: Simplify gray encoding.
Michael Bradshaw [Tue, 17 Jan 2012 10:57:36 +0000 (11:57 +0100)]
libopenjpegenc: Simplify gray encoding.

7 years agolibopenjpegenc: Add error messages.
Michael Bradshaw [Tue, 17 Jan 2012 10:47:08 +0000 (11:47 +0100)]
libopenjpegenc: Add error messages.

7 years agolibopenjpegenc: Rename four conversion functions.
Michael Bradshaw [Tue, 17 Jan 2012 10:43:44 +0000 (11:43 +0100)]
libopenjpegenc: Rename four conversion functions.

7 years agoUse correct register size.
Reimar Döffinger [Tue, 17 Jan 2012 07:41:04 +0000 (08:41 +0100)]
Use correct register size.

Fixes compilation with NASM.

Signed-off-by: Reimar Döffinger <Reimar.Doeffinger@gmx.de>
7 years agoMerge remote-tracking branch 'qatar/master'
Michael Niedermayer [Tue, 17 Jan 2012 00:40:45 +0000 (01:40 +0100)]
Merge remote-tracking branch 'qatar/master'

* qatar/master:
  rv34: add NEON rv34_idct_add
  rv34: 1-pass inter MB reconstruction
  add SMJPEG muxer
  avformat: split out common SMJPEG code
  pictordec: Use bytestream2 functions
  avconv: use avcodec_encode_audio2()
  pcmenc: use AVCodec.encode2()
  avcodec: bump minor version and add APIChanges for the new audio encoding API
  avcodec: Add avcodec_encode_audio2() as replacement for avcodec_encode_audio()
  avcodec: add a public function, avcodec_fill_audio_frame().
  rv34: Intra 16x16 handling
  rv34: Inter/intra MB code split

Conflicts:
Changelog
libavcodec/avcodec.h
libavcodec/pictordec.c
libavcodec/utils.c
libavcodec/version.h
libavcodec/x86/rv34dsp.asm
libavformat/version.h

Merged-by: Michael Niedermayer <michaelni@gmx.at>
7 years agodpxenc: Dont store lavc indent when bitexact is set.
Michael Niedermayer [Tue, 17 Jan 2012 00:37:59 +0000 (01:37 +0100)]
dpxenc: Dont store lavc indent when bitexact is set.

This avoids fate breakage from bumping version.

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
7 years agoSupport 64bit pam decoding.
Carl Eugen Hoyos [Mon, 16 Jan 2012 23:38:54 +0000 (00:38 +0100)]
Support 64bit pam decoding.

7 years agoSupport gray8a pam decoding.
Carl Eugen Hoyos [Mon, 16 Jan 2012 23:37:20 +0000 (00:37 +0100)]
Support gray8a pam decoding.

7 years agoFix pix_fmt_info for yuva420.
Carl Eugen Hoyos [Mon, 16 Jan 2012 23:30:28 +0000 (00:30 +0100)]
Fix pix_fmt_info for yuva420.

This allows correct output pix_fmt auto-selection
if the input pix_fmt is yuva420.

Fixes ticket #290.

7 years agofate: add GEN tag for mapchan sw tests.
Clément Bœsch [Fri, 13 Jan 2012 18:17:12 +0000 (19:17 +0100)]
fate: add GEN tag for mapchan sw tests.

7 years agofix av_dlog call with non-AVClass struct
Maksym Veremeyenko [Mon, 16 Jan 2012 14:20:58 +0000 (16:20 +0200)]
fix av_dlog call with non-AVClass struct

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
7 years agoRemove extraneous newline from dpx reference which breaks FATE.
Reimar Döffinger [Mon, 16 Jan 2012 18:43:41 +0000 (19:43 +0100)]
Remove extraneous newline from dpx reference which breaks FATE.

Signed-off-by: Reimar Döffinger <Reimar.Doeffinger@gmx.de>
7 years agorv34: add NEON rv34_idct_add
Janne Grunau [Sun, 15 Jan 2012 18:16:02 +0000 (19:16 +0100)]
rv34: add NEON rv34_idct_add

Overall almost 4% faster, idct_add down from 350 to 85 cycles, idct_dc_add
down from 83 to 30 cycles.

squash: rv34 idct rearrange partial register loads

7 years agorv34: 1-pass inter MB reconstruction
Christophe GISQUET [Tue, 3 Jan 2012 19:38:29 +0000 (20:38 +0100)]
rv34: 1-pass inter MB reconstruction

Implement 1-pass inverse transform and reconstruction for inter blocks.

7 years agoRework VP8 decoder frame skipping code.
Reimar Döffinger [Sun, 11 Dec 2011 15:02:30 +0000 (16:02 +0100)]
Rework VP8 decoder frame skipping code.

This reworks the frame skipping code such that the reference
buffers are still updated according to the header.
However it also ensures that the current frame will not end
up in any reference buffer.
Also fixes a hang with frame-multithreading, probably because
get_buffer was already called and would have reset the progress,
however the frame could remain in framep due to the missing update
(or it could be assigned to next_framep and a skip_frame skip would
then write it into framep - there might be even more failure modes).
Sample might become available at samples/nsv/vp8.nsv

Signed-off-by: Reimar Döffinger <Reimar.Doeffinger@gmx.de>
7 years agomxfdec: Add missing free.
Reimar Döffinger [Sun, 15 Jan 2012 09:08:02 +0000 (10:08 +0100)]
mxfdec: Add missing free.

Should fix valgrind FATE.

Signed-off-by: Reimar Döffinger <Reimar.Doeffinger@gmx.de>
7 years agoasfdec: Move variable declarations into the blocks they are used in.
Reimar Döffinger [Sun, 15 Jan 2012 19:18:22 +0000 (20:18 +0100)]
asfdec: Move variable declarations into the blocks they are used in.

Signed-off-by: Reimar Döffinger <Reimar.Doeffinger@gmx.de>
7 years agolavu: add 2.1 channel layout.
Clément Bœsch [Wed, 11 Jan 2012 09:09:37 +0000 (10:09 +0100)]
lavu: add 2.1 channel layout.

7 years agoAdd dpx encoding regression test.
Carl Eugen Hoyos [Mon, 16 Jan 2012 11:57:39 +0000 (12:57 +0100)]
Add dpx encoding regression test.

7 years agoadd SMJPEG muxer
Paul B Mahol [Sat, 14 Jan 2012 19:29:59 +0000 (19:29 +0000)]
add SMJPEG muxer

Signed-off-by: Kostya Shishkov <kostya.shishkov@gmail.com>
7 years agoavformat: split out common SMJPEG code
Paul B Mahol [Sat, 14 Jan 2012 16:47:07 +0000 (16:47 +0000)]
avformat: split out common SMJPEG code

This is a preparation for adding SMJPEG muxer.

Signed-off-by: Kostya Shishkov <kostya.shishkov@gmail.com>
7 years agoSupport rgb64 dpx encoding.
Carl Eugen Hoyos [Mon, 16 Jan 2012 09:59:27 +0000 (10:59 +0100)]
Support rgb64 dpx encoding.

7 years agoAdd gray16 and rgb48 png encoding regression tests.
Carl Eugen Hoyos [Mon, 16 Jan 2012 09:57:56 +0000 (10:57 +0100)]
Add gray16 and rgb48 png encoding regression tests.

7 years agopictordec: Use bytestream2 functions
Laurentiu Ion [Mon, 16 Jan 2012 02:47:07 +0000 (04:47 +0200)]
pictordec: Use bytestream2 functions

Signed-off-by: Justin Ruggles <justin.ruggles@gmail.com>
7 years agoEnhance HLS seeking.
Panagiotis H.M. Issaris [Tue, 10 Jan 2012 13:48:57 +0000 (14:48 +0100)]
Enhance HLS seeking.

Enhances seeking by demuxing until the requested timestamp is reached within
the segment selected by the seek code using the playlist info.

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
7 years agovorbisdec: Check that the x values of floor1 are unique.
Michael Niedermayer [Thu, 12 Jan 2012 03:21:47 +0000 (04:21 +0100)]
vorbisdec: Check that the x values of floor1 are unique.

This is required by the spec and fixes video-1frag.ogg.48.ogg. (FPE)

Based on the debuging work of Oana Stratulat and ubitux.
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
7 years agomov: cosmetics - move a line to a better position and add a comment
Jean First [Sat, 14 Jan 2012 13:10:20 +0000 (14:10 +0100)]
mov: cosmetics - move a line to a better position and add a comment

mov: cosmetics - move a line to a better position and add a comment

Oana Andreea Stratulat submitted a similar patch to trac, but forgot
to notify the ML about it.

Signed-off-by: Jean First <jeanfirst@gmail.com>
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
7 years agomovenc: add FIXME to add alis and rsrc atoms
Jean First [Sat, 14 Jan 2012 13:10:19 +0000 (14:10 +0100)]
movenc: add FIXME to add alis and rsrc atoms

Signed-off-by: Jean First <jeanfirst@gmail.com>
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
7 years agoavconv: use avcodec_encode_audio2()
Justin Ruggles [Sat, 31 Dec 2011 14:36:25 +0000 (09:36 -0500)]
avconv: use avcodec_encode_audio2()

7 years agopcmenc: use AVCodec.encode2()
Justin Ruggles [Sun, 8 Jan 2012 22:37:16 +0000 (17:37 -0500)]
pcmenc: use AVCodec.encode2()

7 years agoavcodec: bump minor version and add APIChanges for the new audio encoding API
Justin Ruggles [Mon, 19 Dec 2011 00:47:38 +0000 (19:47 -0500)]
avcodec: bump minor version and add APIChanges for the new audio encoding API

7 years agoavcodec: Add avcodec_encode_audio2() as replacement for avcodec_encode_audio()
Justin Ruggles [Sun, 18 Dec 2011 18:20:15 +0000 (13:20 -0500)]
avcodec: Add avcodec_encode_audio2() as replacement for avcodec_encode_audio()

This allows audio encoders to optionally take an AVFrame as input and write
encoded output to an AVPacket.

This also adds AVCodec.encode2() which will also be usable by video and
subtitle encoders once support is implemented in the public functions.

7 years agoavcodec: add a public function, avcodec_fill_audio_frame().
Justin Ruggles [Thu, 15 Dec 2011 22:56:06 +0000 (17:56 -0500)]
avcodec: add a public function, avcodec_fill_audio_frame().

This is a convenience function for the user to fill audio AVFrame information.

7 years agomovenc: indent cosemtics
Jean First [Sat, 14 Jan 2012 13:10:17 +0000 (14:10 +0100)]
movenc: indent cosemtics

Signed-off-by: Jean First <jeanfirst@gmail.com>
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
7 years agoMerge remote-tracking branch 'qatar/master'
Michael Niedermayer [Mon, 16 Jan 2012 00:20:32 +0000 (01:20 +0100)]
Merge remote-tracking branch 'qatar/master'

* qatar/master:
  fate: split ADPCM and DPCM test references into separate files.
  mov, mxfdec: Employ more meaningful return values.
  lavc: Relax API strictness in avcodec_decode_audio3 with a custom get_buffer()
  wavpack: fix clipping for 32-bit lossy mode
  vb: Use bytestream2 functions

Conflicts:
libavcodec/utils.c
libavcodec/vb.c
libavformat/mxfdec.c
tests/fate/dpcm.mak

Merged-by: Michael Niedermayer <michaelni@gmx.at>
7 years agorv34: Intra 16x16 handling
Christophe GISQUET [Mon, 2 Jan 2012 23:22:11 +0000 (00:22 +0100)]
rv34: Intra 16x16 handling

Extract processing of intra 16x16 blocks from intra macroblock
processing.
Also implement a function performing inverse transform and block
reconstruction for DC-only blocks in 1 pass instead of 2.

7 years agorv34: Inter/intra MB code split
Christophe GISQUET [Mon, 2 Jan 2012 19:53:54 +0000 (20:53 +0100)]
rv34: Inter/intra MB code split

Split inter/intra macroblock handling code. This will allow further
optimizations such as performing inverse transform and block reconstruction
in a single pass as well as specialize code.

Signed-off-by: Janne Grunau <janne-libav@jannau.net>
7 years agoSupport rgb48 and rgba64 png encoding.
Carl Eugen Hoyos [Sun, 15 Jan 2012 21:04:25 +0000 (22:04 +0100)]
Support rgb48 and rgba64 png encoding.

7 years agofate: split ADPCM and DPCM test references into separate files.
Diego Biurrun [Thu, 12 Jan 2012 23:58:22 +0000 (00:58 +0100)]
fate: split ADPCM and DPCM test references into separate files.

7 years agoSimplify RGB32 png encoding.
Carl Eugen Hoyos [Sun, 15 Jan 2012 21:00:11 +0000 (22:00 +0100)]
Simplify RGB32 png encoding.

7 years agomov, mxfdec: Employ more meaningful return values.
Daniel Huang [Sat, 14 Jan 2012 21:25:12 +0000 (15:25 -0600)]
mov, mxfdec: Employ more meaningful return values.

Signed-off-by: Diego Biurrun <diego@biurrun.de>
7 years agoSupport gray16 png encoding.
Carl Eugen Hoyos [Sun, 15 Jan 2012 20:57:02 +0000 (21:57 +0100)]
Support gray16 png encoding.

7 years agoSupport gray8a png encoding.
Carl Eugen Hoyos [Sun, 15 Jan 2012 20:53:01 +0000 (21:53 +0100)]
Support gray8a png encoding.

7 years agolavc: Relax API strictness in avcodec_decode_audio3 with a custom get_buffer()
Reinhard Tartler [Sun, 15 Jan 2012 19:32:11 +0000 (20:32 +0100)]
lavc: Relax API strictness in avcodec_decode_audio3 with a custom get_buffer()

Do not fail audio decoding with avcodec_decode_audio3 if user has set a
custom get_buffer. Strictly speaking, this was never allowed by the API,
but it seems that some software packages did so anyways. In order to
unbreak applications (cf. http://bugs.debian.org/655890), this change
clarifies the API and overrides the custom get_buffer() with the defaults.

This change is inspired by a similar
commit (c3846e3ebab610be691adb8b40d376dc2f675dc4) in FFmpeg.

Signed-off-by: Reinhard Tartler <siretart@tauware.de>
7 years agoFix ff_get_guid for short reads or errors.
Reimar Döffinger [Sun, 15 Jan 2012 15:58:21 +0000 (16:58 +0100)]
Fix ff_get_guid for short reads or errors.

Current code would just return uninitialized data with no way
to detect this condition.
Instead, fill the whole GUID with 0 in that case.
Fixes valgrind uninitialized data errors in fate-seek-lavf_asf.

Signed-off-by: Reimar Döffinger <Reimar.Doeffinger@gmx.de>
7 years agolavfi-showfiltfmts: fix typo that segfaulted haiku.
Michael Niedermayer [Sun, 15 Jan 2012 18:46:01 +0000 (19:46 +0100)]
lavfi-showfiltfmts: fix typo that segfaulted haiku.

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
7 years agowavpack: fix clipping for 32-bit lossy mode
Kostya Shishkov [Sun, 15 Jan 2012 13:23:28 +0000 (14:23 +0100)]
wavpack: fix clipping for 32-bit lossy mode

Reference decoder clips data before shifting it to final range and also
forces 32-bit lossy mode to be actually 24-bit lossy mode in order to be
able to perform proper clipping.

7 years agoffplay: mark i variable in toggle_full_screen() as unused
Stefano Sabatini [Sun, 15 Jan 2012 12:27:45 +0000 (13:27 +0100)]
ffplay: mark i variable in toggle_full_screen() as unused

Fix gcc warning:
ffplay.c: In function ‘toggle_full_screen’:
ffplay.c:2792:9: warning: unused variable ‘i’ [-Wunused-variable]

7 years agolavfi/rgbtestsrc: make alpha plane opaque
Stefano Sabatini [Sun, 15 Jan 2012 12:03:15 +0000 (13:03 +0100)]
lavfi/rgbtestsrc: make alpha plane opaque

7 years agoiff: support masking plane feature
Peter Ross [Sun, 15 Jan 2012 08:34:45 +0000 (19:34 +1100)]
iff: support masking plane feature

Fixes ticket 705.

Reported-by: ami-stuff
Signed-off-by: Peter Ross <pross@xvid.org>
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
7 years agoRevert "buildsystem: add $EXESUF to the used tool for fate"
Michael Niedermayer [Sun, 15 Jan 2012 12:33:08 +0000 (13:33 +0100)]
Revert "buildsystem: add $EXESUF to the used tool for fate"

This reverts commit 668a74e808dad06b15549ed05aa3a879f76c17c3.
10l, this change was unneeded, target_exec can be used to achive the same.

7 years agoFix uninitialized reads for fate-vsynth1-asv2 test.
Reimar Döffinger [Sun, 15 Jan 2012 10:01:01 +0000 (11:01 +0100)]
Fix uninitialized reads for fate-vsynth1-asv2 test.

This is not a real error and memsetting always even when the
size did not change is overkill, but it still should be
an acceptable trade-off.

Signed-off-by: Reimar Döffinger <Reimar.Doeffinger@gmx.de>
7 years agooverlay: do not leak x/y expressions.
Nicolas George [Thu, 12 Jan 2012 18:18:13 +0000 (19:18 +0100)]
overlay: do not leak x/y expressions.

7 years agobuildsystem: add $EXESUF to the used tool for fate
Michael Niedermayer [Sun, 15 Jan 2012 06:14:08 +0000 (07:14 +0100)]
buildsystem: add $EXESUF to the used tool for fate

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
7 years agovb: Use bytestream2 functions
Laurentiu Ion [Sat, 14 Jan 2012 19:04:59 +0000 (21:04 +0200)]
vb: Use bytestream2 functions

Signed-off-by: Justin Ruggles <justin.ruggles@gmail.com>
7 years agoimgconvert: add PIX_FMT_GRAY8A to pix_fmt_info
Michael Niedermayer [Sun, 15 Jan 2012 01:40:18 +0000 (02:40 +0100)]
imgconvert: add PIX_FMT_GRAY8A to pix_fmt_info

Fixes selecting gray8a for PAM

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
7 years agoMerge remote-tracking branch 'qatar/master'
Michael Niedermayer [Sun, 15 Jan 2012 00:07:00 +0000 (01:07 +0100)]
Merge remote-tracking branch 'qatar/master'

* qatar/master:
  sgidec: Use bytestream2 functions to prevent buffer overreads.
  cosmetics: Move static and inline attributes to more standard places.
  configure: provide libavfilter/version.h header to get_version()
  swscale: change yuv2yuvX code to use cpuflag().
  libx264: Don't leave max_b_frames as -1 if the user didn't set it
  FATE: convert output to rgba for the targa tests which currently output pal8
  fate: add missing reference files for targa tests in 9c2f9b0e2
  FATE: enable the 2 remaining targa conformance suite tests
  targa: add support for rgb555 palette
  FATE: fix targa tests on big-endian systems

Conflicts:
libavcodec/sgidec.c
libavcodec/targa.c
libswscale/x86/output.asm
tests/fate/image.mak

Merged-by: Michael Niedermayer <michaelni@gmx.at>
7 years agoljpegdec: reset restart interval for each plane of a non interleaved file.
Michael Niedermayer [Sat, 14 Jan 2012 22:44:50 +0000 (23:44 +0100)]
ljpegdec: reset restart interval for each plane of a non interleaved file.

Fixes Ticket907

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
7 years agothp: Fix handling of restart interval
Michael Niedermayer [Sat, 14 Jan 2012 22:30:01 +0000 (23:30 +0100)]
thp: Fix handling of restart interval

Fixes Ticket903

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
7 years agoFix compilation without HAVE_AVX, HAVE_YASM etc.
Reimar Döffinger [Sat, 14 Jan 2012 16:09:07 +0000 (17:09 +0100)]
Fix compilation without HAVE_AVX, HAVE_YASM etc.

At the very least this should fix warnings about unused static
functions if one or more of these is not defined.
However even compilation might be broken if the compiler does
not optimize the function away completely.
This actually happens in case of the AVX function, since the
function pointer is used in an assignment that is not under
an #if and thus probably only optimized away after the function
was already marked as used.

Signed-off-by: Reimar Döffinger <Reimar.Doeffinger@gmx.de>
7 years agotimecode: fix typo
Jean First [Sat, 14 Jan 2012 13:10:18 +0000 (14:10 +0100)]
timecode: fix typo

Signed-off-by: Jean First <jeanfirst@gmail.com>
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
7 years agox86/yuv2rgb_mmx: Remove yuv420 check.
Michael Niedermayer [Sat, 14 Jan 2012 20:42:56 +0000 (21:42 +0100)]
x86/yuv2rgb_mmx: Remove yuv420 check.

This check is not correct, the code supports more yuv variants.
Fixes Ticket904

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
7 years agompeg12dec: BW10 support
Michael Niedermayer [Fri, 13 Jan 2012 04:56:59 +0000 (05:56 +0100)]
mpeg12dec: BW10 support

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
7 years agompeg12dec: check uppercased codec_tag.
Michael Niedermayer [Sat, 14 Jan 2012 17:38:35 +0000 (18:38 +0100)]
mpeg12dec: check uppercased codec_tag.

We do this for all other codec_tag checks in mpegvideo*/h26*
doing it here too makes the code more consistent.

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
7 years agoavidec: XMPG support
Michael Niedermayer [Fri, 13 Jan 2012 04:56:20 +0000 (05:56 +0100)]
avidec: XMPG support

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
7 years agosgidec: Use bytestream2 functions to prevent buffer overreads.
Aneesh Dogra [Fri, 13 Jan 2012 17:35:57 +0000 (23:05 +0530)]
sgidec: Use bytestream2 functions to prevent buffer overreads.

The patch also adds several bytestream macros to deal with native endian.

Signed-off-by: Justin Ruggles <justin.ruggles@gmail.com>
7 years agoUse correct register size, fixes compilation with NASM.
Reimar Döffinger [Sat, 14 Jan 2012 16:42:57 +0000 (17:42 +0100)]
Use correct register size, fixes compilation with NASM.

Signed-off-by: Reimar Döffinger <Reimar.Doeffinger@gmx.de>
7 years agocosmetics: Move static and inline attributes to more standard places.
Diego Biurrun [Fri, 13 Jan 2012 15:35:54 +0000 (16:35 +0100)]
cosmetics: Move static and inline attributes to more standard places.

Fixes several "‘static’ is not at beginning of declaration" warnings.

7 years agoFix leaking of side data.
Reimar Döffinger [Thu, 12 Jan 2012 20:31:11 +0000 (21:31 +0100)]
Fix leaking of side data.

While we correctly "register" the side data when we split it,
the application (in this case FFmpeg) might not update the
AVPacket pool it uses to finally free the packet, thus
causing a leak.
This also makes the av_dup_packet unnecessary which could
cause an even worse leak in this situation.
Also change the code to not modify the user-provide AVPacket at all.

Signed-off-by: Reimar Döffinger <Reimar.Doeffinger@gmx.de>
7 years agoudp: fix segfault on closing
Laurent BRULET [Sat, 14 Jan 2012 16:14:18 +0000 (17:14 +0100)]
udp: fix segfault on closing

Fixes ticket915

7 years agoFATE: fix targa tests on big-endian systems
Justin Ruggles [Fri, 13 Jan 2012 21:14:48 +0000 (16:14 -0500)]
FATE: fix targa tests on big-endian systems

7 years agoMerge remote-tracking branch 'cus/stable'
Michael Niedermayer [Sat, 14 Jan 2012 15:40:49 +0000 (16:40 +0100)]
Merge remote-tracking branch 'cus/stable'

* cus/stable:
  ffplay: silence buffer size must be a multiple of frame size
  ffplay: use swr_set_compensation for audio synchronization

Merged-by: Michael Niedermayer <michaelni@gmx.at>
7 years agodoc/bistream_filters.texi: add documentation for the h264_mp4toannexb filter
Stefano Sabatini [Thu, 12 Jan 2012 22:39:03 +0000 (23:39 +0100)]
doc/bistream_filters.texi: add documentation for the h264_mp4toannexb filter

7 years agoSupport transparency in iff images.
Carl Eugen Hoyos [Sat, 14 Jan 2012 09:38:42 +0000 (10:38 +0100)]
Support transparency in iff images.

Fixes ticket #707.

Reviewed-by: Peter Ross
7 years agoAdd CR/LF to a reget_buffer warning message.
Carl Eugen Hoyos [Sat, 14 Jan 2012 09:35:03 +0000 (10:35 +0100)]
Add CR/LF to a reget_buffer warning message.

7 years agoconfigure: provide libavfilter/version.h header to get_version()
Stefano Sabatini [Fri, 13 Jan 2012 15:23:55 +0000 (16:23 +0100)]
configure: provide libavfilter/version.h header to get_version()

Fix libavfilter library version numbers generation, which was broken in
3167dc9515810bbdd86d99d773bcf84657d2e72a.

Signed-off-by: Anton Khirnov <anton@khirnov.net>
7 years agoFixes issue 890: OOM with zmbv file
Oana Stratulat [Tue, 10 Jan 2012 22:01:09 +0000 (00:01 +0200)]
Fixes issue 890: OOM with zmbv file

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
7 years agoutils: check that parameters havnt changed in reget_buffer()
Michael Niedermayer [Wed, 11 Jan 2012 22:52:55 +0000 (23:52 +0100)]
utils: check that parameters havnt changed in reget_buffer()

Fixes Ticket902

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
7 years agocabac_functions: fix license header, this wasnt developed in libav
Michael Niedermayer [Sat, 14 Jan 2012 03:51:13 +0000 (04:51 +0100)]
cabac_functions: fix license header, this wasnt developed in libav

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
7 years ago1000l commit forgotten cabac fix
Michael Niedermayer [Sat, 14 Jan 2012 03:47:27 +0000 (04:47 +0100)]
1000l commit forgotten cabac fix

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
7 years agoMerge remote-tracking branch 'qatar/master'
Michael Niedermayer [Sat, 14 Jan 2012 01:22:09 +0000 (02:22 +0100)]
Merge remote-tracking branch 'qatar/master'

* qatar/master:
  FATE: add tests for targa
  ARM: fix Thumb-mode simple_idct_arm
  ARM: 4-byte align start of all asm functions
  rgb2rgb: rgb12to15()
  swscale-test: fix stack overread.
  swscale: fix invalid conversions and memory problems.
  cabac: split cabac.h into declarations and function definitions
  cabac: Mark ff_h264_mps_state array as static, it is only used within cabac.c.
  cabac: Remove ff_h264_lps_state array.

Conflicts:
libswscale/rgb2rgb.h
libswscale/swscale_unscaled.c
tests/fate/image.mak

Merged-by: Michael Niedermayer <michaelni@gmx.at>
7 years agoswscale: change yuv2yuvX code to use cpuflag().
Ronald S. Bultje [Fri, 13 Jan 2012 19:21:15 +0000 (11:21 -0800)]
swscale: change yuv2yuvX code to use cpuflag().

7 years agoRGBA64 encoding with libopenjpeg.
Carl Eugen Hoyos [Sat, 14 Jan 2012 00:34:16 +0000 (01:34 +0100)]
RGBA64 encoding with libopenjpeg.

Reviewed-by: Michael Bradshaw
7 years agoGray16 encoding with libopenjpeg.
Carl Eugen Hoyos [Sat, 14 Jan 2012 00:31:53 +0000 (01:31 +0100)]
Gray16 encoding with libopenjpeg.

Reviewed-by: Michael Bradshaw
7 years agoalacdec: support 32 bps
Baptiste Coudurier [Fri, 13 Jan 2012 00:06:20 +0000 (16:06 -0800)]
alacdec: support 32 bps

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
7 years agolavc: Prevent opening of experimental codecs if strict_std_compliance > FF_COMPLIANCE...
Michael Niedermayer [Fri, 13 Jan 2012 05:29:51 +0000 (06:29 +0100)]
lavc: Prevent opening of experimental codecs if strict_std_compliance > FF_COMPLIANCE_EXPERIMENTAL.

Some of these encoders may produce invalid bitstreams, which should not
be done without the user knowing.
Some of these decoders may be unfinished and may contain security issues.

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
7 years agoSupport reading 64bit dpx images.
Carl Eugen Hoyos [Sat, 14 Jan 2012 00:15:42 +0000 (01:15 +0100)]
Support reading 64bit dpx images.

Reviewed-by: Jean First
7 years agoSupport reading 64bit sgi images.
Carl Eugen Hoyos [Sat, 14 Jan 2012 00:14:51 +0000 (01:14 +0100)]
Support reading 64bit sgi images.

Reviewed-by: Jean First
7 years agoSupport 64bit pam encoding.
Carl Eugen Hoyos [Sat, 14 Jan 2012 00:13:20 +0000 (01:13 +0100)]
Support 64bit pam encoding.

7 years agoSupport 64bit tiff images.
Carl Eugen Hoyos [Sat, 14 Jan 2012 00:10:13 +0000 (01:10 +0100)]
Support 64bit tiff images.

Fixes a part of ticket #503.

Reviewed-by: Paul B Mahol
Reviewed-by: Jean First
7 years agolibx264: Don't leave max_b_frames as -1 if the user didn't set it
Martin Storsjö [Fri, 13 Jan 2012 21:41:16 +0000 (23:41 +0200)]
libx264: Don't leave max_b_frames as -1 if the user didn't set it

max_b_frames is initialized to -1 for libx264, to allow
distinguishing between an explicit user set 0 and a default not
touched 0 (see bb73cda2).

If max_b_frames is left as -1, this affects dts generation (where
expressions like max_b_frames != 0 are used), so make sure it is
left at the default 0 after the libx264 init function returns.

This avoids unnecessarily producing dts != pts when using
profile=baseline.

Signed-off-by: Martin Storsjö <martin@martin.st>
7 years agoIncrease maximum encoding video buffer size.
Carl Eugen Hoyos [Fri, 13 Jan 2012 23:59:02 +0000 (00:59 +0100)]
Increase maximum encoding video buffer size.

libavutil now supports 64bit RGB formats.

7 years agoSimplify 32bit RGB pam encoding.
Carl Eugen Hoyos [Fri, 13 Jan 2012 23:58:40 +0000 (00:58 +0100)]
Simplify 32bit RGB pam encoding.

Reviewed-by: Paul B Mahol
7 years agoFATE: convert output to rgba for the targa tests which currently output pal8
Justin Ruggles [Fri, 13 Jan 2012 23:40:12 +0000 (18:40 -0500)]
FATE: convert output to rgba for the targa tests which currently output pal8

fixes the tests on big-endian systems

7 years agofate: add missing reference files for targa tests in 9c2f9b0e2
Janne Grunau [Fri, 13 Jan 2012 22:52:59 +0000 (23:52 +0100)]
fate: add missing reference files for targa tests in 9c2f9b0e2

Fixes fate-targa-conformance-CCM8 and fate-targa-conformance-UCM8.

7 years agoFATE: enable the 2 remaining targa conformance suite tests
Justin Ruggles [Fri, 13 Jan 2012 21:41:15 +0000 (16:41 -0500)]
FATE: enable the 2 remaining targa conformance suite tests

7 years agotarga: add support for rgb555 palette
Justin Ruggles [Mon, 2 Jan 2012 20:17:12 +0000 (15:17 -0500)]
targa: add support for rgb555 palette

7 years agoFATE: fix targa tests on big-endian systems
Justin Ruggles [Fri, 13 Jan 2012 21:14:48 +0000 (16:14 -0500)]
FATE: fix targa tests on big-endian systems

7 years agoFATE: add tests for targa
Justin Ruggles [Thu, 12 Jan 2012 01:06:46 +0000 (20:06 -0500)]
FATE: add tests for targa

Based on a patch by Oana Stratulat <oanaandreeastratulat@gmail.com>

7 years agoARM: fix Thumb-mode simple_idct_arm
Mans Rullgard [Fri, 13 Jan 2012 19:03:14 +0000 (19:03 +0000)]
ARM: fix Thumb-mode simple_idct_arm

The alignment directive must obviously precede the label.
This was never noticed in ARM mode since the location is
already aligned there.

Signed-off-by: Mans Rullgard <mans@mansr.com>