OSDN Git Service

coroid/libav_saccubus.git
12 years agoaac: Only output configure if audio was found.
Alex Converse [Tue, 16 Aug 2011 18:03:26 +0000 (11:03 -0700)]
aac: Only output configure if audio was found.

Audio found is not triggered on a CCE because a CCE alone has no output.

Signed-off-by: Luca Barbato <lu_zero@gentoo.org>
12 years agoavconv: save two levels of indentation in flush_encoders()
Anton Khirnov [Tue, 16 Aug 2011 09:19:20 +0000 (11:19 +0200)]
avconv: save two levels of indentation in flush_encoders()

By replacing
if (foo)
    <do stuff>

with
if (!foo)
    continue;
<do stuff>

12 years agoavconv: factor flushing encoders out of output_packet().
Anton Khirnov [Thu, 18 Aug 2011 06:55:29 +0000 (08:55 +0200)]
avconv: factor flushing encoders out of output_packet().

12 years agoavconv: factor out initializing input streams.
Anton Khirnov [Wed, 6 Jul 2011 06:49:07 +0000 (08:49 +0200)]
avconv: factor out initializing input streams.

12 years agoavconv: remove -intra option.
Anton Khirnov [Wed, 17 Aug 2011 17:26:49 +0000 (19:26 +0200)]
avconv: remove -intra option.

It's equivalent to -g 0.

12 years agoavconv: reset streamid_map between output files.
Anton Khirnov [Wed, 17 Aug 2011 17:11:54 +0000 (19:11 +0200)]
avconv: reset streamid_map between output files.

12 years agoavconv: make timer_start a local var in transcode().
Anton Khirnov [Wed, 17 Aug 2011 16:46:36 +0000 (18:46 +0200)]
avconv: make timer_start a local var in transcode().

12 years agoavconv: cosmetics, move OutputStream.
Anton Khirnov [Wed, 17 Aug 2011 16:40:40 +0000 (18:40 +0200)]
avconv: cosmetics, move OutputStream.

Allows us to get rid of forward InputStream declaration.

12 years agoavconv: remove two unused macros.
Anton Khirnov [Wed, 17 Aug 2011 16:35:43 +0000 (18:35 +0200)]
avconv: remove two unused macros.

12 years agoh264: hide reference frame errors unless requested
Dustin Brody [Wed, 17 Aug 2011 22:08:09 +0000 (18:08 -0400)]
h264: hide reference frame errors unless requested

Signed-off-by: Ronald S. Bultje <rsbultje@gmail.com>
12 years agoswscale: split hScale() function pointer into h[cy]Scale().
Ronald S. Bultje [Wed, 3 Aug 2011 18:25:01 +0000 (11:25 -0700)]
swscale: split hScale() function pointer into h[cy]Scale().

This allows using more specific implementations for chroma/luma, e.g.
we can make assumptions on filterSize being constant, thus avoiding
that test at runtime.

12 years agoMove clipd macros to x86util.asm.
Ronald S. Bultje [Wed, 17 Aug 2011 04:23:53 +0000 (21:23 -0700)]
Move clipd macros to x86util.asm.

This allows sharing them between multiple .asm files.

12 years agoavconv: reindent.
Anton Khirnov [Wed, 17 Aug 2011 10:08:41 +0000 (12:08 +0200)]
avconv: reindent.

12 years agoavconv: rescue poor abused start_time global.
Anton Khirnov [Wed, 17 Aug 2011 09:42:44 +0000 (11:42 +0200)]
avconv: rescue poor abused start_time global.

Keep a per-OutputFile instance of it, thus making -ss work with multiple
output files.

12 years agoavconv: rescue poor abused recording_time global.
Anton Khirnov [Wed, 17 Aug 2011 09:42:44 +0000 (11:42 +0200)]
avconv: rescue poor abused recording_time global.

Keep a per-OutputFile instance of it, thus making -t work with multiple
output files.

12 years agoavconv: merge two loops in output_packet().
Anton Khirnov [Wed, 17 Aug 2011 12:09:22 +0000 (14:09 +0200)]
avconv: merge two loops in output_packet().

