ffmpeg.git
8 years agoh264: merge _internal & template files.
Michael Niedermayer [Wed, 11 May 2011 11:56:12 +0000 (13:56 +0200)]
h264: merge _internal & template files.

seems git missed them and we temporary lost our improvments in them.
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
8 years agoCheck syntax even if DEBUG is not defined.
Reimar Döffinger [Wed, 11 May 2011 10:26:25 +0000 (12:26 +0200)]
Check syntax even if DEBUG is not defined.

8 years agoswscale: remove fork bug that i missed in the merge.
Michael Niedermayer [Wed, 11 May 2011 04:26:47 +0000 (06:26 +0200)]
swscale: remove fork bug that i missed in the merge.
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
8 years agofix fate failures for 10bit H264 on some systems
Ronald S. Bultje [Wed, 11 May 2011 04:25:25 +0000 (06:25 +0200)]
fix fate failures for 10bit H264 on some systems

This is possibly a temporary solution

8 years agoMerge remote branch 'qatar/master'
Michael Niedermayer [Wed, 11 May 2011 03:34:17 +0000 (05:34 +0200)]
Merge remote branch 'qatar/master'

* qatar/master: (30 commits)
  AVOptions: make default_val a union, as proposed in AVOption2.
  arm/h264pred: add missing argument type.
  h264dsp_mmx: place bracket outside #if/#endif block.
  lavf/utils: fix ff_interleave_compare_dts corner case.
  fate: add 10-bit H264 tests.
  h264: do not print "too many references" warning for intra-only.
  Enable decoding of high bit depth h264.
  Adds 8-, 9- and 10-bit versions of some of the functions used by the h264 decoder.
  Add support for higher QP values in h264.
  Add the notion of pixel size in h264 related functions.
  Make the h264 loop filter bit depth aware.
  Template dsputil_template.c with respect to pixel size, etc.
  Template h264idct_template.c with respect to pixel size, etc.
  Preparatory patch for high bit depth h264 decoding support.
  Move some functions in dsputil.c into a new file dsputil_template.c.
  Move the functions in h264idct into a new file h264idct_template.c.
  Move the functions in h264pred.c into a new file h264pred_template.c.
  Preparatory patch for high bit depth h264 decoding support.
  Add pixel formats for 9- and 10-bit yuv420p.
  Choose h264 chroma dc dequant function dynamically.
  ...

Conflicts:
doc/APIchanges
ffmpeg.c
ffplay.c
libavcodec/alpha/dsputil_alpha.c
libavcodec/arm/dsputil_init_arm.c
libavcodec/arm/dsputil_init_armv6.c
libavcodec/arm/dsputil_init_neon.c
libavcodec/arm/dsputil_iwmmxt.c
libavcodec/arm/h264pred_init_arm.c
libavcodec/bfin/dsputil_bfin.c
libavcodec/dsputil.c
libavcodec/h264.c
libavcodec/h264.h
libavcodec/h264_cabac.c
libavcodec/h264_cavlc.c
libavcodec/h264_loopfilter.c
libavcodec/h264_ps.c
libavcodec/h264_refs.c
libavcodec/h264dsp.c
libavcodec/h264idct.c
libavcodec/h264pred.c
libavcodec/mlib/dsputil_mlib.c
libavcodec/options.c
libavcodec/ppc/dsputil_altivec.c
libavcodec/ppc/dsputil_ppc.c
libavcodec/ppc/h264_altivec.c
libavcodec/ps2/dsputil_mmi.c
libavcodec/sh4/dsputil_align.c
libavcodec/sh4/dsputil_sh4.c
libavcodec/sparc/dsputil_vis.c
libavcodec/utils.c
libavcodec/version.h
libavcodec/x86/dsputil_mmx.c
libavformat/options.c
libavformat/utils.c
libavutil/pixfmt.h
libswscale/swscale.c
libswscale/swscale_internal.h
libswscale/swscale_template.c
tests/ref/seek/lavf_avi

Merged-by: Michael Niedermayer <michaelni@gmx.at>
8 years agoAllocate per codec options, now that options are freed between inputs and outputs.
Baptiste Coudurier [Tue, 10 May 2011 23:40:21 +0000 (16:40 -0700)]
Allocate per codec options, now that options are freed between inputs and outputs.

