ffmpeg.git
8 years agoMerge remote branch 'qatar/master'
Michael Niedermayer [Thu, 5 May 2011 01:09:48 +0000 (03:09 +0200)]
Merge remote branch 'qatar/master'

* qatar/master: (23 commits)
  doc: Check standalone compilation before submitting new components.
  Fix standalone compilation of pipe protocol.
  Fix standalone compilation of ac3_fixed encoder.
  Fix standalone compilation of binkaudio_dct / binkaudio_rdft decoders.
  Fix standalone compilation of IMC decoder.
  Fix standalone compilation of WTV demuxer.
  Fix standalone compilation of MXPEG decoder.
  flashsv: K&R cosmetics
  matroskaenc: fix memory leak
  vc1: make overlap filter for I-frames bit-exact.
  vc1dec: use s->start/end_mb_y instead of passing them as function args.
  Revert "VC1: merge idct8x8, coeff adjustments and put_pixels."
  Replace strncpy() with av_strlcpy().
  indeo3: Eliminate use of long.
  get_bits: make cache unsigned to eliminate undefined signed overflow.
  asfdec: fix assert failure on invalid files
  avfilter: check malloc return values.
Not pulled as reason for reindent is not pulled:  mpegvideo: reindent.
  nutenc: check malloc return values.
Not pulled due to much simpler solution in ffmpeg  *: don't av_malloc(0).
  ...

Conflicts:
doc/developer.texi
libavcodec/Makefile
libavcodec/get_bits.h
libavcodec/mpegvideo.c
libavformat/Makefile
libavutil/log.c

Merged-by: Michael Niedermayer <michaelni@gmx.at>
8 years agorgb24toyv12: break out in the middle before out of array reads.
Michael Niedermayer [Thu, 5 May 2011 00:20:20 +0000 (02:20 +0200)]
rgb24toyv12: break out in the middle before out of array reads.
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
8 years agoffplay: fix memleak if avfilter is disabled
alexandru_mg3 [Wed, 4 May 2011 23:42:53 +0000 (01:42 +0200)]
ffplay: fix memleak if avfilter is disabled

8 years agofile: Fix mmap error check.
Michael Niedermayer [Wed, 4 May 2011 22:52:03 +0000 (00:52 +0200)]
file: Fix mmap error check.
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
8 years agoconfigure: jack currently needs sem_timedwait()
Michael Niedermayer [Wed, 4 May 2011 21:30:14 +0000 (23:30 +0200)]
configure: jack currently needs sem_timedwait()
Should fix ticket99 and ticket43 by disabling jack.
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
8 years agoffplay: removed unused variable channels.
Michael Niedermayer [Wed, 4 May 2011 20:14:22 +0000 (22:14 +0200)]
ffplay: removed unused variable channels.
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
8 years agoDisable warnings for casting pointers to integers, there is nothing wrong with that.
Michael Niedermayer [Wed, 4 May 2011 20:06:41 +0000 (22:06 +0200)]
Disable warnings for casting pointers to integers, there is nothing wrong with that.
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
8 years agoswscale: fix src type
Michael Niedermayer [Wed, 4 May 2011 19:57:08 +0000 (21:57 +0200)]
swscale: fix src type
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
8 years agoFix "libavcodec/dfa.c:189: warning: unused variable ‘frame_end’"
Michael Niedermayer [Wed, 4 May 2011 19:42:08 +0000 (21:42 +0200)]
Fix "libavcodec/dfa.c:189: warning: unused variable ‘frame_end’"
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
8 years agodvbsubdec: Split delete_state()
JULIAN GARDNER [Wed, 4 May 2011 18:44:14 +0000 (20:44 +0200)]
dvbsubdec: Split delete_state()

8 years agoxsubenc: only 1 rectangle is supported so dont allow 0 as it would crash.
Michael Niedermayer [Wed, 4 May 2011 17:01:42 +0000 (19:01 +0200)]
xsubenc: only 1 rectangle is supported so dont allow 0 as it would crash.
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
8 years agosonic: fix sonic decoder to match encoder for sample rates other than 44100.
Justin Ruggles [Mon, 28 Feb 2011 18:20:41 +0000 (13:20 -0500)]
sonic: fix sonic decoder to match encoder for sample rates other than 44100.