12 years agoavconv: fix broken indentation.
Anton Khirnov [Wed, 17 Aug 2011 09:33:30 +0000 (11:33 +0200)]
avconv: fix broken indentation.

12 years agoavconv: get rid of the arbitrary MAX_FILES limit.
Anton Khirnov [Wed, 17 Aug 2011 08:27:17 +0000 (10:27 +0200)]
avconv: get rid of the arbitrary MAX_FILES limit.

12 years agoavconv: get rid of the output_streams_for_file vs. ost_table schizophrenia
Anton Khirnov [Wed, 17 Aug 2011 08:21:37 +0000 (10:21 +0200)]
avconv: get rid of the output_streams_for_file vs. ost_table schizophrenia

Instead store output streams in the same way as input streams.

12 years agoavconv: add a wrapper for output AVFormatContexts and merge output_opts into it
Anton Khirnov [Wed, 17 Aug 2011 07:56:08 +0000 (09:56 +0200)]
avconv: add a wrapper for output AVFormatContexts and merge output_opts into it

12 years agoavconv: make itsscale syntax consistent with other options.
Anton Khirnov [Wed, 17 Aug 2011 07:12:04 +0000 (09:12 +0200)]
avconv: make itsscale syntax consistent with other options.

Move the stream specifier to the option name.

12 years agoavconv: factor out adding input streams.
Anton Khirnov [Tue, 5 Jul 2011 17:38:50 +0000 (19:38 +0200)]
avconv: factor out adding input streams.

12 years agoavconv: Factorize combining auto vsync with format.
Alex Converse [Wed, 17 Aug 2011 02:06:46 +0000 (19:06 -0700)]
avconv: Factorize combining auto vsync with format.

12 years agoavconv: Factorize video resampling.
Alex Converse [Wed, 17 Aug 2011 01:43:27 +0000 (18:43 -0700)]
avconv: Factorize video resampling.

12 years agoavconv: Don't unnecessarily convert ipts to a double.
Alex Converse [Tue, 16 Aug 2011 21:41:16 +0000 (14:41 -0700)]
avconv: Don't unnecessarily convert ipts to a double.

12 years agoffmpeg: remove unsed variable nopts
Diego Biurrun [Wed, 17 Aug 2011 13:35:42 +0000 (15:35 +0200)]
ffmpeg: remove unsed variable nopts

12 years agoRV3/4 parser: remove unused variable 'off'
Kostya Shishkov [Wed, 17 Aug 2011 13:07:49 +0000 (15:07 +0200)]
RV3/4 parser: remove unused variable 'off'

Signed-off-by: Diego Biurrun <diego@biurrun.de>
12 years agoadd XMV demuxer
Sven Hesse [Tue, 16 Aug 2011 19:26:45 +0000 (21:26 +0200)]
add XMV demuxer

Signed-off-by: Diego Biurrun <diego@biurrun.de>
12 years agormdec: parse FPS in RealMedia properly
Kostya Shishkov [Tue, 16 Aug 2011 07:10:57 +0000 (09:10 +0200)]
rmdec: parse FPS in RealMedia properly

Signed-off-by: Anton Khirnov <anton@khirnov.net>
12 years agoUse parsers for RealVideo 3/4 to determine correct PTS
Kostya Shishkov [Mon, 15 Aug 2011 10:03:40 +0000 (12:03 +0200)]
Use parsers for RealVideo 3/4 to determine correct PTS

Signed-off-by: Anton Khirnov <anton@khirnov.net>
12 years agormdec: correct DTS calculation in RealMedia container.
Kostya Shishkov [Thu, 11 Aug 2011 12:44:05 +0000 (14:44 +0200)]
rmdec: correct DTS calculation in RealMedia container.

First, container stores only DTS and not PTS as it was believed.
Second, multiple frames in a packet store timestamp instead of position
after the frame length.

Signed-off-by: Anton Khirnov <anton@khirnov.net>
12 years agorv10/20: tell decoder to use edge emulation
Kostya Shishkov [Wed, 17 Aug 2011 08:36:33 +0000 (10:36 +0200)]
rv10/20: tell decoder to use edge emulation