8 years agoerror_concealment: Use previous pictures motion vectors when the current ones have...
Michael Niedermayer [Tue, 10 May 2011 22:47:55 +0000 (00:47 +0200)]
error_concealment: Use previous pictures motion vectors when the current ones have been lost.

Looks better for some cases, worse for others, overall not much difference.
Its more correct though.
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
8 years agoMerging branch 'ffmpeg-mt/master'
Multiple Authors [Tue, 10 May 2011 21:12:44 +0000 (23:12 +0200)]
Merging branch 'ffmpeg-mt/master'

Just some cosmetics & comments, the only functional change
"error_resilience: use s->last_picture for accessing last MVs."
Is so buggy that it needs a full rewrite, guess -1.0 PSNR loss wasnt
enough for ronald to realize there was a problem.

8 years ago"Initialize" copy_tb like the other global variables.
Robert Leatherwood [Tue, 10 May 2011 22:57:42 +0000 (00:57 +0200)]
"Initialize" copy_tb like the other global variables.

8 years agotiff: prefer enum TiffCompr over int for TiffContext.compr
Stefano Sabatini [Mon, 9 May 2011 19:05:42 +0000 (21:05 +0200)]
tiff: prefer enum TiffCompr over int for TiffContext.compr

Help debugging, safer.

8 years agotiff: remove duplicated author information, fix @file doxy
Stefano Sabatini [Mon, 9 May 2011 17:21:26 +0000 (19:21 +0200)]
tiff: remove duplicated author information, fix @file doxy

8 years agotiff: perform minor cleanups in the header
Stefano Sabatini [Mon, 9 May 2011 17:19:04 +0000 (19:19 +0200)]
tiff: perform minor cleanups in the header

Add link to official specifications, remove author duplication and
others.

8 years ago8svx: remove pointless comments
Stefano Sabatini [Tue, 10 May 2011 08:22:24 +0000 (10:22 +0200)]
8svx: remove pointless comments

8 years ago8svx: add links to documentation resources
Stefano Sabatini [Mon, 9 May 2011 22:16:39 +0000 (00:16 +0200)]
8svx: add links to documentation resources

8 years ago8svx: remove duplicated author/file information
Stefano Sabatini [Mon, 9 May 2011 22:13:08 +0000 (00:13 +0200)]
8svx: remove duplicated author/file information

8 years agoiff: remove get_image_data() and get_image_size() wrappers
Stefano Sabatini [Mon, 9 May 2011 21:58:20 +0000 (23:58 +0200)]
iff: remove get_image_data() and get_image_size() wrappers

Remove one level of indirection, simplify code.

8 years agoiff: remove get_palette_size() wrapper
Stefano Sabatini [Mon, 9 May 2011 21:51:33 +0000 (23:51 +0200)]
iff: remove get_palette_size() wrapper

Remove one level of indirection/improve readability.

8 years agoiff: remove pointless get_palette_data() wrapper
Stefano Sabatini [Mon, 9 May 2011 21:45:47 +0000 (23:45 +0200)]
iff: remove pointless get_palette_data() wrapper

Also rename variable "extradata" to "palette" ff_cmap_read_palette()
and extract_header(), more meaningful.

8 years agomotion_est: fix ffmpeg compilation with DEBUG defined
Maksym Veremeyenko [Tue, 10 May 2011 12:12:40 +0000 (15:12 +0300)]
motion_est: fix ffmpeg compilation with DEBUG defined

Remove the problematic av_dlog() call

8 years agompegaudio: remove frame_count variable and its only usage, it is always 0.
Reimar Döffinger [Tue, 10 May 2011 16:46:54 +0000 (18:46 +0200)]
mpegaudio: remove frame_count variable and its only usage, it is always 0.

8 years agoAVOptions: make default_val a union, as proposed in AVOption2.
Anton Khirnov [Sat, 30 Apr 2011 05:43:26 +0000 (07:43 +0200)]
AVOptions: make default_val a union, as proposed in AVOption2.

This breaks API and ABI.

8 years agoAdded oggpagesize option for Ogg encoding. Allows setting a preferred page size....
Andres Gonzalez [Thu, 27 Jan 2011 09:14:21 +0000 (10:14 +0100)]
Added oggpagesize option for Ogg encoding. Allows setting a preferred page size. When set, if an Ogg stream buffer has enough data, a page is made, instead of filling maximum-size pages.

8 years agoffmpeg: Fix -t with files that do not have any timestamps.
Michael Niedermayer [Tue, 10 May 2011 15:31:32 +0000 (17:31 +0200)]
ffmpeg: Fix -t with files that do not have any timestamps.