8 years agobitstream_reader: Try to fix "get_bits.h:305:45: warning: variable ‘re_cache’ set...
Michael Niedermayer [Wed, 4 May 2011 19:31:07 +0000 (21:31 +0200)]
bitstream_reader: Try to fix "get_bits.h:305:45: warning: variable ‘re_cache’ set but not used [-Wunused-but-set-variable]"
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
8 years agodoc: Check standalone compilation before submitting new components.
Diego Biurrun [Wed, 4 May 2011 18:54:53 +0000 (20:54 +0200)]
doc: Check standalone compilation before submitting new components.

8 years agoFix standalone compilation of pipe protocol.
Diego Biurrun [Wed, 4 May 2011 17:20:03 +0000 (19:20 +0200)]
Fix standalone compilation of pipe protocol.

file_check() is not only used by the file protocol, adjust #ifdef accordingly.

8 years agoFix standalone compilation of ac3_fixed encoder.
Diego Biurrun [Wed, 4 May 2011 17:17:30 +0000 (19:17 +0200)]
Fix standalone compilation of ac3_fixed encoder.

8 years agoFix standalone compilation of binkaudio_dct / binkaudio_rdft decoders.
Diego Biurrun [Wed, 4 May 2011 16:48:51 +0000 (18:48 +0200)]
Fix standalone compilation of binkaudio_dct / binkaudio_rdft decoders.

8 years agoFix standalone compilation of IMC decoder.
Diego Biurrun [Wed, 4 May 2011 16:48:26 +0000 (18:48 +0200)]
Fix standalone compilation of IMC decoder.

8 years agoFix standalone compilation of WTV demuxer.
Diego Biurrun [Wed, 4 May 2011 16:47:07 +0000 (18:47 +0200)]
Fix standalone compilation of WTV demuxer.

8 years agoFix standalone compilation of MXPEG decoder.
Diego Biurrun [Wed, 4 May 2011 12:21:27 +0000 (14:21 +0200)]
Fix standalone compilation of MXPEG decoder.

8 years agoflashsv: K&R cosmetics
Diego Biurrun [Tue, 3 May 2011 14:08:53 +0000 (16:08 +0200)]
flashsv: K&R cosmetics

8 years agobitstream reader: remove unneeded variable initilization.
Michael Niedermayer [Wed, 4 May 2011 18:25:33 +0000 (20:25 +0200)]
bitstream reader: remove unneeded variable initilization.
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
8 years agomatroskaenc: fix memory leak
Mans Rullgard [Wed, 4 May 2011 16:57:37 +0000 (17:57 +0100)]
matroskaenc: fix memory leak

This fixes a memory leak occurring when no cue points are defined
since commit 91819763.

Signed-off-by: Mans Rullgard <mans@mansr.com>
8 years agovc1: make overlap filter for I-frames bit-exact.
Ronald S. Bultje [Wed, 4 May 2011 11:40:53 +0000 (07:40 -0400)]
vc1: make overlap filter for I-frames bit-exact.

8 years agovc1dec: use s->start/end_mb_y instead of passing them as function args.
Ronald S. Bultje [Tue, 3 May 2011 02:09:02 +0000 (22:09 -0400)]
vc1dec: use s->start/end_mb_y instead of passing them as function args.

8 years agoRevert "VC1: merge idct8x8, coeff adjustments and put_pixels."
Ronald S. Bultje [Wed, 4 May 2011 11:35:30 +0000 (07:35 -0400)]
Revert "VC1: merge idct8x8, coeff adjustments and put_pixels."

This reverts commit f8bed30d8b176fa030f6737765338bb4a2bcabc9. The reason
for this is that the overlap filter, which runs after IDCT, should run
on unclamped values, and thus IDCT and put_pixels() cannot be merged if
we want to attempt to be bitexact.

