]> git.sesse.net Git - ffmpeg/log
ffmpeg
12 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>
12 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>
12 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>
12 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>
12 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>
12 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>
12 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>
12 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>
12 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>
12 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>
12 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>
12 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>
12 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>
12 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.

12 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>
12 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

12 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

12 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>
12 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

12 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
12 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.

12 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>
12 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>
12 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>
12 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>
12 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>
12 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>
12 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().

12 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
12 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
12 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>
12 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>
12 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
12 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
12 years agoSupport 64bit pam encoding.
Carl Eugen Hoyos [Sat, 14 Jan 2012 00:13:20 +0000 (01:13 +0100)]
Support 64bit pam encoding.

12 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
12 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>
12 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.

12 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
12 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

12 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.

12 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

12 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

12 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

12 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>

12 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>
12 years agoARM: 4-byte align start of all asm functions
Mans Rullgard [Fri, 13 Jan 2012 18:56:36 +0000 (18:56 +0000)]
ARM: 4-byte align start of all asm functions

Due to apprent bugs in the GNU assembler and/or linker, relocations
can be incorrectly processed if the alignment of a Thumb instruction
is changed in the output file compared to the input object.

This fixes crashes in h264 decoding with Thumb enabled. No effect in
ARM mode since everything is 4-byte aligned there.

Signed-off-by: Mans Rullgard <mans@mansr.com>
12 years agoj2kdec: Fix memleak, ensure cleanup is called also on error.
Reimar Döffinger [Thu, 12 Jan 2012 20:52:22 +0000 (21:52 +0100)]
j2kdec: Fix memleak, ensure cleanup is called also on error.

Fixes valgrind fate with fate-suite/r3d/4MB-sample.r3d.

Signed-off-by: Reimar Döffinger <Reimar.Doeffinger@gmx.de>
12 years agoffmpeg: fix return value in opt_old2new after e3127db4.
Clément Bœsch [Fri, 13 Jan 2012 17:56:59 +0000 (18:56 +0100)]
ffmpeg: fix return value in opt_old2new after e3127db4.

12 years agovf_deshake: remove unused variable totalangles
Ray Simard [Fri, 13 Jan 2012 02:03:36 +0000 (18:03 -0800)]
vf_deshake: remove unused variable totalangles

Variable totalangles was created and assigned, but never used.

Signed-off-by: Ray Simard <rhs.ffmpeg@sylvan-glade.com>
Signed-off-by: Stefano Sabatini <stefasab@gmail.com>
12 years agovf_deshake: zero-init Transform structs in end_frame()
Ray Simard [Fri, 13 Jan 2012 01:21:06 +0000 (17:21 -0800)]
vf_deshake: zero-init Transform structs in end_frame()

Initialize Transform structs t and orig to zero.

Signed-off-by: Ray Simard <rhs.ffmpeg@sylvan-glade.com>
Signed-off-by: Stefano Sabatini <stefasab@gmail.com>
12 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.

12 years ago8svx: fix memleak in iff-fibonacci fate test.
Clément Bœsch [Fri, 13 Jan 2012 01:14:54 +0000 (02:14 +0100)]
8svx: fix memleak in iff-fibonacci fate test.

12 years agoffmpeg: use av_asprintf() in opt_old2new() and fix a memleak.
Clément Bœsch [Fri, 13 Jan 2012 00:53:34 +0000 (01:53 +0100)]
ffmpeg: use av_asprintf() in opt_old2new() and fix a memleak.

12 years agoffmpeg: fix parse_option() string memleak.
Clément Bœsch [Fri, 13 Jan 2012 00:49:41 +0000 (01:49 +0100)]
ffmpeg: fix parse_option() string memleak.

12 years agoico: favour BITMAPHEADER dimensions over IconEntry dimensions
Peter Ross [Fri, 13 Jan 2012 08:59:29 +0000 (19:59 +1100)]
ico: favour BITMAPHEADER dimensions over IconEntry dimensions

Fixes ticket 759.

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
12 years agoffmpeg.c: transcode_video(): do not go through filter network if encoding is not...
Nicolas Noirbent [Fri, 13 Jan 2012 08:58:16 +0000 (09:58 +0100)]
ffmpeg.c: transcode_video(): do not go through filter network if encoding is not required

This fixes a segmentation fault when doing a transcoding and a stream
copy of the same input stream at the same time, e.g.:

ffmpeg -i in.mkv -c:v mpeg2video transcode.m2v -c copy copy.ts

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
12 years agosegment: fix FPE when segment_list_size is 0
Nicolas Noirbent [Fri, 13 Jan 2012 08:58:15 +0000 (09:58 +0100)]
segment: fix FPE when segment_list_size is 0