This for example fixes -t with some frext h264 reference streams.
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
8 years agoarm/h264pred: add missing argument type.
Ronald S. Bultje [Tue, 10 May 2011 12:44:49 +0000 (08:44 -0400)]
arm/h264pred: add missing argument type.

8 years agoswscale: Fix scaling for unscaled dithered planar convertions.
Michael Niedermayer [Tue, 10 May 2011 12:40:05 +0000 (14:40 +0200)]
swscale: Fix scaling for unscaled dithered planar convertions.

This fixes some overflow in bright areas and ensures that the maximum brightness level is
mapped to the maximum without cliping and without showing dither patterens in flat max
brightness areas.
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
8 years agoh264dsp_mmx: place bracket outside #if/#endif block.
Ronald S. Bultje [Tue, 10 May 2011 12:39:38 +0000 (08:39 -0400)]
h264dsp_mmx: place bracket outside #if/#endif block.

Should fix compile on systems missing yasm/nasm.

8 years agolavf/utils: fix ff_interleave_compare_dts corner case.
Vitor Sessak [Sat, 7 May 2011 20:48:29 +0000 (22:48 +0200)]
lavf/utils: fix ff_interleave_compare_dts corner case.

This should fix behavior introduced by commit
96573c0d7605672d69b42ae1dcf18764ce47c71a. Av_rescale_rnd() is not
lossless so if two timestamps are equal after being rescaled they are
not always actually identical. This patch use av_compare_ts() to get
always a correct result.

Signed-off-by: Ronald S. Bultje <rsbultje@gmail.com>
8 years agofate: add 10-bit H264 tests.
Ronald S. Bultje [Sat, 7 May 2011 01:46:54 +0000 (21:46 -0400)]
fate: add 10-bit H264 tests.

8 years agoh264: do not print "too many references" warning for intra-only.
Ronald S. Bultje [Fri, 6 May 2011 20:31:26 +0000 (16:31 -0400)]
h264: do not print "too many references" warning for intra-only.

Fixes issue 2679.

8 years agoEnable decoding of high bit depth h264.
Oskar Arvidsson [Tue, 29 Mar 2011 15:49:00 +0000 (17:49 +0200)]
Enable decoding of high bit depth h264.

This patch completes the high bit depth h264 decoding support.

Signed-off-by: Ronald S. Bultje <rsbultje@gmail.com>
8 years agoAdds 8-, 9- and 10-bit versions of some of the functions used by the h264 decoder.
Oskar Arvidsson [Tue, 29 Mar 2011 15:48:59 +0000 (17:48 +0200)]
Adds 8-, 9- and 10-bit versions of some of the functions used by the h264 decoder.

This patch lets e.g. dsputil_init chose dsp functions with respect to
the bit depth to decode. The naming scheme of bit depth dependent
functions is <base name>_<bit depth>[_<prefix>] (i.e. the old
clear_blocks_c is now named clear_blocks_8_c).

Note: Some of the functions for high bit depth is not dependent on the
bit depth, but only on the pixel size. This leaves some room for
optimizing binary size.

Preparatory patch for high bit depth h264 decoding support.

Signed-off-by: Ronald S. Bultje <rsbultje@gmail.com>
8 years agoAdd support for higher QP values in h264.
Oskar Arvidsson [Tue, 29 Mar 2011 15:48:58 +0000 (17:48 +0200)]
Add support for higher QP values in h264.

In high bit depth, the QP values may now be up to (51 + 6*(bit_depth-8)).

Preparatory patch for high bit depth h264 decoding support.

Signed-off-by: Ronald S. Bultje <rsbultje@gmail.com>
8 years agoAdd the notion of pixel size in h264 related functions.
Oskar Arvidsson [Tue, 29 Mar 2011 15:48:57 +0000 (17:48 +0200)]
Add the notion of pixel size in h264 related functions.

In high bit depth the pixels will not be stored in uint8_t like in the
normal case, but in uint16_t. The pixel size is thus 1 in normal bit
depth and 2 in high bit depth.

Preparatory patch for high bit depth h264 decoding support.

Signed-off-by: Ronald S. Bultje <rsbultje@gmail.com>
8 years agoMake the h264 loop filter bit depth aware.
Oskar Arvidsson [Tue, 29 Mar 2011 15:48:56 +0000 (17:48 +0200)]
Make the h264 loop filter bit depth aware.