8 years agoReplace strncpy() with av_strlcpy().
Alex Converse [Tue, 3 May 2011 18:19:31 +0000 (11:19 -0700)]
Replace strncpy() with av_strlcpy().

8 years agoindeo3: Eliminate use of long.
Alex Converse [Mon, 25 Apr 2011 00:33:37 +0000 (17:33 -0700)]
indeo3: Eliminate use of long.

8 years agoget_bits: make cache unsigned to eliminate undefined signed overflow.
Alex Converse [Tue, 26 Apr 2011 16:09:05 +0000 (09:09 -0700)]
get_bits: make cache unsigned to eliminate undefined signed overflow.

8 years agoasfdec: fix assert failure on invalid files
Uoti Urpala [Sun, 24 Apr 2011 04:21:30 +0000 (07:21 +0300)]
asfdec: fix assert failure on invalid files

Add an extra size validity check in asf_read_frame_header(). Without
this asf->packet_size_left may become negative, which triggers an
assertion failure later.

Signed-off-by: Ronald S. Bultje <rsbultje@gmail.com>
8 years agoavfilter: check malloc return values.
Ronald S. Bultje [Wed, 4 May 2011 01:25:40 +0000 (21:25 -0400)]
avfilter: check malloc return values.

8 years agompegvideo: reindent.
Ronald S. Bultje [Tue, 3 May 2011 12:23:41 +0000 (08:23 -0400)]
mpegvideo: reindent.

8 years agonutenc: check malloc return values.
Ronald S. Bultje [Tue, 3 May 2011 12:19:42 +0000 (08:19 -0400)]
nutenc: check malloc return values.

8 years agoavfilter: don't av_malloc(0).
Ronald S. Bultje [Wed, 27 Apr 2011 15:29:09 +0000 (08:29 -0700)]
avfilter: don't av_malloc(0).

8 years agonutenc: don't av_malloc(0).
Ronald S. Bultje [Wed, 27 Apr 2011 15:29:02 +0000 (08:29 -0700)]
nutenc: don't av_malloc(0).

8 years agompegvideo: don't av_malloc(0).
Ronald S. Bultje [Wed, 27 Apr 2011 15:28:51 +0000 (08:28 -0700)]
mpegvideo: don't av_malloc(0).

8 years agoasfdec: fix parsing of packets that overrun into padding.
Ronald S. Bultje [Wed, 27 Apr 2011 22:42:16 +0000 (15:42 -0700)]
asfdec: fix parsing of packets that overrun into padding.

Signed-off-by: Ronald S. Bultje <rsbultje@gmail.com>
8 years agoMerge remote branch 'qatar/master'
Michael Niedermayer [Wed, 4 May 2011 02:06:26 +0000 (04:06 +0200)]
Merge remote branch 'qatar/master'

* qatar/master:
  Implement fate-rsync target
  Make ffmpeg support generic data stream

Conflicts:
cmdutils.h

Merged-by: Michael Niedermayer <michaelni@gmx.at>
8 years agomsvideo1 regression test
Michael Niedermayer [Sat, 12 Feb 2011 23:23:47 +0000 (00:23 +0100)]
msvideo1 regression test

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
8 years agoMS Video 1 encoder
Kostya Shishkov [Sun, 23 Jan 2011 14:58:23 +0000 (15:58 +0100)]
MS Video 1 encoder

8 years agoImplement fate-rsync target
Reinhard Tartler [Sun, 1 May 2011 14:48:40 +0000 (16:48 +0200)]
Implement fate-rsync target

8 years agoMake ffmpeg support generic data stream
Luca Barbato [Thu, 14 Apr 2011 11:32:36 +0000 (13:32 +0200)]
Make ffmpeg support generic data stream

The patch is the first step to support -dcodec copy

8 years agoRemove lowres support from wmv2 decoder
ami_stuff [Thu, 28 Apr 2011 23:20:10 +0000 (01:20 +0200)]
Remove lowres support from wmv2 decoder

lowres option crashes with wmv2 files which I have for test,
so I think it's better to remove the support to the time when
lowres will be really supported by this codec

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
8 years agoMerge remote branch 'qatar/master'
Michael Niedermayer [Tue, 3 May 2011 02:08:23 +0000 (04:08 +0200)]
Merge remote branch 'qatar/master'

