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

13 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."

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

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

13 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>
13 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]

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

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

13 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

13 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_*

13 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()

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

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

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

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

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

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

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

13 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()

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

13 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()

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

13 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

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

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

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

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

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

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

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

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

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

13 years agoRead the album_artist, grouping and lyrics metadata.
Reimar Döffinger [Sun, 24 Apr 2011 15:02:09 +0000 (17:02 +0200)]
Read the album_artist, grouping and lyrics metadata.

Our muxer writes these out, so we really should support reading them.
Fixes ticket #30.

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

13 years agoIn libx264 wrapper, change wpredp to a codec specific option.
Baptiste Coudurier [Fri, 29 Apr 2011 21:13:19 +0000 (14:13 -0700)]
In libx264 wrapper, change wpredp to a codec specific option.

13 years agoMerge remote branch 'qatar/master'
Michael Niedermayer [Fri, 29 Apr 2011 23:40:29 +0000 (01:40 +0200)]
Merge remote branch 'qatar/master'

* qatar/master:
Duplicate  AMV: disable DR1 and don't override EMU_EDGE
Duplicate  lavf: inspect more frames for fps when container time base is coarse
Wrong and we have correct fix: Fix races in default av_log handler
  vorbis: Replace sized int_fast integer types with plain int/unsigned.
  Remove disabled non-optimized code variants.
NO  bswap.h: Remove disabled code.
  Remove some disabled printf debug cruft.
  Replace more disabled printf() calls by av_dlog().
NO  tests: Remove disabled code.
NO  Replace some commented-out debug printf() / av_log() messages with av_dlog().
  vorbisdec: Replace some sizeof(type) by sizeof(*variable).
NO  vf_fieldorder: Replace FFmpeg by Libav in license boilerplate.

Conflicts:
libavcodec/h264.c
libavcodec/vorbisdec.c
libavutil/log.c

Merged-by: Michael Niedermayer <michaelni@gmx.at>
13 years agoAMV: disable DR1 and don't override EMU_EDGE
Michael Niedermayer [Thu, 28 Apr 2011 19:10:04 +0000 (21:10 +0200)]
AMV: disable DR1 and don't override EMU_EDGE

This works around a possibly exploitable crash.
Appearently, vlc can be exploited with a malicous file. This should get
reverted as soon as a proper fix is found.

Reported-at: Thu, 21 Apr 2011 14:38:25 +0000
Reported-by: Dominic Chell <Dominic.Chell@ngssecure.com>
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
(cherry picked from commit 89f903b3d5ec38c9c5d90fba7e626fa0eda61a32)
(cherry picked from commit 9b919571e506fbb72b81a35ca1e7c1bd6efc4209)

13 years agolavf: inspect more frames for fps when container time base is coarse
Anssi Hannula [Thu, 28 Apr 2011 18:47:40 +0000 (20:47 +0200)]
lavf: inspect more frames for fps when container time base is coarse

As per issue2629, most 23.976fps matroska H.264 files are incorrectly
detected as 24fps, as the matroska timestamps usually have only
millisecond precision.

Fix that by doubling the amount of timestamps inspected for frame rate
for streams that have coarse time base. This also fixes 29.970 detection
in matroska.

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
(cherry picked from commit 78431098f9e306ebe27e7698d0ae539e3df2afe9)

Tested with mplayer based on this report
http://thread.gmane.org/gmane.comp.video.mplayer.user/66043/focus=66063

Signed-off-by: Reinhard Tartler <siretart@tauware.de>
13 years agoFix races in default av_log handler
Reinhard Tartler [Wed, 27 Apr 2011 19:21:54 +0000 (21:21 +0200)]
Fix races in default av_log handler

Prevent competing threads from overwriting (shared) buffers.

Original patch by: Michael Niedermayer <michaelni@gmx.at>

13 years agoflashsv2enc: regression test.
Michael Niedermayer [Fri, 29 Apr 2011 19:53:25 +0000 (21:53 +0200)]
flashsv2enc: regression test.
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
13 years agovorbis: Replace sized int_fast integer types with plain int/unsigned.
Diego Biurrun [Fri, 29 Apr 2011 18:12:48 +0000 (20:12 +0200)]
vorbis: 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.

13 years agoRemove disabled non-optimized code variants.
Diego Biurrun [Fri, 29 Apr 2011 17:46:10 +0000 (19:46 +0200)]
Remove disabled non-optimized code variants.

13 years agobswap.h: Remove disabled code.
Diego Biurrun [Fri, 29 Apr 2011 17:36:48 +0000 (19:36 +0200)]
bswap.h: Remove disabled code.

13 years agoRemove some disabled printf debug cruft.
Diego Biurrun [Fri, 29 Apr 2011 17:05:40 +0000 (19:05 +0200)]
Remove some disabled printf debug cruft.