Preparatory patch for high bit depth h264 decoding support.

Signed-off-by: Ronald S. Bultje <rsbultje@gmail.com>
8 years agoTemplate dsputil_template.c with respect to pixel size, etc.
Oskar Arvidsson [Tue, 29 Mar 2011 15:48:55 +0000 (17:48 +0200)]
Template dsputil_template.c with respect to pixel size, etc.

Preparatory patch for high bit depth h264 decoding support.

Signed-off-by: Ronald S. Bultje <rsbultje@gmail.com>
8 years agoTemplate h264idct_template.c with respect to pixel size, etc.
Oskar Arvidsson [Tue, 29 Mar 2011 15:48:54 +0000 (17:48 +0200)]
Template h264idct_template.c with respect to pixel size, etc.

Preparatory patch for high bit depth h264 decoding support.

Signed-off-by: Ronald S. Bultje <rsbultje@gmail.com>
8 years agoPreparatory patch for high bit depth h264 decoding support.
Oskar Arvidsson [Mon, 9 May 2011 15:18:37 +0000 (11:18 -0400)]
Preparatory patch for high bit depth h264 decoding support.

Signed-off-by: Ronald S. Bultje <rsbultje@gmail.com>
8 years agoMove some functions in dsputil.c into a new file dsputil_template.c.
Oskar Arvidsson [Tue, 29 Mar 2011 15:48:51 +0000 (17:48 +0200)]
Move some functions in dsputil.c into a new file dsputil_template.c.

The functions moved are used when decoding h264.
Preparatory patch for high bit depth h264 decoding support.

Signed-off-by: Ronald S. Bultje <rsbultje@gmail.com>
8 years agoMove the functions in h264idct into a new file h264idct_template.c.
Oskar Arvidsson [Tue, 29 Mar 2011 15:48:50 +0000 (17:48 +0200)]
Move the functions in h264idct into a new file h264idct_template.c.

Preparatory patch for high bit depth h264 decoding support.

Signed-off-by: Ronald S. Bultje <rsbultje@gmail.com>
8 years agoMove the functions in h264pred.c into a new file h264pred_template.c.
Oskar Arvidsson [Tue, 29 Mar 2011 15:48:49 +0000 (17:48 +0200)]
Move the functions in h264pred.c into a new file h264pred_template.c.

Preparatory patch for high bit depth h264 decoding support.

Signed-off-by: Ronald S. Bultje <rsbultje@gmail.com>
8 years agoPreparatory patch for high bit depth h264 decoding support.
Oskar Arvidsson [Mon, 9 May 2011 14:58:40 +0000 (10:58 -0400)]
Preparatory patch for high bit depth h264 decoding support.

Signed-off-by: Ronald S. Bultje <rsbultje@gmail.com>
8 years agoAdd pixel formats for 9- and 10-bit yuv420p.
Oskar Arvidsson [Tue, 29 Mar 2011 15:48:47 +0000 (17:48 +0200)]
Add pixel formats for 9- and 10-bit yuv420p.

Also add support for these formats in libswscale.

Needed for high bit depth h264 decoding.

Signed-off-by: Ronald S. Bultje <rsbultje@gmail.com>
8 years agoChoose h264 chroma dc dequant function dynamically.
Oskar Arvidsson [Sun, 10 Apr 2011 20:42:36 +0000 (22:42 +0200)]
Choose h264 chroma dc dequant function dynamically.

Needed for high bit depth h264 decoding.

Signed-off-by: Ronald S. Bultje <rsbultje@gmail.com>
8 years agoh264: DSP'ize MBAFF loopfilter.
Ronald S. Bultje [Mon, 9 May 2011 13:48:21 +0000 (09:48 -0400)]
h264: DSP'ize MBAFF loopfilter.

8 years agoffmpeg: Simplify decode loop condition to not use next_pts
Alexander Strange [Tue, 10 May 2011 05:53:46 +0000 (01:53 -0400)]
ffmpeg: Simplify decode loop condition to not use next_pts

Signed-off-by: Ronald S. Bultje <rsbultje@gmail.com>
8 years agolavc: move some flac-specific options to its private context.
Anton Khirnov [Sat, 2 Apr 2011 10:28:01 +0000 (12:28 +0200)]
lavc: move some flac-specific options to its private context.