* qatar/master:
  vp8: frame-multithreading.
Duplicate  Replace deprecated FF_*_TYPE symbols with AV_PICTURE_TYPE_*.
Duplicate  Replace deprecated av_get_pict_type_char() with av_get_picture_type_char().
Bug spoted&removed in last merge:  dpx: Do not use DPX encoder for decoding.

Conflicts:
ffmpeg.c
ffplay.c
libavcodec/h264.c
libavcodec/mpeg12.c
libavcodec/mpeg4videodec.c
libavcodec/mpegvideo.c
libavcodec/mpegvideo_enc.c

Merged-by: Michael Niedermayer <michaelni@gmx.at>
8 years agoSupport decoding of 24 bit True Audio samples-
Carl Eugen Hoyos [Mon, 2 May 2011 23:09:30 +0000 (01:09 +0200)]
Support decoding of 24 bit True Audio samples-

Many samples will fail because "Output buffer size is too small."

8 years agoSupport decoding of 8 bit True Audio samples-
Carl Eugen Hoyos [Mon, 2 May 2011 23:06:18 +0000 (01:06 +0200)]
Support decoding of 8 bit True Audio samples-

Many samples will fail because "Output buffer size is too small."

8 years agoDo not assume AV_SAMPLE_FMT_S16 as tta sample format.
Carl Eugen Hoyos [Mon, 2 May 2011 23:02:07 +0000 (01:02 +0200)]
Do not assume AV_SAMPLE_FMT_S16 as tta sample format.

8 years agoFix init_get_bits length argument for init_get_bits.
Alexandre Colucci [Mon, 2 May 2011 16:55:02 +0000 (18:55 +0200)]
Fix init_get_bits length argument for init_get_bits.

Do not use rlelen for buffer size in init_get_bits, it is
only the size of the data for the first field.
Since it is not reliable, just use the size of the whole buffer.
Additional comments add removal of unused rlelen variable by
Reimar Döffinger.

8 years agoAdd *.j2k extension to JPEG2000 decoder
ami_stuff [Sun, 1 May 2011 23:45:05 +0000 (01:45 +0200)]
Add *.j2k extension to JPEG2000 decoder

Some files with *.j2k extension can be found for example here:

http://www.openjpeg.org/index.php?menu=samples

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
8 years agoChange guess_palette so its output matches the most common palette.
Reimar Döffinger [Sat, 30 Apr 2011 21:00:17 +0000 (23:00 +0200)]
Change guess_palette so its output matches the most common palette.

This means it uses full brightness range and brightness
increasing instead of decreasing with index of non-opaque
color.

Based on patch by Alexandre Colucci [alexandre elgato com]

8 years agoMake DV (sub) demuxer set proper pkt->pos values.
Reimar Döffinger [Sat, 30 Apr 2011 09:55:36 +0000 (11:55 +0200)]
Make DV (sub) demuxer set proper pkt->pos values.

This makes the avi demuxer create packets with proper pos values
with the file from ticket #140.

8 years agovp8: frame-multithreading.
Ronald S. Bultje [Mon, 2 May 2011 13:55:52 +0000 (09:55 -0400)]
vp8: frame-multithreading.

Tested on a Mac Pro, 2 CPUs, 2 cores each, OSX 10.6.6:

time ./ffmpeg -v 0 -vsync 0 -threads [1234] -i \
  ~/Downloads/sintel_trailer_1080p_vp8_vorbis.webm \
  -f null -vcodec rawvideo -an -
1: 0m14.630s (89.9 fps)
2: 0m8.056s (163.2 fps)
3: 0m5.882s (223.6 fps)
4: 0m4.952s (265.6 fps)

time ./ffmpeg -v 0 -vsync 0 -threads [1234] -i \
  ~/Downloads/Elephants_Dream-720p-Stereo.webm \
  -f null -vcodec rawvideo -an -