With the added benefit that allowing -segment_list_size 0 makes it
possible to keep all segment entries in the list file.

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
12 years agoRevert "riff: remove references to sonic codec ids"
Michael Niedermayer [Fri, 13 Jan 2012 00:40:03 +0000 (01:40 +0100)]
Revert "riff: remove references to sonic codec ids"

This reverts commit 0fd88d398896353074fee153259dbf3530ca423f.

Theres no reason to drop support for this.

12 years agompegtsenc: do not reference the deprecated ffmpeg option 'vbsf' in a log message
Stefano Sabatini [Thu, 12 Jan 2012 23:01:31 +0000 (00:01 +0100)]
mpegtsenc: do not reference the deprecated ffmpeg option 'vbsf' in a log message

Give a more generic advice.

12 years agoffmpeg: clarify error message in case of bitstream filter opening failure
Stefano Sabatini [Thu, 12 Jan 2012 22:56:58 +0000 (23:56 +0100)]
ffmpeg: clarify error message in case of bitstream filter opening failure

12 years agompegtsenc: fix some typos: aac -> AAC, adts -> ADTS
Stefano Sabatini [Thu, 12 Jan 2012 18:46:39 +0000 (19:46 +0100)]
mpegtsenc: fix some typos: aac -> AAC, adts -> ADTS

12 years agompegtsenc: use more meaningful error codes
Stefano Sabatini [Thu, 12 Jan 2012 18:45:10 +0000 (19:45 +0100)]
mpegtsenc: use more meaningful error codes

12 years agorgb2rgb: rgb12to15()
Paul B Mahol [Thu, 12 Jan 2012 20:28:47 +0000 (20:28 +0000)]
rgb2rgb: rgb12to15()

Signed-off-by: Ronald S. Bultje <rsbultje@gmail.com>
12 years agoswscale-test: fix stack overread.
Ronald S. Bultje [Thu, 12 Jan 2012 23:38:37 +0000 (15:38 -0800)]
swscale-test: fix stack overread.

Fixes problems in swscale-test where it gives a 3-member array to a
function expecting a 4-member array.

12 years agoswscale: fix invalid conversions and memory problems.
Ronald S. Bultje [Thu, 12 Jan 2012 23:37:58 +0000 (15:37 -0800)]
swscale: fix invalid conversions and memory problems.

Fixes problems where rgbToRgbWrapper() is called even though it doesn't
support this particular conversion (e.g. converting from RGB444 to
anything). Thirdly, fixes issues where rgbToRgbWrapper() is called for
non-native endiannness conversions (e.g. RGB555BE on a LE system).
Fourthly, fixes crashes when converting from e.g. monowhite to
monowhite, which calls planarCopyWrapper() and overwrites/reads because
n_bytes != n_pixels.

12 years agoMerge remote-tracking branch 'qatar/master'
Michael Niedermayer [Fri, 13 Jan 2012 00:07:30 +0000 (01:07 +0100)]
Merge remote-tracking branch 'qatar/master'

* qatar/master: (21 commits)
  utils: Check for extradata size overflows.
  ARM: rv34: fix asm syntax in dc transform functions
  avio: Fix the value of the deprecated URL_FLAG_NONBLOCK
  rv34: fix and optimise frame dependency checking
  rv34: NEON optimised dc only inverse transform
  avprobe: use avio_size() instead of deprecated AVFormatContext.file_size.
  ffmenc: remove references to deprecated AVFormatContext.timestamp.
  lavf: undeprecate read_seek().
  avserver: remove code using deprecated CODEC_CAP_PARSE_ONLY.
  lavc: replace some remaining FF_I_TYPE with AV_PICTURE_TYPE_I
  lavc: ifdef out parse_only AVOption
  nellymoserdec: SAMPLE_FMT -> AV_SAMPLE_FMT
  mpegvideo_enc: ifdef out/replace references to deprecated codec flags.
  riff: remove references to sonic codec ids
  indeo4: add some missing static and const qualifiers
  rv34: DC-only inverse transform
  avconv: use AVFrame.width/height/format instead of corresponding AVCodecContext fields
  lavfi: move version macros to a new installed header version.h
  vsrc_buffer: release the buffer on uninit.
  rgb2rgb: rgb12tobgr12()
  ...

Conflicts:
avconv.c
doc/APIchanges
ffprobe.c
libavfilter/Makefile
libavfilter/avfilter.h
libswscale/rgb2rgb.c
libswscale/rgb2rgb.h

Merged-by: Michael Niedermayer <michaelni@gmx.at>
12 years agodocs: remove extra sar entry for scale filter
Lou Logan [Thu, 12 Jan 2012 19:24:26 +0000 (10:24 -0900)]
docs: remove extra sar entry for scale filter

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
12 years agoFix decoding of progressive jpgs with unusual pixel formats.
Carl Eugen Hoyos [Thu, 12 Jan 2012 22:20:33 +0000 (23:20 +0100)]
Fix decoding of progressive jpgs with unusual pixel formats.