8 years agoffmpeg: remove unused fields AVOutputStream.original_width/height
Stefano Sabatini [Sat, 16 Apr 2011 21:14:44 +0000 (23:14 +0200)]
ffmpeg: remove unused fields AVOutputStream.original_width/height

Signed-off-by: Stefano Sabatini <stefano.sabatini-lala@poste.it>
Signed-off-by: Anton Khirnov <anton@khirnov.net>
8 years agoffmpeg: remove unused variable padding_src in do_video_out()
Stefano Sabatini [Sat, 16 Apr 2011 20:51:04 +0000 (22:51 +0200)]
ffmpeg: remove unused variable padding_src in do_video_out()

Signed-off-by: Stefano Sabatini <stefano.sabatini-lala@poste.it>
Signed-off-by: Anton Khirnov <anton@khirnov.net>
8 years agoffmpeg: fix negative verbosity.
Michael Niedermayer [Mon, 18 Apr 2011 11:04:33 +0000 (13:04 +0200)]
ffmpeg: fix negative verbosity.

Signed-off-by: Anton Khirnov <anton@khirnov.net>
8 years agocmdutils: add OPT_INT check in parse_number_or_die()
Stefano Sabatini [Sat, 16 Apr 2011 11:41:53 +0000 (13:41 +0200)]
cmdutils: add OPT_INT check in parse_number_or_die()

Check that the value passed for an OPT_INT option is an int, fail
otherwise.

Signed-off-by: Anton Khirnov <anton@khirnov.net>
8 years agoffmpeg: rename configure_filters() to configure_video_filters()
Stefano Sabatini [Sun, 3 Apr 2011 19:54:57 +0000 (21:54 +0200)]
ffmpeg: rename configure_filters() to configure_video_filters()

Mostly useful for the audio-filters branch, to make more apparent the
distinction between configure_audio_filters() and
configure_video_filters().

Signed-off-by: Stefano Sabatini <stefano.sabatini-lala@poste.it>
Signed-off-by: Anton Khirnov <anton@khirnov.net>
8 years agocmdutils: remove list_fmts(), simplify
Stefano Sabatini [Sat, 12 Mar 2011 11:44:22 +0000 (12:44 +0100)]
cmdutils: remove list_fmts(), simplify

The function was only used in opt_sample_fmt() for listing the sample
formats. Move list_fmts() functionality directly into
opt_sample_fmt().

Also fix the warning:
ffmpeg.c: In function ‘opt_audio_sample_fmt’:
ffmpeg.c:2877: warning: passing argument 1 of ‘list_fmts’ from incompatible pointer type
cmdutils.h:163: note: expected ‘void (*)(char *, int,  int)’ but argument is of type ‘char * (*)(char *, int,  enum AVSampleFormat)’

Signed-off-by: Anton Khirnov <anton@khirnov.net>
8 years agoAdd missing CONFIG_AVFILTER check.
Takashi Mochizuki [Sun, 1 May 2011 03:03:20 +0000 (12:03 +0900)]
Add missing CONFIG_AVFILTER check.

Fix configure --disable-avfilter issue.

Signed-off-by: Anton Khirnov <anton@khirnov.net>
8 years agoMerge remote branch 'qatar/master'
Michael Niedermayer [Tue, 10 May 2011 02:01:29 +0000 (04:01 +0200)]
Merge remote branch 'qatar/master'

* qatar/master:
  mpegaudiodec: group #includes more sanely
  mpegaudio: remove #if 0 blocks
  ffmpeg.c: reset avoptions after each input/output file.
  ffmpeg.c: store per-output stream sws flags.
  mpegaudio: remove CONFIG_MPEGAUDIO_HP option
  mpegtsenc: Clear st->priv_data when freeing it
  udp: Fix receiving RTP data over multicast
  rtpproto: Remove an unused variable
  regtest: fix wma tests
NOT pulled:  mpegaudio: remove CONFIG_AUDIO_NONSHORT
  regtest: separate flags for encoding and decoding

Conflicts:
ffmpeg.c

Merged-by: Michael Niedermayer <michaelni@gmx.at>
8 years agoseeking: Favor pkt->pos for generic index building where possible.
Michael Niedermayer [Tue, 10 May 2011 01:28:42 +0000 (03:28 +0200)]
seeking: Favor pkt->pos for generic index building where possible.