1: 1m12.962s (215.1 fps)
2: 0m44.682s (351.2 fps)
3: 0m31.183s (503.2 fps)
4: 0m25.284s (620.6 fps)

Signed-off-by: Anton Khirnov <anton@khirnov.net>
8 years agoscale: fix leak occurring when a scale filter is reconfigured
Stefano Sabatini [Mon, 2 May 2011 10:35:39 +0000 (12:35 +0200)]
scale: fix leak occurring when a scale filter is reconfigured

This currently only occurrs in vsrc_buffer in case of mid-stream
size/format change.

Fix trac issue #124.

8 years agovsrc_buffer: improve reporting in case of format/size change
Stefano Sabatini [Sun, 1 May 2011 23:41:28 +0000 (01:41 +0200)]
vsrc_buffer: improve reporting in case of format/size change

8 years agoreplace deprecated FF_*_TYPE symbols with AV_PICTURE_TYPE_*
Stefano Sabatini [Wed, 27 Apr 2011 23:40:44 +0000 (01:40 +0200)]
replace deprecated FF_*_TYPE symbols with AV_PICTURE_TYPE_*

8 years agoreplace deprecated av_get_pict_type_char() with av_get_picture_type_char()
Stefano Sabatini [Wed, 27 Apr 2011 23:03:28 +0000 (01:03 +0200)]
replace deprecated av_get_pict_type_char() with av_get_picture_type_char()

8 years agoReplace deprecated FF_*_TYPE symbols with AV_PICTURE_TYPE_*.
Stefano Sabatini [Fri, 29 Apr 2011 16:53:57 +0000 (18:53 +0200)]
Replace deprecated FF_*_TYPE symbols with AV_PICTURE_TYPE_*.

Signed-off-by: Diego Biurrun <diego@biurrun.de>
8 years agoReplace deprecated av_get_pict_type_char() with av_get_picture_type_char().
Stefano Sabatini [Fri, 29 Apr 2011 14:37:23 +0000 (16:37 +0200)]
Replace deprecated av_get_pict_type_char() with av_get_picture_type_char().

Signed-off-by: Diego Biurrun <diego@biurrun.de>
8 years agodpx: Do not use DPX encoder for decoding.
Kostya Shishkov [Mon, 2 May 2011 08:37:36 +0000 (10:37 +0200)]
dpx: Do not use DPX encoder for decoding.

10l to the one who hasn't checked this.

8 years agoMerge remote branch 'qatar/master'
Michael Niedermayer [Mon, 2 May 2011 01:37:36 +0000 (03:37 +0200)]
Merge remote branch 'qatar/master'

* qatar/master:
  ALPHA: Replace sized int_fast integer types with plain int/unsigned.
Duplicate  DPX image encoder
Duplicate  DPX decoder: read sample aspect ratio
Duplciate  DPX decoder: add buffer size checks.
  ac3enc: clip large coefficient values and negative exponents rather than using av_assert2().
  ac3enc: do not store a bandwidth code for each channel.
  ac3enc: remove bandwidth reduction as fallback for bit allocation failure.
  ac3enc: merge compute_exp_strategy_ch() into compute_exp_strategy()
  ac3enc: return error if frame+exponent bits are too large instead of using av_assert2().
  ac3enc: differentiate between current block and reference block in bit_alloc()
  ac3enc: simplify exponent_init() by calculating exponent_group_tab[] based on exponent group sizes.
  ac3enc: simplify stereo rematrixing decision options
Include both URLs:  Update URL to fate samples

Conflicts:
Changelog
doc/fate.txt
libavcodec/ac3enc.c
libavcodec/dpxenc.c
libavcodec/version.h