This removes out-of-edge motion compensation artifacts (easily spotted green
blocks in avplay, gray blocks in transcoding), for example here:
http://samples.libav.org/samples/real/tv_watching_t1.rm

Signed-off-by: Diego Biurrun <diego@biurrun.de>
12 years agoRevert "avconv: use stream copy by default when possible."
Anton Khirnov [Tue, 16 Aug 2011 18:59:14 +0000 (20:59 +0200)]
Revert "avconv: use stream copy by default when possible."

This reverts commit 4f4f33844a7369e5579912cc02f3c5376b1e6872.

This commit has some ugly corner cases and needs to be discussed
further.

12 years agoavconv: print stream copy information.
Anton Khirnov [Tue, 16 Aug 2011 04:58:52 +0000 (06:58 +0200)]
avconv: print stream copy information.

12 years agoavconv: use stream copy by default when possible.
Anton Khirnov [Sat, 13 Aug 2011 06:37:13 +0000 (08:37 +0200)]
avconv: use stream copy by default when possible.

12 years agomatroskaenc: vertical alignment.
Anton Khirnov [Tue, 16 Aug 2011 04:52:50 +0000 (06:52 +0200)]
matroskaenc: vertical alignment.

12 years agomatroskaenc: implement query_codec()
Anton Khirnov [Thu, 11 Aug 2011 18:35:46 +0000 (20:35 +0200)]
matroskaenc: implement query_codec()

12 years agolavf: add avformat_query_codec().
Anton Khirnov [Thu, 11 Aug 2011 18:34:45 +0000 (20:34 +0200)]
lavf: add avformat_query_codec().

It allows to check if a given codec can be written into a container.

12 years agolavc: add avcodec_get_type() for mapping codec_id -> type.
Anton Khirnov [Thu, 11 Aug 2011 15:45:50 +0000 (17:45 +0200)]
lavc: add avcodec_get_type() for mapping codec_id -> type.

12 years agoflvenc: use int64_t to store offsets
Luca Barbato [Wed, 8 Jun 2011 14:32:07 +0000 (14:32 +0000)]
flvenc: use int64_t to store offsets

Metadata currently is written only at the start of the file in normal
cases, when transcoding from a rtmp source metadata could be
written later and the offset recorded can exceed 32bit.

Signed-off-by: Anton Khirnov <anton@khirnov.net>
12 years agoavconv: don't segfault on 0 input files.
Anton Khirnov [Tue, 16 Aug 2011 09:32:57 +0000 (11:32 +0200)]
avconv: don't segfault on 0 input files.

12 years agoDo not write ID3v1 tags by default
Diogo Franco [Tue, 16 Aug 2011 09:43:23 +0000 (09:43 +0000)]
Do not write ID3v1 tags by default

ID3v1 are legacy tags with several limitations; furthermore
avconv/ffmpeg writes the tags in UTF-8 which probably has near-0
software support.

Add a -write_id3v1 option to be able to turn it on; disabled by default.

Signed-off-by: Anton Khirnov <anton@khirnov.net>
12 years agompegts: log into an AVFormatContext rather than MpegTSContext.
Alex Converse [Tue, 16 Aug 2011 01:14:12 +0000 (18:14 -0700)]
mpegts: log into an AVFormatContext rather than MpegTSContext.

MpegTSContext's AVClass member can be NULL.

12 years agomovenc: change AV_LOG_INFO to AV_LOG_WARNING for some warnings
Anton Khirnov [Thu, 11 Aug 2011 14:33:03 +0000 (16:33 +0200)]
movenc: change AV_LOG_INFO to AV_LOG_WARNING for some warnings

12 years agoavconv: remove a write-only variable
Anton Khirnov [Mon, 15 Aug 2011 16:26:56 +0000 (18:26 +0200)]
avconv: remove a write-only variable

12 years agoavconv: remove pointless parameter from new_*_stream().
Anton Khirnov [Sat, 13 Aug 2011 06:23:44 +0000 (08:23 +0200)]
avconv: remove pointless parameter from new_*_stream().

New streams are always added to the last output file.

12 years agoavconv: cosmetics, move code
Anton Khirnov [Sat, 13 Aug 2011 06:08:13 +0000 (08:08 +0200)]
avconv: cosmetics, move code