See [FFmpeg-devel] [PATCH] Only using st->parser->pos when doing?repacking in the parser.
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
8 years agoconfigure: Revert sdl hunk of 4fa18c56. This breaks OSX
Michael Niedermayer [Tue, 10 May 2011 01:22:04 +0000 (03:22 +0200)]
configure: Revert sdl hunk of 4fa18c56. This breaks OSX

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
8 years agomem: Choose alignment at compile time depending on AVX enabledness.
Michael Niedermayer [Tue, 10 May 2011 01:15:42 +0000 (03:15 +0200)]
mem: Choose alignment at compile time depending on AVX enabledness.

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
8 years agoswscale: use Nbit code to handle !is16BPS(c->srcFormat) && is16BPS(c->dstFormat)
Michael Niedermayer [Mon, 9 May 2011 22:37:20 +0000 (00:37 +0200)]
swscale: use Nbit code to handle !is16BPS(c->srcFormat) && is16BPS(c->dstFormat)

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
8 years agoswscale: Support dither in is16BPS(c->srcFormat) && !is16BPS(c->dstFormat)
Michael Niedermayer [Mon, 9 May 2011 22:21:18 +0000 (00:21 +0200)]
swscale: Support dither in is16BPS(c->srcFormat) && !is16BPS(c->dstFormat)

This is done by just letting the Nbit code handle it, which now can do it.
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
8 years agoswscale: support unscaled planar Nbit->8bit with non native endian source.
Michael Niedermayer [Mon, 9 May 2011 22:17:44 +0000 (00:17 +0200)]
swscale: support unscaled planar Nbit->8bit with non native endian source.

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
8 years agoswscale: fix unscaled yuv422p16be -> yuv422p10le
Michael Niedermayer [Mon, 9 May 2011 22:15:03 +0000 (00:15 +0200)]
swscale: fix unscaled yuv422p16be -> yuv422p10le
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
8 years agoswscale: make DITHER_COPY() support non native endian source
Michael Niedermayer [Mon, 9 May 2011 22:06:36 +0000 (00:06 +0200)]
swscale: make DITHER_COPY() support non native endian source
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
8 years agompegaudiodec: group #includes more sanely
Mans Rullgard [Mon, 9 May 2011 12:55:24 +0000 (13:55 +0100)]
mpegaudiodec: group #includes more sanely

Signed-off-by: Mans Rullgard <mans@mansr.com>
8 years agompegaudio: remove #if 0 blocks
Mans Rullgard [Mon, 9 May 2011 12:08:08 +0000 (13:08 +0100)]
mpegaudio: remove #if 0 blocks

Signed-off-by: Mans Rullgard <mans@mansr.com>
8 years agoswscale: factor shift out of DITHER_COPY().
Michael Niedermayer [Mon, 9 May 2011 20:02:44 +0000 (22:02 +0200)]
swscale: factor shift out of DITHER_COPY().

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
8 years agoswscale: factorize DITHER_COPY()
Michael Niedermayer [Mon, 9 May 2011 19:38:46 +0000 (21:38 +0200)]
swscale: factorize DITHER_COPY()

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
8 years agofifo: use av_freep()
Michael Niedermayer [Mon, 9 May 2011 19:23:45 +0000 (21:23 +0200)]
fifo: use av_freep()

With this change libavutil uses av_freep() everywhere where it makes sense.
Remaining av_free() use in it has the used pointer become inaccessible quickly
soo zeroing makes no sense.
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
8 years agoffmpeg.c: reset avoptions after each input/output file.
Anton Khirnov [Sat, 7 May 2011 06:55:25 +0000 (08:55 +0200)]
ffmpeg.c: reset avoptions after each input/output file.

This is consistent with how all the other options work.

8 years agoffmpeg.c: store per-output stream sws flags.
Anton Khirnov [Mon, 9 May 2011 14:36:57 +0000 (16:36 +0200)]
ffmpeg.c: store per-output stream sws flags.

8 years agompegaudio: remove CONFIG_MPEGAUDIO_HP option
Mans Rullgard [Mon, 9 May 2011 11:40:37 +0000 (12:40 +0100)]
mpegaudio: remove CONFIG_MPEGAUDIO_HP option

The low quality mode is off by default and never tested.  The high
quality mode is also plenty fast enough.

Signed-off-by: Mans Rullgard <mans@mansr.com>
8 years agompegtsenc: Clear st->priv_data when freeing it
Martin Storsjö [Mon, 9 May 2011 13:29:01 +0000 (16:29 +0300)]
mpegtsenc: Clear st->priv_data when freeing it