Fixes ticket #892.

12 years agocabac: split cabac.h into declarations and function definitions
Diego Biurrun [Thu, 12 Jan 2012 20:56:02 +0000 (21:56 +0100)]
cabac: split cabac.h into declarations and function definitions

This fixes standalone compilation of some decoders with --disable-optimizations.
cabac.h defines some inline functions that use symbols from cabac.c.  Without
optimizations these inline functions are not eliminated and linking fails with
references to non-existing symbols.

Splitting the inline functions off into their own header and only #including
it in the places where the inline functions are used allows #including cabac.h
from anywhere without ill effects.

12 years agocabac: Mark ff_h264_mps_state array as static, it is only used within cabac.c.
Diego Biurrun [Thu, 12 Jan 2012 20:35:34 +0000 (21:35 +0100)]
cabac: Mark ff_h264_mps_state array as static, it is only used within cabac.c.

12 years agocabac: Remove ff_h264_lps_state array.
Diego Biurrun [Thu, 12 Jan 2012 20:11:27 +0000 (21:11 +0100)]
cabac: Remove ff_h264_lps_state array.

It was only ever used in the cabac test program, but never initialized.

12 years agoutils: Check for extradata size overflows.
Alex Converse [Thu, 12 Jan 2012 19:12:24 +0000 (11:12 -0800)]
utils: Check for extradata size overflows.

12 years agoARM: rv34: fix asm syntax in dc transform functions
Mans Rullgard [Thu, 12 Jan 2012 19:37:31 +0000 (19:37 +0000)]
ARM: rv34: fix asm syntax in dc transform functions

Signed-off-by: Mans Rullgard <mans@mansr.com>
Signed-off-by: Janne Grunau <janne-libav@jannau.net>
12 years agoavio: Fix the value of the deprecated URL_FLAG_NONBLOCK
Martin Storsjö [Thu, 12 Jan 2012 15:06:04 +0000 (17:06 +0200)]
avio: Fix the value of the deprecated URL_FLAG_NONBLOCK

This isn't used in practice anywhere within libav at the moment,
but change it for consistency until it is removed.
URL_RDONLY/WRONLY were fixed in commit 5b81e295931 (after the
values that actually were used were changed at the major bump,
in commit cbea3ac8), but this flag was unintentionally left unfixed.

Signed-off-by: Martin Storsjö <martin@martin.st>
12 years agoUse an int MotionVector for find_block_motion.
Reimar Döffinger [Sat, 7 Jan 2012 11:20:38 +0000 (12:20 +0100)]
Use an int MotionVector for find_block_motion.

Using the double variant causes several pointless conversions between
double and int.
Worse, one of the conversions is in an inner loop together with a
function using MMX, resulting in undefined behaviour.
Based on debugging by Ray Simard.

Signed-off-by: Reimar Döffinger <Reimar.Doeffinger@gmx.de>
Tested-by: Ray Simard <rhs.ffmpeg@sylvan-glade.com>
12 years agowtvdec: fix a few memleaks as show by valgrind with the FATE test.
Reimar Döffinger [Wed, 11 Jan 2012 23:50:48 +0000 (00:50 +0100)]
wtvdec: fix a few memleaks as show by valgrind with the FATE test.

Signed-off-by: Reimar Döffinger <Reimar.Doeffinger@gmx.de>
12 years agorv34: fix and optimise frame dependency checking
Janne Grunau [Wed, 11 Jan 2012 19:10:23 +0000 (20:10 +0100)]
rv34: fix and optimise frame dependency checking

The sporadic threading errors during fate-rv30 were caused by calling
ff_thread_await_progress with mb row -1 as argument. That returns
immediately since progress is initialized to -1. Not yet computed
motion vectors from the reference could be used for the first
macroblocks.

12 years agorv34: NEON optimised dc only inverse transform
Janne Grunau [Thu, 12 Jan 2012 16:21:48 +0000 (17:21 +0100)]
rv34: NEON optimised dc only inverse transform

30-50% faster than the C implementation, 0.5% overall speedup on
bourne.rmvb.

12 years agoavprobe: use avio_size() instead of deprecated AVFormatContext.file_size.
Anton Khirnov [Thu, 12 Jan 2012 08:45:13 +0000 (09:45 +0100)]
avprobe: use avio_size() instead of deprecated AVFormatContext.file_size.

12 years agoffmenc: remove references to deprecated AVFormatContext.timestamp.
Anton Khirnov [Thu, 12 Jan 2012 08:38:13 +0000 (09:38 +0100)]
ffmenc: remove references to deprecated AVFormatContext.timestamp.

12 years agolavf: undeprecate read_seek().
Anton Khirnov [Thu, 12 Jan 2012 08:36:11 +0000 (09:36 +0100)]
lavf: undeprecate read_seek().