Move find_codec_or_die(), choose_codec(), new_output_stream() and
read_avserver_streams() below transcode() where they belong.

12 years agoavconv: cosmetics -- move copy_chapters().
Anton Khirnov [Sat, 13 Aug 2011 05:56:38 +0000 (07:56 +0200)]
avconv: cosmetics -- move copy_chapters().

It's only used in opt_output_file(), so move it right above
opt_output_file().

12 years agoavconv: cosmetics -- move parse_forced_key_frames().
Anton Khirnov [Sat, 13 Aug 2011 05:55:04 +0000 (07:55 +0200)]
avconv: cosmetics -- move parse_forced_key_frames().

parse_forced_key_frames() is only used in new_video_stream(), so move it
right above new_video_stream().

12 years agolavc: add audio flag to the 'b' option, deprecate 'ab'.
Anton Khirnov [Tue, 9 Aug 2011 11:56:36 +0000 (13:56 +0200)]
lavc: add audio flag to the 'b' option, deprecate 'ab'.

Its only reason for its existence was ffmpeg's inability to properly assign
AVOptions to streams. Now this is not a problem anymore, so 'ab' should
go.

12 years agoavconv: rename sameq to same_quant
Anton Khirnov [Tue, 9 Aug 2011 09:32:16 +0000 (11:32 +0200)]
avconv: rename sameq to same_quant

It's often mistakenly used as 'same quality', emphasize that it's not
true in the manual.

12 years agodoc/avconv: add forgotten end of chapter.
Anton Khirnov [Tue, 9 Aug 2011 09:05:04 +0000 (11:05 +0200)]
doc/avconv: add forgotten end of chapter.

12 years agoChangelog: document avconv incompatibilities with ffmpeg.
Anton Khirnov [Fri, 29 Jul 2011 12:17:01 +0000 (14:17 +0200)]
Changelog: document avconv incompatibilities with ffmpeg.

12 years agoavconv: replace -vcodec/-acodec/-scodec with a better system.
Anton Khirnov [Mon, 8 Aug 2011 12:29:37 +0000 (14:29 +0200)]
avconv: replace -vcodec/-acodec/-scodec with a better system.

The new option doesn't depend on its placement wrt -new* options (which
don't exist anymore) and works in a similar way as per-stream AVOptions.

-[vas]codec remain as aliases to -codec:[vas]

12 years agoavconv: remove presets.
Anton Khirnov [Fri, 12 Aug 2011 17:19:19 +0000 (19:19 +0200)]
avconv: remove presets.

Nothing except x264 uses them and native x264 presets should be used
with private options.

12 years agosvq3: propagate codec memory allocation failure in context init
Dustin Brody [Fri, 12 Aug 2011 16:05:46 +0000 (12:05 -0400)]
svq3: propagate codec memory allocation failure in context init

Signed-off-by: Anton Khirnov <anton@khirnov.net>
12 years agoFix NASM include directive
Dave Yeo [Sun, 14 Aug 2011 18:46:18 +0000 (11:46 -0700)]
Fix NASM include directive

Signed-off-by: Ronald S. Bultje <rsbultje@gmail.com>
12 years agodsputil_mmx: Honor HAVE_AMD3DNOW
Alex Converse [Sun, 14 Aug 2011 03:02:37 +0000 (20:02 -0700)]
dsputil_mmx: Honor HAVE_AMD3DNOW

12 years agolavf,lavd: remove all usage of AVFormatParameters from demuxers.
Anton Khirnov [Sun, 17 Jul 2011 05:45:33 +0000 (07:45 +0200)]
lavf,lavd: remove all usage of AVFormatParameters from demuxers.

AVFormatParameters are converted into corresponding private options in
av_open_input_file/stream() compat wrappers, so accessing them from
demuxers is redundant.

12 years agojack: add 'channels' private option.
Anton Khirnov [Sun, 17 Jul 2011 06:08:57 +0000 (08:08 +0200)]
jack: add 'channels' private option.

Get rid of AVFormatParameters usage.

12 years agoVC-1: fix reading of custom PAR.
Reimar Döffinger [Sat, 13 Aug 2011 09:58:18 +0000 (11:58 +0200)]
VC-1: fix reading of custom PAR.