If not cleared, the caller might try to free it.

Signed-off-by: Martin Storsjö <martin@martin.st>
8 years agoudp: Fix receiving RTP data over multicast
Martin Storsjö [Mon, 9 May 2011 13:56:56 +0000 (16:56 +0300)]
udp: Fix receiving RTP data over multicast

Earlier, AVIO_RDWR was handled as READ, and all the checks
for the AVIO_WRONLY flag explicitly meant the write-only case.
When changed from old AVIO/URL contants to AVIO_FLAG in
59d96941f0285a5, these comparisons were updated incorrectly, by
mapping checks for AVIO_WRONLY to checks for AVIO_FLAG_WRITE.

When receiving RTP over UDP, the urlcontext is opened with
READ_WRITE flags.

This patch updates the flag comparisons to check for the same
conditions as the code did prior to 59d96941f0285a5.

Signed-off-by: Martin Storsjö <martin@martin.st>
8 years agortpproto: Remove an unused variable
Martin Storsjö [Mon, 9 May 2011 13:50:03 +0000 (16:50 +0300)]
rtpproto: Remove an unused variable

Signed-off-by: Martin Storsjö <martin@martin.st>
8 years agompeg4videoenc: Support negative timestamps.
Michael Niedermayer [Mon, 9 May 2011 15:50:34 +0000 (17:50 +0200)]
mpeg4videoenc: Support negative timestamps.

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
8 years agoavienc: Update 2 debug statements to match the current code.
Michael Niedermayer [Mon, 9 May 2011 15:49:25 +0000 (17:49 +0200)]
avienc: Update 2 debug statements to match the current code.
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
8 years agoavutil: add divide & modulo that round like unsigned ones do that is down.
Michael Niedermayer [Mon, 9 May 2011 15:47:22 +0000 (17:47 +0200)]
avutil: add divide & modulo that round like unsigned ones do that is down.
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
8 years agoh264probe: update to latest spec.
Michael Niedermayer [Mon, 9 May 2011 14:05:29 +0000 (16:05 +0200)]
h264probe: update to latest spec.
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
8 years agoregtest: fix wma tests
Mans Rullgard [Mon, 9 May 2011 11:00:56 +0000 (12:00 +0100)]
regtest: fix wma tests

This adds $DEC_OPTS to the wma decode commands, making tests pass
on systems where the bitexact flag is needed.

Signed-off-by: Mans Rullgard <mans@mansr.com>
8 years agompegaudio: remove CONFIG_AUDIO_NONSHORT
Mans Rullgard [Sun, 8 May 2011 20:44:12 +0000 (21:44 +0100)]
mpegaudio: remove CONFIG_AUDIO_NONSHORT

This fake option cannot be enabled by normal means, and the
floating-point decoder should provide the higher quality this
option presumably was intended for.

Signed-off-by: Mans Rullgard <mans@mansr.com>
8 years agoregtest: separate flags for encoding and decoding
Mans Rullgard [Sat, 7 May 2011 12:57:21 +0000 (13:57 +0100)]
regtest: separate flags for encoding and decoding

This separates encoding and decoding flags, and passes them together
with the related file argument instead of all at the start of the
command line.

Signed-off-by: Mans Rullgard <mans@mansr.com>
8 years agoMerge remote branch 'qatar/master'
Michael Niedermayer [Mon, 9 May 2011 02:27:07 +0000 (04:27 +0200)]
Merge remote branch 'qatar/master'

* qatar/master:
  log: Fix an oob array read.
  cosmetics: trim trailing whitespace in postproc
  Ban strncpy() it's too easy to misuse.
  psymodel: Remove wrapper functions.
  aacenc: Replace loop counters in aac_encode_frame() with more descriptive 'ch' and 'w'.
  regtest: remove redundant flags in jpg test
  regtest: use run_ffmpeg in do_image_formats
  regtest: simplify encoding functions
  ffmpeg.c: check for interlaced flag in the correct place.

Merged-by: Michael Niedermayer <michaelni@gmx.at>
8 years agowtvdec: Avoid gmtime_r() it breaks compile on windows.
Michael Niedermayer [Mon, 9 May 2011 02:17:24 +0000 (04:17 +0200)]
wtvdec: Avoid gmtime_r() it breaks compile on windows.