13 years agoReplace more disabled printf() calls by av_dlog().
Diego Biurrun [Fri, 29 Apr 2011 17:18:46 +0000 (19:18 +0200)]
Replace more disabled printf() calls by av_dlog().

13 years agoflashsv2enc:fix segfault
Michael Niedermayer [Fri, 29 Apr 2011 16:31:17 +0000 (18:31 +0200)]
flashsv2enc:fix segfault
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
13 years agotests: Remove disabled code.
Diego Biurrun [Tue, 26 Apr 2011 12:26:23 +0000 (14:26 +0200)]
tests: Remove disabled code.

13 years agoMove ff_dynarray_add to lavu and make it public.
Anton Khirnov [Fri, 29 Apr 2011 15:33:38 +0000 (17:33 +0200)]
Move ff_dynarray_add to lavu and make it public.

13 years agoReplace some commented-out debug printf() / av_log() messages with av_dlog().
Diego Biurrun [Fri, 29 Apr 2011 15:27:01 +0000 (17:27 +0200)]
Replace some commented-out debug printf() / av_log() messages with av_dlog().

13 years agovorbisdec: Replace some sizeof(type) by sizeof(*variable).
Diego Biurrun [Thu, 28 Apr 2011 09:09:35 +0000 (11:09 +0200)]
vorbisdec: Replace some sizeof(type) by sizeof(*variable).

13 years agovf_fieldorder: Replace FFmpeg by Libav in license boilerplate.
Diego Biurrun [Thu, 28 Apr 2011 16:59:14 +0000 (18:59 +0200)]
vf_fieldorder: Replace FFmpeg by Libav in license boilerplate.

13 years agolavf: remove duplicate assignment in avformat_alloc_context.
Anton Khirnov [Fri, 29 Apr 2011 09:42:05 +0000 (11:42 +0200)]
lavf: remove duplicate assignment in avformat_alloc_context.

AVClass is already initialized in  avformat_get_context_defaults.

13 years agolavf: use designated initializers for AVClasses.
Anton Khirnov [Fri, 29 Apr 2011 09:30:02 +0000 (11:30 +0200)]
lavf: use designated initializers for AVClasses.

13 years agoSet channel layout for True Audio files.
Carl Eugen Hoyos [Fri, 29 Apr 2011 08:46:45 +0000 (10:46 +0200)]
Set channel layout for True Audio files.

This is not documented (and possibly not originally intended),
but it's what the current reference decoder does.

13 years agoFix channel layout for some stereo flac files.
Carl Eugen Hoyos [Fri, 29 Apr 2011 08:42:43 +0000 (10:42 +0200)]
Fix channel layout for some stereo flac files.

13 years agooptions: simplify av_find_opt by using av_next_option.
Anton Khirnov [Thu, 14 Apr 2011 07:10:54 +0000 (09:10 +0200)]
options: simplify av_find_opt by using av_next_option.

13 years agoChecksum update due to (should make fate green again)
Michael Niedermayer [Fri, 29 Apr 2011 03:00:45 +0000 (05:00 +0200)]
Checksum update due to (should make fate green again)
ffmpeg | branch: master | Anton Khirnov <anton@khirnov.net> | Tue Apr 26 09:59:07 2011 +0000| [f8fec0505294a4c05e5cfd9323e04258db465314] | committer: Anton Khirnov

mpegtsenc: make PMT PID really start on pmt_start_pid

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
13 years agoRevert "Fix url_fopen() flag values."
Michael Niedermayer [Fri, 29 Apr 2011 02:31:28 +0000 (04:31 +0200)]
Revert "Fix url_fopen() flag values."
No longer needed after martins change to the values.
Though this would have been nicer ABI wise but iam too lazy to maintain this difference

This reverts commit 183401b92419febf2c6aeaa2dfecdd16ad99bff8.

13 years agoMerge remote branch 'qatar/master'
Michael Niedermayer [Fri, 29 Apr 2011 02:29:21 +0000 (04:29 +0200)]
Merge remote branch 'qatar/master'

* qatar/master:
LOTS of duplicates ...
  avio: Fix the deprecated fallback URL-prefixed open flags
  avoid duplicate -lm in .pc files
  mpeg12: terminate mpeg2_video_profiles arrays
  network: Check POLLERR and POLLHUP in ff_network_wait_fd
  mpegtsenc: make PMT PID really start on pmt_start_pid
  nut format: support PIX_FMT_BGR48LE and PIX_FMT_BGR48BE
  rawvideo codec: support PIX_FMT_BGR48LE and PIX_FMT_BGR48BE
  hflip: make the filter accept PIX_FMT_BGR48LE and PIX_FMT_BGR48BE pixel formats
  crop: make the filter accept PIX_FMT_BGR48LE and PIX_FMT_BGR48BE pixel formats
  libswcale: PIX_FMT_BGR48LE and PIX_FMT_BGR48BE scaler implementation