Merged-by: Michael Niedermayer <michaelni@gmx.at>
8 years agoAVOptions: av_set_string3() allow NULL strings
Michael Niedermayer [Sun, 1 May 2011 20:40:01 +0000 (22:40 +0200)]
AVOptions: av_set_string3() allow NULL strings
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
8 years agodct-test: Support testing bits>8
Michael Niedermayer [Sun, 1 May 2011 15:50:34 +0000 (17:50 +0200)]
dct-test: Support testing bits>8
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
8 years agoffplay: demuxer specific options support
Michael Niedermayer [Sun, 1 May 2011 14:59:47 +0000 (16:59 +0200)]
ffplay: demuxer specific options support
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
8 years agoWTV: Add ff_ prefix to the moved fields.
zhentan feng [Sun, 1 May 2011 19:13:18 +0000 (21:13 +0200)]
WTV: Add ff_ prefix to the moved fields.
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
8 years agoWTV:move the common variable used by wtvdec.c and wtvenc.c to a new file wtv.h and...
zhentan feng [Sun, 1 May 2011 19:12:02 +0000 (21:12 +0200)]
WTV:move the common variable used by wtvdec.c and wtvenc.c to a new file wtv.h and wtv.c.
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
8 years agorename wtv.c to wtvdec.c
zhentan feng [Sun, 1 May 2011 19:10:00 +0000 (21:10 +0200)]
rename wtv.c to wtvdec.c
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
8 years agoALPHA: Replace sized int_fast integer types with plain int/unsigned.
Diego Biurrun [Fri, 29 Apr 2011 18:15:00 +0000 (20:15 +0200)]
ALPHA: Replace sized int_fast integer types with plain int/unsigned.

int/unsigned is the natural memory access type for CPUs, using sized types
for temporary variables, counters and similar just increases code size and
can possibly cause a slowdown.

8 years agoDPX image encoder
Peter Ross [Sat, 26 Mar 2011 04:12:35 +0000 (15:12 +1100)]
DPX image encoder

8 years agoDPX decoder: read sample aspect ratio
Peter Ross [Fri, 1 Apr 2011 12:23:28 +0000 (23:23 +1100)]
DPX decoder: read sample aspect ratio

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
8 years agoDPX decoder: add buffer size checks.
Reimar Döffinger [Fri, 25 Mar 2011 17:58:07 +0000 (18:58 +0100)]
DPX decoder: add buffer size checks.

8 years agoac3enc: clip large coefficient values and negative exponents rather than using
Justin Ruggles [Sat, 16 Apr 2011 03:18:33 +0000 (23:18 -0400)]
ac3enc: clip large coefficient values and negative exponents rather than using
av_assert2().

8 years agoac3enc: do not store a bandwidth code for each channel.
Justin Ruggles [Sat, 16 Apr 2011 02:49:05 +0000 (22:49 -0400)]
ac3enc: do not store a bandwidth code for each channel.

Although AC-3 allows it, it's not very useful. The encoder uses the same code
for all full-bandwidth channels.

8 years agoac3enc: remove bandwidth reduction as fallback for bit allocation failure.
Justin Ruggles [Sat, 16 Apr 2011 02:45:05 +0000 (22:45 -0400)]
ac3enc: remove bandwidth reduction as fallback for bit allocation failure.

It was only needed at low bitrates, which now already use a low bandwidth, so
the bandwidth reduction is no longer needed.

8 years agoac3enc: merge compute_exp_strategy_ch() into compute_exp_strategy()
Justin Ruggles [Sat, 16 Apr 2011 02:43:25 +0000 (22:43 -0400)]
ac3enc: merge compute_exp_strategy_ch() into compute_exp_strategy()

8 years agoac3enc: return error if frame+exponent bits are too large instead of using
Justin Ruggles [Fri, 15 Apr 2011 23:56:42 +0000 (19:56 -0400)]
ac3enc: return error if frame+exponent bits are too large instead of using
av_assert2().

This can occur in some very rare cases with low bitrates.

8 years agoac3enc: differentiate between current block and reference block in bit_alloc()
Justin Ruggles [Fri, 15 Apr 2011 23:55:09 +0000 (19:55 -0400)]
ac3enc: differentiate between current block and reference block in bit_alloc()

8 years agoac3enc: simplify exponent_init() by calculating exponent_group_tab[] based
Justin Ruggles [Fri, 15 Apr 2011 23:51:06 +0000 (19:51 -0400)]
ac3enc: simplify exponent_init() by calculating exponent_group_tab[] based
on exponent group sizes.