Custom PAR num/denum are in 1-256 range.

Signed-off-by: Reimar Döffinger <Reimar.Doeffinger@gmx.de>
Signed-off-by: Diego Biurrun <diego@biurrun.de>
12 years agoRemove redundant and dubious video codec detection by its extradata
Kostya Shishkov [Sun, 14 Aug 2011 18:02:26 +0000 (20:02 +0200)]
Remove redundant and dubious video codec detection by its extradata

Signed-off-by: Diego Biurrun <diego@biurrun.de>
12 years agompeg12: remove repeat-field code disabled since May 2002
Dustin Brody [Fri, 12 Aug 2011 05:30:20 +0000 (01:30 -0400)]
mpeg12: remove repeat-field code disabled since May 2002

Signed-off-by: Diego Biurrun <diego@biurrun.de>
12 years agopatch checklist: suggest fate instead of regression tests
Michael Niedermayer [Sat, 9 Apr 2011 10:50:03 +0000 (10:50 +0000)]
patch checklist: suggest fate instead of regression tests

Signed-off-by: Anton Khirnov <anton@khirnov.net>
12 years agoTurn on resampling on sudden size change instead of bailing out during recode.
Kostya [Sat, 13 Aug 2011 16:44:21 +0000 (16:44 +0000)]
Turn on resampling on sudden size change instead of bailing out during recode.

Signed-off-by: Anton Khirnov <anton@khirnov.net>
12 years agoavtools: reinitialise filter chain when input video stream changes dimensions
Kostya [Sat, 13 Aug 2011 16:44:04 +0000 (16:44 +0000)]
avtools: reinitialise filter chain when input video stream changes dimensions

Signed-off-by: Anton Khirnov <anton@khirnov.net>
12 years agoaacenc: Fix number of coefficients used in a LFE channel.
Nathan Caldwell [Fri, 29 Jul 2011 20:49:04 +0000 (14:49 -0600)]
aacenc: Fix number of coefficients used in a LFE channel.

The spec states:

 *  Only the lowest 12 spectral coefficients of any LFE may be non-zero

We were using the 12 lowest *bands*.

12 years agoaacenc: Fix a segfault with grouped psymodel.
Nathan Caldwell [Sat, 23 Jul 2011 07:19:34 +0000 (01:19 -0600)]
aacenc: Fix a segfault with grouped psymodel.

10l: Forgot about TYPE_LFE being after TYPE_CPE. Which causes a
segfault when encoding 5.1

12 years agoswscale: add dithering to yuv2yuvX_altivec_real
Luca Barbato [Wed, 10 Aug 2011 00:16:26 +0000 (02:16 +0200)]
swscale: add dithering to yuv2yuvX_altivec_real

It just does that part in scalar form, I doubt using a vector store
over 2 array would speed it up particularly.

The function should be written to not use a scratch buffer.

12 years agorv34: free+allocate buffer instead of reallocating it to preserve alignment
Kostya Shishkov [Fri, 12 Aug 2011 19:50:28 +0000 (21:50 +0200)]
rv34: free+allocate buffer instead of reallocating it to preserve alignment

Signed-off-by: Ronald S. Bultje <rsbultje@gmail.com>
12 years agoh264: add missing brackets.
Ronald S. Bultje [Fri, 12 Aug 2011 19:32:31 +0000 (12:32 -0700)]
h264: add missing brackets.

This caused failure of a few fate tests.

12 years agoswscale: use 15-bit intermediates for 9/10-bit scaling.
Ronald S. Bultje [Tue, 2 Aug 2011 22:42:35 +0000 (15:42 -0700)]
swscale: use 15-bit intermediates for 9/10-bit scaling.

12 years agoMove x86util.asm from libavcodec/ to libavutil/.
Ronald S. Bultje [Wed, 3 Aug 2011 16:48:08 +0000 (09:48 -0700)]
Move x86util.asm from libavcodec/ to libavutil/.

This allows using it in swscale also.

12 years agoMove x86inc.asm to libavutil/.
Ronald S. Bultje [Sun, 24 Jul 2011 01:36:35 +0000 (18:36 -0700)]
Move x86inc.asm to libavutil/.