Better solutions welcome, this is just a quick fix to unbreak compile.
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
8 years agodeveloper.texi: update for git
Michael Niedermayer [Mon, 9 May 2011 02:04:24 +0000 (04:04 +0200)]
developer.texi: update for git
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
8 years agoTypo fix.
Luca Barbato [Mon, 9 May 2011 02:02:57 +0000 (04:02 +0200)]
Typo fix.

8 years agoPatch checklist:Suggest adding a regression test
Michael Niedermayer [Mon, 9 May 2011 02:00:31 +0000 (04:00 +0200)]
Patch checklist:Suggest adding a regression test
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
8 years agodoc:Partial update of our issue tracker doc. More work needed, volunteers welcome.
Michael Niedermayer [Mon, 9 May 2011 01:05:59 +0000 (03:05 +0200)]
doc:Partial update of our issue tracker doc. More work needed, volunteers welcome.
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
8 years agowtv: calculate ole date correctly (is seconds since 1899-12-30)
Peter Ross [Sun, 8 May 2011 18:14:47 +0000 (20:14 +0200)]
wtv: calculate ole date correctly (is seconds since 1899-12-30)

8 years agowtv: detect ole date overflow
Peter Ross [Sun, 8 May 2011 18:13:59 +0000 (20:13 +0200)]
wtv: detect ole date overflow

8 years agoswscale: implement Nbit->non native endian 16bit. Fixes v210.
Michael Niedermayer [Sun, 8 May 2011 22:22:12 +0000 (00:22 +0200)]
swscale: implement Nbit->non native endian 16bit. Fixes v210.
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
8 years agofate: add 9/10 BE pixdesc checksums
Michael Niedermayer [Sun, 8 May 2011 21:57:52 +0000 (23:57 +0200)]
fate: add 9/10 BE pixdesc checksums
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
8 years agolog: Fix an oob array read.
Alex Converse [Fri, 6 May 2011 05:33:31 +0000 (22:33 -0700)]
log: Fix an oob array read.

8 years agocosmetics: trim trailing whitespace in postproc
Alex Converse [Fri, 6 May 2011 05:33:30 +0000 (22:33 -0700)]
cosmetics: trim trailing whitespace in postproc

8 years agoBan strncpy() it's too easy to misuse.
Alex Converse [Tue, 3 May 2011 18:21:49 +0000 (11:21 -0700)]
Ban strncpy() it's too easy to misuse.

8 years agopsymodel: Remove wrapper functions.
Nathan Caldwell [Fri, 6 May 2011 07:19:52 +0000 (01:19 -0600)]
psymodel: Remove wrapper functions.

Instead use the function pointers directly.

8 years agoaacenc: Replace loop counters in aac_encode_frame() with more descriptive 'ch' and...
Nathan Caldwell [Fri, 6 May 2011 07:19:51 +0000 (01:19 -0600)]
aacenc: Replace loop counters in aac_encode_frame() with more descriptive 'ch' and 'w'.

8 years agopnmdec: reindent after the previous commit
Stefano Sabatini [Sat, 7 May 2011 22:50:08 +0000 (00:50 +0200)]
pnmdec: reindent after the previous commit

8 years agopnmdec: add support for mono images with non-space-separated pixel digits
Stefano Sabatini [Sat, 7 May 2011 22:47:14 +0000 (00:47 +0200)]
pnmdec: add support for mono images with non-space-separated pixel digits

When the file to decode contains a sequence of binary values like
"1101110...", decode_frame() was reading the sequence of digits like a
unique integer value, which was resulting in integer overflows.

The change add support for parsing non-space-separated pixel digits
for mono formats, in particular fix decoding of file battrace.pbm, and
fix trac issue #154.

8 years agoffv1enc: support PIX_FMT_YUV420P10 & PIX_FMT_YUV422P10
Michael Niedermayer [Sun, 8 May 2011 16:51:55 +0000 (18:51 +0200)]
ffv1enc: support PIX_FMT_YUV420P10 & PIX_FMT_YUV422P10
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
8 years agov210enc:clip values according to specifications
Baptiste Coudurier [Sun, 8 May 2011 15:58:20 +0000 (17:58 +0200)]
v210enc:clip values according to specifications
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
8 years agov210enc: switch to PIX_FMT_422P10
Baptiste Coudurier [Sun, 8 May 2011 15:57:54 +0000 (17:57 +0200)]
v210enc: switch to PIX_FMT_422P10
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>