8 years agoac3enc: simplify stereo rematrixing decision options
Justin Ruggles [Fri, 15 Apr 2011 23:22:42 +0000 (19:22 -0400)]
ac3enc: simplify stereo rematrixing decision options

8 years agoFix data_size handling for AC3 and dca decoders.
Reimar Döffinger [Sat, 30 Apr 2011 21:19:04 +0000 (23:19 +0200)]
Fix data_size handling for AC3 and dca decoders.

They use now code identical to the AAC decoder.
The AC3 decoder previously did not check the data_size and
the dca decoder checked against and set wrong values for float.

8 years agoUpdate URL to fate samples
Reinhard Tartler [Sun, 1 May 2011 12:34:31 +0000 (14:34 +0200)]
Update URL to fate samples

8 years agolavfi: rename AVFilterBufferRefVideoProps.pixel_aspect to sample_aspect_ratio
Stefano Sabatini [Fri, 29 Apr 2011 11:12:39 +0000 (13:12 +0200)]
lavfi: rename AVFilterBufferRefVideoProps.pixel_aspect to sample_aspect_ratio

Improve consistency with libavcodec.

This breaks libavfilter API/ABI.

The non-sequential 2.1.0 -> 2.4.0 bump is due to the mess previously
done with the lavfi minor number.

8 years agolavc: add a sample_aspect_ratio field to AVFrame
Stefano Sabatini [Fri, 29 Apr 2011 11:04:47 +0000 (13:04 +0200)]
lavc: add a sample_aspect_ratio field to AVFrame

The sample aspect ratio is a per-frame property, so it makes sense to
define it in AVFrame rather than in the codec/stream context.
Simplify application-level sample aspect ratio information extraction,
and allow further simplifications.

8 years agolavc: add a pkt_pos field to AVFrame
Stefano Sabatini [Fri, 29 Apr 2011 10:28:44 +0000 (12:28 +0200)]
lavc: add a pkt_pos field to AVFrame

This is similar to what was done with pkt_pts. This simplifies the
operation of extracting the pos information from the AVPacket, and
allows further simplifications.

8 years agoFix compilation in some cases if the flac decoder was disabled.
Carl Eugen Hoyos [Sun, 1 May 2011 04:39:08 +0000 (06:39 +0200)]
Fix compilation in some cases if the flac decoder was disabled.

flac.o implies vorbis_data.o because of flac channel layout.

8 years agoH264: Fix intra only decoding.
Michael Niedermayer [Sun, 1 May 2011 00:32:41 +0000 (02:32 +0200)]
H264: Fix intra only decoding.
This possibly fixes issue2679
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
8 years agoH264:Print short+long+max values when they dont match up.
Michael Niedermayer [Sun, 1 May 2011 00:32:16 +0000 (02:32 +0200)]
H264:Print short+long+max values when they dont match up.
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
8 years agoH264:use av_assert0() for frame num check
Michael Niedermayer [Sun, 1 May 2011 00:31:42 +0000 (02:31 +0200)]
H264:use av_assert0() for frame num check
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
8 years agoH264: print nal_ref_idc too for debug
Michael Niedermayer [Sun, 1 May 2011 00:31:01 +0000 (02:31 +0200)]
H264: print nal_ref_idc too for debug
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
8 years agoFix decoding of mpegts streams with h264 video that does *NOT* have b frames
Mike Scheutzow [Thu, 28 Apr 2011 14:14:26 +0000 (10:14 -0400)]
Fix decoding of mpegts streams with h264 video that does *NOT* have b frames

One of the causes of this bug is that the h264 parser defaults low_delay
to 1, but the h264 codec defaults low_delay to 0. Really Ugly.

After many hours of looking at this, I'm still not sure how has_b_frames
is *intended* to behave, but to me the implementation appears way more
complicated than it ought to be.

My patch relies on the encoder to set an optional field in the SPS. This
works for libx264 streams, but I'm not sure that all h264 encoders will
set it.