This allows using it in libswscale/ also.

12 years agoAPIchanges: note error_recognition in lavf
Dustin Brody [Sat, 6 Aug 2011 05:42:35 +0000 (01:42 -0400)]
APIchanges: note error_recognition in lavf

Signed-off-by: Anton Khirnov <anton@khirnov.net>
12 years agolavf: add support for error_recognition, use it in avidec, and bump minor API version
Dustin Brody [Sat, 6 Aug 2011 04:42:34 +0000 (04:42 +0000)]
lavf: add support for error_recognition, use it in avidec, and bump minor API version

Signed-off-by: Anton Khirnov <anton@khirnov.net>
12 years agoavconv: change semantics of -map
Anton Khirnov [Fri, 29 Jul 2011 13:21:51 +0000 (15:21 +0200)]
avconv: change semantics of -map

New syntax contains an optional stream type, allowing to refer to n-th
stream of specific type.

Omitting stream number now maps all streams of the given type.

12 years agoavconv: get rid of new* options.
Anton Khirnov [Fri, 29 Jul 2011 06:36:13 +0000 (08:36 +0200)]
avconv: get rid of new* options.

They are confusing, irregular and redundant -- -map already contains all
the information.  Stream maps can now be parsed in opt_output_file().

Add a more user-friendly default behavior in case no maps are present.

Breaks -programid for now, but it never worked properly anyway. A better
solution will be written soon.

12 years agocmdutils: allow precisely specifying a stream for AVOptions.
Anton Khirnov [Thu, 28 Jul 2011 14:47:38 +0000 (16:47 +0200)]
cmdutils: allow precisely specifying a stream for AVOptions.

12 years agoconfigure: add missing CFLAGS to fix building on the HURD
Pino Toscano [Fri, 12 Aug 2011 12:11:21 +0000 (14:11 +0200)]
configure: add missing CFLAGS to fix building on the HURD

Signed-off-by: Reinhard Tartler <siretart@tauware.de>
Signed-off-by: Luca Barbato <lu_zero@gentoo.org>
12 years agolibx264: Include hint for possible values for configuring libx264
Reinhard Tartler [Tue, 9 Aug 2011 12:44:12 +0000 (14:44 +0200)]
libx264: Include hint for possible values for configuring libx264

The output of the x264 commandline tool contains the most uptodate
description of the possible values for the -preset, -tune and -profile
options.

12 years agocmdutils: allow ':'-separated modifiers in option names.
Anton Khirnov [Fri, 29 Jul 2011 11:47:37 +0000 (13:47 +0200)]
cmdutils: allow ':'-separated modifiers in option names.

12 years agoavconv: make -map_metadata work consistently with the other options
Anton Khirnov [Fri, 29 Jul 2011 11:07:27 +0000 (13:07 +0200)]
avconv: make -map_metadata work consistently with the other options

Before, it took an input and output file index, now it only takes an
input file and applies to the next output file.

Stream/chapter/program specification is now part of the option name and
the delimiter was changed from ',' to ':' to be consistent with the
similar feature for AVOptions.

12 years agoavconv: remove deprecated options.
Anton Khirnov [Thu, 28 Jul 2011 10:57:24 +0000 (12:57 +0200)]
avconv: remove deprecated options.

12 years agoavconv: make -map_chapters accept only the input file index.
Anton Khirnov [Wed, 27 Jul 2011 19:39:12 +0000 (21:39 +0200)]
avconv: make -map_chapters accept only the input file index.

This is consistent with how all the other options work.

12 years agoMake a copy of ffmpeg under a new name -- avconv.
Anton Khirnov [Wed, 27 Jul 2011 18:56:59 +0000 (20:56 +0200)]
Make a copy of ffmpeg under a new name -- avconv.

It will be further developed with a few incompatible changes.

ffmpeg.c will stay as is for some time, so any scripts using it won't be
broken.

12 years agoffmpeg: add a warning stating that the program is deprecated.
Anton Khirnov [Wed, 27 Jul 2011 19:04:26 +0000 (21:04 +0200)]
ffmpeg: add a warning stating that the program is deprecated.