The "new seeking API" was never finished and nobody is working on it.

12 years agoavserver: remove code using deprecated CODEC_CAP_PARSE_ONLY.
Anton Khirnov [Thu, 12 Jan 2012 08:33:16 +0000 (09:33 +0100)]
avserver: remove code using deprecated CODEC_CAP_PARSE_ONLY.

12 years agolavc: replace some remaining FF_I_TYPE with AV_PICTURE_TYPE_I
Anton Khirnov [Thu, 12 Jan 2012 08:29:43 +0000 (09:29 +0100)]
lavc: replace some remaining FF_I_TYPE with AV_PICTURE_TYPE_I

12 years agolavc: ifdef out parse_only AVOption
Anton Khirnov [Thu, 12 Jan 2012 08:28:15 +0000 (09:28 +0100)]
lavc: ifdef out parse_only AVOption

12 years agonellymoserdec: SAMPLE_FMT -> AV_SAMPLE_FMT
Anton Khirnov [Thu, 12 Jan 2012 08:26:11 +0000 (09:26 +0100)]
nellymoserdec: SAMPLE_FMT -> AV_SAMPLE_FMT

12 years agompegvideo_enc: ifdef out/replace references to deprecated codec flags.
Anton Khirnov [Thu, 12 Jan 2012 08:25:05 +0000 (09:25 +0100)]
mpegvideo_enc: ifdef out/replace references to deprecated codec flags.

12 years agoriff: remove references to sonic codec ids
Anton Khirnov [Thu, 12 Jan 2012 08:12:59 +0000 (09:12 +0100)]
riff: remove references to sonic codec ids

They are deprecated and will be purged on next major bump.

12 years agoffprobe: reindent after previous commit
Stefano Sabatini [Tue, 10 Jan 2012 21:47:07 +0000 (22:47 +0100)]
ffprobe: reindent after previous commit

12 years agoffprobe: add support to audio frame information printing
Stefano Sabatini [Tue, 10 Jan 2012 21:44:32 +0000 (22:44 +0100)]
ffprobe: add support to audio frame information printing

12 years agoffprobe: set AV_LOG_SKIP_REPEATED log flag
Stefano Sabatini [Thu, 12 Jan 2012 16:30:10 +0000 (17:30 +0100)]
ffprobe: set AV_LOG_SKIP_REPEATED log flag

Consistent with ffmpeg and ffplay.

12 years agoFix linesize for rawvideo in mov.
Carl Eugen Hoyos [Thu, 12 Jan 2012 16:02:13 +0000 (17:02 +0100)]
Fix linesize for rawvideo in mov.

Fixes ticket #823.

12 years agoFix compilation with yasm-0.6.2
Carl Eugen Hoyos [Thu, 12 Jan 2012 15:35:49 +0000 (16:35 +0100)]
Fix compilation with yasm-0.6.2

12 years agosws: yuv2rgb asm, add memory clobber.
Michael Niedermayer [Wed, 11 Jan 2012 19:42:23 +0000 (20:42 +0100)]
sws: yuv2rgb asm, add memory clobber.

This fixes dithering for rgb555le, it appears gcc had moved the
setup of the variables after the asm or something like that.

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
12 years agoico: reject icon entries that are smaller than sizeof(BITMAPHEADER)
Peter Ross [Thu, 12 Jan 2012 12:42:05 +0000 (23:42 +1100)]
ico: reject icon entries that are smaller than sizeof(BITMAPHEADER)

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
12 years agoico: ignore IconEntry.bpp value, and favour BITMAPHEADER.NumColors value over that...
Peter Ross [Thu, 12 Jan 2012 12:41:50 +0000 (23:41 +1100)]
ico: ignore IconEntry.bpp value, and favour BITMAPHEADER.NumColors value over that in IconEntry

Fixes ticket 905.

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
12 years agoico: consider IconEntry.NumColors of 255 to be ambiguous
Peter Ross [Thu, 12 Jan 2012 12:41:38 +0000 (23:41 +1100)]
ico: consider IconEntry.NumColors of 255 to be ambiguous

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
12 years agolavc: constify enums for .pix_fmts
Paul B Mahol [Wed, 11 Jan 2012 21:30:43 +0000 (21:30 +0000)]
lavc: constify enums for .pix_fmts

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
12 years agobmpdec: proper check for alpha
Paul B Mahol [Thu, 12 Jan 2012 01:47:59 +0000 (01:47 +0000)]
bmpdec: proper check for alpha

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
12 years agoavfilter: pool draining and self destruction support.
Michael Niedermayer [Thu, 12 Jan 2012 01:32:41 +0000 (02:32 +0100)]
avfilter: pool draining and self destruction support.

This should fix a memleak.

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