8 years agolavc: lowercase the FRWU codec name
ami_stuff [Sat, 30 Apr 2011 22:38:25 +0000 (00:38 +0200)]
lavc: lowercase the FRWU codec name

This is more consistent with all the other codec names.

Signed-off-by: Stefano Sabatini <stefano.sabatini-lala@poste.it>
8 years agoMerge commit '85770f2a2651497861ed938efcd0df3696ff5e45'
Michael Niedermayer [Sat, 30 Apr 2011 22:21:56 +0000 (00:21 +0200)]
Merge commit '85770f2a2651497861ed938efcd0df3696ff5e45'

* commit '85770f2a2651497861ed938efcd0df3696ff5e45':
  AVOptions: make default_val a union, as proposed in AVOption2.
  Move ff_dynarray_add to lavu and make it public.
  lavf: remove duplicate assignment in avformat_alloc_context.
  lavf: use designated initializers for AVClasses.
  options: simplify av_find_opt by using av_next_option.

Merged-by: Michael Niedermayer <michaelni@gmx.at>
8 years agoDo not drop packets with no valid ->pos set as e.g. DV-in-AVI produces.
Reimar Döffinger [Sat, 30 Apr 2011 09:49:49 +0000 (11:49 +0200)]
Do not drop packets with no valid ->pos set as e.g. DV-in-AVI produces.

Fixes ticket #140.

8 years agoFFMPEG: support demuxer specific options.
Michael Niedermayer [Sat, 30 Apr 2011 19:38:40 +0000 (21:38 +0200)]
FFMPEG: support demuxer specific options.
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
8 years agoAVIDEC: use_odmc demuxer specific option. (mostly an exmaple for demuxer specific...
Michael Niedermayer [Sat, 30 Apr 2011 19:37:11 +0000 (21:37 +0200)]
AVIDEC: use_odmc demuxer specific option. (mostly an exmaple for demuxer specific options)
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
8 years agoLAVFAPI: demuxer specific options.
Michael Niedermayer [Sat, 30 Apr 2011 19:35:48 +0000 (21:35 +0200)]
LAVFAPI: demuxer specific options.
(someone please add doxy)
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
8 years agooutput_example: use avformat_alloc_output_context()
Michael Niedermayer [Sat, 30 Apr 2011 18:44:09 +0000 (20:44 +0200)]
output_example: use avformat_alloc_output_context()
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
8 years agoLAVFAPI: avformat_alloc_output_context() / simplify usage of muxers.
Michael Niedermayer [Sat, 30 Apr 2011 18:43:16 +0000 (20:43 +0200)]
LAVFAPI: avformat_alloc_output_context() / simplify usage of muxers.
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
8 years agoLAVF API: remove AVOutputFormat.set_parameters() the field is unused.
Michael Niedermayer [Sat, 30 Apr 2011 18:03:16 +0000 (20:03 +0200)]
LAVF API: remove AVOutputFormat.set_parameters() the field is unused.
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
8 years agoCrystalHD: Add auto-detection of packed b-frame bug.
Philip Langdale [Thu, 21 Apr 2011 04:43:29 +0000 (21:43 -0700)]
CrystalHD: Add auto-detection of packed b-frame bug.

I still don't fully understand the cause but the difference between
the samples that trigger the bug and the samples that don't is
that the former uses delay frames and the later uses drop frames
as placeholders for the packed frame. So, if we see the one type
of frame, we can assume the bug will or won't be present.

Right now, I'm detecting the frame types by size, which may not be
safe in general, but given the specific codec and file type, I
expect any scenario where we encounter these frames where they
aren't being used for b-frame packing won't care one way or
another whether the work around is in effect or not.

Signed-off-by: Philip Langdale <philipl@overt.org>
8 years agolavc: remove disabled avcodec_decode_video() code
Stefano Sabatini [Sat, 30 Apr 2011 09:55:06 +0000 (11:55 +0200)]
lavc: remove disabled avcodec_decode_video() code

Fix warning:
libavcodec/utils.c: At top level:
libavcodec/utils.c:714:5: warning: "FF_API_VIDEO_OLD" is not defined

Also fix trac issue #139.