12 years agoAdd weighted motion compensation for RV40 B-frames
Kostya Shishkov [Wed, 10 Aug 2011 09:26:39 +0000 (11:26 +0200)]
Add weighted motion compensation for RV40 B-frames

Signed-off-by: Ronald S. Bultje <rsbultje@gmail.com>
12 years agoRV3/4: calculate B-frame motion weights once per frame
Kostya Shishkov [Wed, 10 Aug 2011 09:26:24 +0000 (11:26 +0200)]
RV3/4: calculate B-frame motion weights once per frame

Signed-off-by: Ronald S. Bultje <rsbultje@gmail.com>
12 years agoMove RV3/4-specific DSP functions into their own context
Kostya Shishkov [Tue, 9 Aug 2011 09:00:09 +0000 (11:00 +0200)]
Move RV3/4-specific DSP functions into their own context

Signed-off-by: Ronald S. Bultje <rsbultje@gmail.com>
12 years agomjpeg: propagate decode errors from ff_mjpeg_decode_sos and ff_mjpeg_decode_dqt
Dustin Brody [Thu, 11 Aug 2011 15:16:09 +0000 (11:16 -0400)]
mjpeg: propagate decode errors from ff_mjpeg_decode_sos and ff_mjpeg_decode_dqt

Signed-off-by: Ronald S. Bultje <rsbultje@gmail.com>
12 years agoh264: notice memory allocation failure
Dustin Brody [Thu, 11 Aug 2011 12:57:58 +0000 (08:57 -0400)]
h264: notice memory allocation failure

Signed-off-by: Ronald S. Bultje <rsbultje@gmail.com>
12 years agoac3enc: add macros for option names to make them more understandable.
Justin Ruggles [Tue, 9 Aug 2011 22:11:08 +0000 (18:11 -0400)]
ac3enc: add macros for option names to make them more understandable.

12 years agoac3enc: fix 'channel_coupling' option to actually allow 'auto'.
Justin Ruggles [Wed, 10 Aug 2011 14:21:10 +0000 (10:21 -0400)]
ac3enc: fix 'channel_coupling' option to actually allow 'auto'.

Use 'auto' as the default value.

12 years agocavs: fix some crashes with invalid bitstreams
Mans Rullgard [Wed, 10 Aug 2011 17:52:11 +0000 (18:52 +0100)]
cavs: fix some crashes with invalid bitstreams

This removes all valgrind-reported invalid writes with one
specific test file.

Fixes http://www.ocert.org/advisories/ocert-2011-002.html

Signed-off-by: Mans Rullgard <mans@mansr.com>
12 years agoac3enc: clip coupling coordinates during calculation
Justin Ruggles [Sun, 7 Aug 2011 21:12:49 +0000 (17:12 -0400)]
ac3enc: clip coupling coordinates during calculation

This is faster than using the clip_coefficients() function. Also,
clipping the coordinates before determining reuse is better since it
will compare coordinates that are closer to their final encoded values.

12 years agoRemove incorrect info in documentation of AVCodecContext.bits_per_raw_sample.
Justin Ruggles [Wed, 10 Aug 2011 18:07:35 +0000 (14:07 -0400)]
Remove incorrect info in documentation of AVCodecContext.bits_per_raw_sample.

bits_per_raw_sample is used in video as well, where sample_fmt is not used.

12 years agolavc: fix parentheses placement in avcodec_open2().
Baptiste Coudurier [Tue, 9 Aug 2011 06:41:50 +0000 (23:41 -0700)]
lavc: fix parentheses placement in avcodec_open2().

Signed-off-by: Anton Khirnov <anton@khirnov.net>
12 years agolavc: make avcodec_init() static on next bump.
Anton Khirnov [Wed, 10 Aug 2011 07:50:00 +0000 (09:50 +0200)]
lavc: make avcodec_init() static on next bump.

It's called from avcodec_register() anyway, so there's no reason for it
to be public.

12 years agoac3enc: remove unneeded #include
Justin Ruggles [Sun, 7 Aug 2011 21:09:47 +0000 (17:09 -0400)]
ac3enc: remove unneeded #include