Conflicts:
configure
libswscale/swscale.h
tests/ref/lavf/ts

Merged-by: Michael Niedermayer <michaelni@gmx.at>
13 years agoflashsv2enc: mark encoder experimental
Michael Niedermayer [Fri, 29 Apr 2011 01:06:06 +0000 (03:06 +0200)]
flashsv2enc: mark encoder experimental
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
13 years agoflashsv2enc: remove useless casts
Michael Niedermayer [Fri, 29 Apr 2011 00:43:12 +0000 (02:43 +0200)]
flashsv2enc: remove useless casts
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
13 years agoflashsv2enc: use av_freep()
Michael Niedermayer [Fri, 29 Apr 2011 00:41:13 +0000 (02:41 +0200)]
flashsv2enc: use av_freep()
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
13 years agoflashsv2enc: remove useless if()
Michael Niedermayer [Fri, 29 Apr 2011 00:40:22 +0000 (02:40 +0200)]
flashsv2enc: remove useless if()
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
13 years agoencoder for adobe's flash ScreenVideo2 codec
Joshua Warner [Fri, 29 Apr 2011 00:25:56 +0000 (02:25 +0200)]
encoder for adobe's flash ScreenVideo2 codec

13 years agoRevert "avparser: don't av_malloc(0)."
Michael Niedermayer [Fri, 29 Apr 2011 00:14:43 +0000 (02:14 +0200)]
Revert "avparser: don't av_malloc(0)."

This hack is no longer needed.

This reverts commit 191e08d113ef1d089c45c5fb6c95491e16dde86e.

13 years agoFix all malloc(0) issues
Michael Niedermayer [Fri, 29 Apr 2011 00:13:59 +0000 (02:13 +0200)]
Fix all malloc(0) issues
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
13 years agoRemove lowres support from cdgraphics decoder
ami_stuff [Thu, 28 Apr 2011 22:58:57 +0000 (00:58 +0200)]
Remove lowres support from cdgraphics decoder

The lowres support doesn't work correctly (crops the video), so let's remove it.

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
13 years agoReduce max lowres from 5 to 3 in sp5x decoder
ami_stuff [Thu, 28 Apr 2011 22:47:36 +0000 (00:47 +0200)]
Reduce max lowres from 5 to 3 in sp5x decoder

lowres higher than 3 crashes ffmpeg/ffplay here

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
13 years agoRemove lowres support from pnm decoder
ami_stuff [Thu, 28 Apr 2011 22:41:28 +0000 (00:41 +0200)]
Remove lowres support from pnm decoder

The lowres support doesn't work correctly (crops the video), so let's remove it.

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
13 years agoRemove lowres support from png decoder
ami_stuff [Thu, 28 Apr 2011 21:45:24 +0000 (23:45 +0200)]
Remove lowres support from png decoder

The lowres support doesn't work correctly (crops the video), so let's remove it.

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
13 years agoavio: Fix the deprecated fallback URL-prefixed open flags
Martin Storsjö [Thu, 28 Apr 2011 07:36:44 +0000 (10:36 +0300)]
avio: Fix the deprecated fallback URL-prefixed open flags

While deprecated, they're totally useless as long as their values
are different from the AVIO_FLAG values that are used internally.
Currently, this leads to old libav applications still compiling
correctly (since we haven't removed the fallback wrappers), but
failing since the functions internally compare to the new AVIO_FLAG
values.

These should be removed at some point, but they aren't removed yet.
The intent is to be able to recompile an old application against
the new ABI without modifying the code, and this doesn't work
currently.

Signed-off-by: Martin Storsjö <martin@martin.st>
13 years agoTry to fix big endian fate
Michael Niedermayer [Thu, 28 Apr 2011 20:25:39 +0000 (22:25 +0200)]
Try to fix big endian fate
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
13 years agoMJPEG encoder to write aspect ratio information
Niobos [Thu, 28 Apr 2011 18:23:19 +0000 (20:23 +0200)]
MJPEG encoder to write aspect ratio information

13 years agoFix buffering in qpeg in a way that allows direct rendering.
Michael Niedermayer [Thu, 28 Apr 2011 12:06:36 +0000 (14:06 +0200)]
Fix buffering in qpeg in a way that allows direct rendering.
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
13 years agoFix url_fopen() flag values.
Michael Niedermayer [Thu, 28 Apr 2011 11:11:37 +0000 (13:11 +0200)]
Fix url_fopen() flag values.
Reported by: Luca Abeni
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>