ffmpeg.git
8 years agoIn yadif filter, copy video props to output picture.
Baptiste Coudurier [Mon, 22 Nov 2010 20:42:08 +0000 (20:42 +0000)]
In yadif filter, copy video props to output picture.
Fix issue #2269.
Interpolate pts for the second frame when using field output mode.

Originally committed as revision 25798 to svn://svn.ffmpeg.org/ffmpeg/trunk

8 years agoFail RLE decoding if insufficient data for a complete bitmap was decoded.
Reimar Döffinger [Mon, 22 Nov 2010 20:39:18 +0000 (20:39 +0000)]
Fail RLE decoding if insufficient data for a complete bitmap was decoded.

Originally committed as revision 25797 to svn://svn.ffmpeg.org/ffmpeg/trunk

8 years agoSupport PGS subtitles with RLE data split over mutiple packets.
Mark Goodman [Mon, 22 Nov 2010 20:35:07 +0000 (20:35 +0000)]
Support PGS subtitles with RLE data split over mutiple packets.
Patch by Mark Goodman [mark goodman gmail com] with some modifications by me.

Originally committed as revision 25796 to svn://svn.ffmpeg.org/ffmpeg/trunk

8 years agoffmpeg.c: document default metadata mappings
Anton Khirnov [Mon, 22 Nov 2010 07:32:27 +0000 (07:32 +0000)]
ffmpeg.c: document default metadata mappings

Originally committed as revision 25795 to svn://svn.ffmpeg.org/ffmpeg/trunk

8 years agoffmpeg.c: copy global metadata by default
Anton Khirnov [Mon, 22 Nov 2010 07:32:23 +0000 (07:32 +0000)]
ffmpeg.c: copy global metadata by default

Originally committed as revision 25794 to svn://svn.ffmpeg.org/ffmpeg/trunk

8 years agofix pointer truncation to int in avpicture_layout()
Ramiro Polla [Mon, 22 Nov 2010 03:46:31 +0000 (03:46 +0000)]
fix pointer truncation to int in avpicture_layout()

Originally committed as revision 25793 to svn://svn.ffmpeg.org/ffmpeg/trunk

8 years agoRe-implement avpicture_layout() using pixdesc and imgutils API.
Stefano Sabatini [Sun, 21 Nov 2010 21:25:06 +0000 (21:25 +0000)]
Re-implement avpicture_layout() using pixdesc and imgutils API.

The new implementation is more compact, more correct and doesn't hurt
the eyes.

Originally committed as revision 25792 to svn://svn.ffmpeg.org/ffmpeg/trunk

8 years agoReplace "depth" with "nb_bits" in the header of avcodec_pix_fmt_string().
Stefano Sabatini [Sun, 21 Nov 2010 21:25:02 +0000 (21:25 +0000)]
Replace "depth" with "nb_bits" in the header of avcodec_pix_fmt_string().

Originally committed as revision 25791 to svn://svn.ffmpeg.org/ffmpeg/trunk

8 years agoMusepack SV8 supports "mono" files (though it still codes them as stereo),
Kostya Shishkov [Sun, 21 Nov 2010 20:42:06 +0000 (20:42 +0000)]
Musepack SV8 supports "mono" files (though it still codes them as stereo),
so extend decoder to output only one channel for it.

This fixes issue 2368.

Originally committed as revision 25790 to svn://svn.ffmpeg.org/ffmpeg/trunk

8 years agoUse the new libavcore audio channel API.
Stefano Sabatini [Sun, 21 Nov 2010 20:06:22 +0000 (20:06 +0000)]
Use the new libavcore audio channel API.

This also allows to remove a linking dependency of libavfilter on
libavcodec.

Originally committed as revision 25789 to svn://svn.ffmpeg.org/ffmpeg/trunk

8 years agoRemove declaration of function:
Stefano Sabatini [Sun, 21 Nov 2010 20:06:16 +0000 (20:06 +0000)]
Remove declaration of function:
const char *avcodec_get_channel_name(int channel_id)

which was never implemented.

Originally committed as revision 25788 to svn://svn.ffmpeg.org/ffmpeg/trunk

8 years agoMove audio channel API from libavcodec to libavcore.
Stefano Sabatini [Sun, 21 Nov 2010 19:28:52 +0000 (19:28 +0000)]
Move audio channel API from libavcodec to libavcore.

Originally committed as revision 25787 to svn://svn.ffmpeg.org/ffmpeg/trunk

8 years agomovdec: export creation_date as metadata
Aurelien Jacobs [Sun, 21 Nov 2010 19:02:52 +0000 (19:02 +0000)]
movdec: export creation_date as metadata

Originally committed as revision 25786 to svn://svn.ffmpeg.org/ffmpeg/trunk

8 years agoavidec: export creation_date as metadata
Aurelien Jacobs [Sun, 21 Nov 2010 19:00:07 +0000 (19:00 +0000)]
avidec: export creation_date as metadata

Originally committed as revision 25785 to svn://svn.ffmpeg.org/ffmpeg/trunk

8 years agoPort overlay filter from the libavfilter repo (with many fixes),
Stefano Sabatini [Sun, 21 Nov 2010 18:39:34 +0000 (18:39 +0000)]
Port overlay filter from the libavfilter repo (with many fixes),
adopting Baptiste variant which is simpler and faster.

Originally committed as revision 25784 to svn://svn.ffmpeg.org/ffmpeg/trunk

8 years agoDocument added functions.
Reimar Döffinger [Sun, 21 Nov 2010 11:38:08 +0000 (11:38 +0000)]
Document added functions.

Originally committed as revision 25783 to svn://svn.ffmpeg.org/ffmpeg/trunk

8 years agoImprove documentation wording.
Reimar Döffinger [Sun, 21 Nov 2010 11:33:26 +0000 (11:33 +0000)]
Improve documentation wording.

Originally committed as revision 25782 to svn://svn.ffmpeg.org/ffmpeg/trunk

8 years agoFix indentation.
Reimar Döffinger [Sun, 21 Nov 2010 11:07:04 +0000 (11:07 +0000)]
Fix indentation.

Originally committed as revision 25781 to svn://svn.ffmpeg.org/ffmpeg/trunk

8 years agoFix indentation.
Reimar Döffinger [Sun, 21 Nov 2010 10:38:08 +0000 (10:38 +0000)]
Fix indentation.

Originally committed as revision 25780 to svn://svn.ffmpeg.org/ffmpeg/trunk

8 years agoAdd explanation and alternative implementation for strange xan
Reimar Döffinger [Sun, 21 Nov 2010 10:37:26 +0000 (10:37 +0000)]
Add explanation and alternative implementation for strange xan
gamma correction.

Originally committed as revision 25779 to svn://svn.ffmpeg.org/ffmpeg/trunk

8 years agoWC3/xan: move palette handling to decoder, avoiding need for
Reimar Döffinger [Sun, 21 Nov 2010 10:32:23 +0000 (10:32 +0000)]
WC3/xan: move palette handling to decoder, avoiding need for
PaletteControl.
This also fixes playback of some files with ffplay (images were
corrupted for a short time after a palette change).

Originally committed as revision 25778 to svn://svn.ffmpeg.org/ffmpeg/trunk

8 years agoAdd av_append_packet function, to be used in code that merges packets
Reimar Döffinger [Sun, 21 Nov 2010 10:24:48 +0000 (10:24 +0000)]
Add av_append_packet function, to be used in code that merges packets
to allow palette handling without using PaletteControl.

Originally committed as revision 25777 to svn://svn.ffmpeg.org/ffmpeg/trunk

8 years agoAdd a av_grow_packet function, to be used by code that merges
Reimar Döffinger [Sun, 21 Nov 2010 10:21:06 +0000 (10:21 +0000)]
Add a av_grow_packet function, to be used by code that merges
palette and video data packets to get rid of PaletteControl.

Originally committed as revision 25776 to svn://svn.ffmpeg.org/ffmpeg/trunk

8 years agoadpcm: Fix a comment in the trellis heap code
Martin Storsjö [Sat, 20 Nov 2010 11:24:19 +0000 (11:24 +0000)]
adpcm: Fix a comment in the trellis heap code

This makes the wording consistent with how people usually talk about heaps.

Originally committed as revision 25775 to svn://svn.ffmpeg.org/ffmpeg/trunk

8 years agoMerge rotation into lookup table.
Reimar Döffinger [Sat, 20 Nov 2010 09:36:46 +0000 (09:36 +0000)]
Merge rotation into lookup table.

Originally committed as revision 25774 to svn://svn.ffmpeg.org/ffmpeg/trunk

8 years agoCosmetics, fix indentation
Baptiste Coudurier [Sat, 20 Nov 2010 08:03:58 +0000 (08:03 +0000)]
Cosmetics, fix indentation

Originally committed as revision 25773 to svn://svn.ffmpeg.org/ffmpeg/trunk

8 years agoadpcm: Only increment heap_pos after finding a good enough sample
Martin Storsjö [Fri, 19 Nov 2010 17:36:29 +0000 (17:36 +0000)]
adpcm: Only increment heap_pos after finding a good enough sample

This increases the PSNR slightly (about 0.1 dB) for trellis sizes
below 8, and gives equal PSNR for sizes above that.

Originally committed as revision 25769 to svn://svn.ffmpeg.org/ffmpeg/trunk

8 years agoadpcm: Use a hash table to improve checking for duplicate samples
Martin Storsjö [Fri, 19 Nov 2010 17:35:52 +0000 (17:35 +0000)]
adpcm: Use a hash table to improve checking for duplicate samples

This lowers the run time from 158 to 21 seconds, for -trellis 8
with a 30 second sample on my machine.

This requires 64 KB additional memory.

Originally committed as revision 25768 to svn://svn.ffmpeg.org/ffmpeg/trunk

8 years agoFix qdm2 decoder packet handling to match the api
Baptiste Coudurier [Fri, 19 Nov 2010 06:52:30 +0000 (06:52 +0000)]
Fix qdm2 decoder packet handling to match the api

Originally committed as revision 25767 to svn://svn.ffmpeg.org/ffmpeg/trunk

8 years agoOrder matters, fix test files linking.
Stefano Sabatini [Fri, 19 Nov 2010 00:04:23 +0000 (00:04 +0000)]
Order matters, fix test files linking.

Originally committed as revision 25766 to svn://svn.ffmpeg.org/ffmpeg/trunk

8 years agoLog error message in case of invalid parsing.
Stefano Sabatini [Thu, 18 Nov 2010 20:37:22 +0000 (20:37 +0000)]
Log error message in case of invalid parsing.

Originally committed as revision 25765 to svn://svn.ffmpeg.org/ffmpeg/trunk

8 years agoFix style: if( -> if (.
Stefano Sabatini [Thu, 18 Nov 2010 20:37:20 +0000 (20:37 +0000)]
Fix style: if( -> if (.

Originally committed as revision 25764 to svn://svn.ffmpeg.org/ffmpeg/trunk

8 years agoRemove redundant information in header.
Stefano Sabatini [Thu, 18 Nov 2010 20:37:17 +0000 (20:37 +0000)]
Remove redundant information in header.

Originally committed as revision 25763 to svn://svn.ffmpeg.org/ffmpeg/trunk

8 years ago100l: Fix crash in SPDIF muxer.
Carl Eugen Hoyos [Wed, 17 Nov 2010 23:23:25 +0000 (23:23 +0000)]
100l: Fix crash in SPDIF muxer.

Originally committed as revision 25762 to svn://svn.ffmpeg.org/ffmpeg/trunk

8 years agomove the av_parse_color() function from libavfilter to libavcore
Aurelien Jacobs [Wed, 17 Nov 2010 22:58:28 +0000 (22:58 +0000)]
move the av_parse_color() function from libavfilter to libavcore

Originally committed as revision 25761 to svn://svn.ffmpeg.org/ffmpeg/trunk

8 years agoAdd support for IEC 61937 ("SPDIF") encapsulation for E-AC-3.
Carl Eugen Hoyos [Wed, 17 Nov 2010 12:22:59 +0000 (12:22 +0000)]
Add support for IEC 61937 ("SPDIF") encapsulation for E-AC-3.
Only works via HDMI.

Patch by Anssi Hannula (anssi d hannula a iki d fi), based on some work
by myself.

Originally committed as revision 25760 to svn://svn.ffmpeg.org/ffmpeg/trunk

8 years ago100L fix get_video_buffer in pad filter, get_video_buffer will store wrong values...
Baptiste Coudurier [Wed, 17 Nov 2010 01:03:06 +0000 (01:03 +0000)]
100L fix get_video_buffer in pad filter, get_video_buffer will store wrong values for w and h

Originally committed as revision 25759 to svn://svn.ffmpeg.org/ffmpeg/trunk

8 years agoav_find_stream_info(): set subtitle codec time_base
Aurelien Jacobs [Tue, 16 Nov 2010 23:50:18 +0000 (23:50 +0000)]
av_find_stream_info(): set subtitle codec time_base

Originally committed as revision 25758 to svn://svn.ffmpeg.org/ffmpeg/trunk

8 years agoIn mov demuxer, export .mov encoder metadata tag
Baptiste Coudurier [Tue, 16 Nov 2010 05:55:09 +0000 (05:55 +0000)]
In mov demuxer, export .mov encoder metadata tag

Originally committed as revision 25757 to svn://svn.ffmpeg.org/ffmpeg/trunk

8 years agoMake DNxHD encoder produce files that are strictly VC-3 compatible
Baptiste Coudurier [Tue, 16 Nov 2010 01:00:55 +0000 (01:00 +0000)]
Make DNxHD encoder produce files that are strictly VC-3 compatible

Originally committed as revision 25756 to svn://svn.ffmpeg.org/ffmpeg/trunk

8 years agortsp: Parse and use the Content-Base reply header, if present
Martin Storsjö [Mon, 15 Nov 2010 15:08:53 +0000 (15:08 +0000)]
rtsp: Parse and use the Content-Base reply header, if present

This fixes playing RTSP urls with query parameters.

Originally committed as revision 25755 to svn://svn.ffmpeg.org/ffmpeg/trunk

8 years ago16l trocadero: Musepack SV7 decoder may skip more than 16 bits at the
Kostya Shishkov [Mon, 15 Nov 2010 09:30:20 +0000 (09:30 +0000)]
16l trocadero: Musepack SV7 decoder may skip more than 16 bits at the
beginning of the frame, so make it use skip_bits_long() instead of
skip_bits() for that.

Originally committed as revision 25754 to svn://svn.ffmpeg.org/ffmpeg/trunk

8 years agominor bump and Changelog entry for r25747
Aurelien Jacobs [Sun, 14 Nov 2010 17:33:43 +0000 (17:33 +0000)]
minor bump and Changelog entry for r25747

Originally committed as revision 25753 to svn://svn.ffmpeg.org/ffmpeg/trunk

8 years agominor bump and APIchanges for r25745
Aurelien Jacobs [Sun, 14 Nov 2010 17:31:06 +0000 (17:31 +0000)]
minor bump and APIchanges for r25745

Originally committed as revision 25752 to svn://svn.ffmpeg.org/ffmpeg/trunk

8 years agoadpcm: Fix a comment
Martin Storsjö [Sun, 14 Nov 2010 10:23:58 +0000 (10:23 +0000)]
adpcm: Fix a comment

Originally committed as revision 25751 to svn://svn.ffmpeg.org/ffmpeg/trunk

8 years agoAdd AMR-NB FATE tests
Vitor Sessak [Sun, 14 Nov 2010 09:35:51 +0000 (09:35 +0000)]
Add AMR-NB FATE tests

Originally committed as revision 25750 to svn://svn.ffmpeg.org/ffmpeg/trunk

8 years agoAdd Musepack7 FATE test
Vitor Sessak [Sun, 14 Nov 2010 09:34:55 +0000 (09:34 +0000)]
Add Musepack7 FATE test

Originally committed as revision 25749 to svn://svn.ffmpeg.org/ffmpeg/trunk

8 years agoFix frei0r filter after av_parse_color() syntax change.
Stefano Sabatini [Sat, 13 Nov 2010 14:37:48 +0000 (14:37 +0000)]
Fix frei0r filter after av_parse_color() syntax change.

Originally committed as revision 25748 to svn://svn.ffmpeg.org/ffmpeg/trunk

8 years agoadd missing files in previous commit (ASS encoder and decoder)
Aurelien Jacobs [Sat, 13 Nov 2010 14:18:59 +0000 (14:18 +0000)]
add missing files in previous commit (ASS encoder and decoder)

Originally committed as revision 25747 to svn://svn.ffmpeg.org/ffmpeg/trunk

8 years agoadd ASS encoder and decoder
Aurelien Jacobs [Sat, 13 Nov 2010 14:17:57 +0000 (14:17 +0000)]
add ASS encoder and decoder

Originally committed as revision 25746 to svn://svn.ffmpeg.org/ffmpeg/trunk

8 years agoallow passing subtitles header between decoder and encoder
Aurelien Jacobs [Sat, 13 Nov 2010 13:57:49 +0000 (13:57 +0000)]
allow passing subtitles header between decoder and encoder

Originally committed as revision 25745 to svn://svn.ffmpeg.org/ffmpeg/trunk

8 years agoimprove av_parse_color() to allow for non-null terminated color string
Aurelien Jacobs [Sat, 13 Nov 2010 13:55:01 +0000 (13:55 +0000)]
improve av_parse_color() to allow for non-null terminated color string

Originally committed as revision 25744 to svn://svn.ffmpeg.org/ffmpeg/trunk

8 years agoimprove av_parse_color() to support html formatting
Aurelien Jacobs [Sat, 13 Nov 2010 13:49:58 +0000 (13:49 +0000)]
improve av_parse_color() to support html formatting

Originally committed as revision 25743 to svn://svn.ffmpeg.org/ffmpeg/trunk

8 years agoadd global header support for subtitles encoding
Aurelien Jacobs [Sat, 13 Nov 2010 13:46:36 +0000 (13:46 +0000)]
add global header support for subtitles encoding

Originally committed as revision 25742 to svn://svn.ffmpeg.org/ffmpeg/trunk

8 years agoFix revision number of the last APIchanges entry.
Stefano Sabatini [Sat, 13 Nov 2010 10:01:18 +0000 (10:01 +0000)]
Fix revision number of the last APIchanges entry.

Originally committed as revision 25741 to svn://svn.ffmpeg.org/ffmpeg/trunk

8 years agoMake avfiltergraph.h public.
Stefano Sabatini [Sat, 13 Nov 2010 09:51:22 +0000 (09:51 +0000)]
Make avfiltergraph.h public.

Originally committed as revision 25740 to svn://svn.ffmpeg.org/ffmpeg/trunk

8 years agoIn ff_get_ref_perms_string() use 'u' and 'U' for representing
Stefano Sabatini [Sat, 13 Nov 2010 09:20:32 +0000 (09:20 +0000)]
In ff_get_ref_perms_string() use 'u' and 'U' for representing
AV_PERM_REUSE and AV_PERM_REUSE2 flags, avoid conflict with the char
'r' used for AV_PERM_READ.

Originally committed as revision 25739 to svn://svn.ffmpeg.org/ffmpeg/trunk

8 years agolavf/utils: use av_{i/o}format_next() instead of first_{i/o}format
Anton Khirnov [Sat, 13 Nov 2010 08:55:15 +0000 (08:55 +0000)]
lavf/utils: use av_{i/o}format_next() instead of first_{i/o}format

Originally committed as revision 25738 to svn://svn.ffmpeg.org/ffmpeg/trunk

8 years agoPrefix with "ff_" the functions:
Stefano Sabatini [Sat, 13 Nov 2010 00:21:28 +0000 (00:21 +0000)]
Prefix with "ff_" the functions:
ff_avfilter_graph_check_validity()
ff_avfilter_graph_config_links()
ff_avfilter_graph_config_formats()

and move their declaration to internal.h. These functions are never
used in application code, so it is better to consider them internal
functions, this can be changed later if necessary. Simplify API.

Originally committed as revision 25737 to svn://svn.ffmpeg.org/ffmpeg/trunk

8 years agoRemove now unused file (should have been part of commit r25735)
Vitor Sessak [Fri, 12 Nov 2010 20:15:36 +0000 (20:15 +0000)]
Remove now unused file (should have been part of commit r25735)

Originally committed as revision 25736 to svn://svn.ffmpeg.org/ffmpeg/trunk

8 years agoTest 4XM decoding (and not only demuxing) in FATE tests
Vitor Sessak [Fri, 12 Nov 2010 20:04:41 +0000 (20:04 +0000)]
Test 4XM decoding (and not only demuxing) in FATE tests

Originally committed as revision 25735 to svn://svn.ffmpeg.org/ffmpeg/trunk

8 years agoFix visual artifacts in 4XM decoding on big-endian system
Vitor Sessak [Fri, 12 Nov 2010 19:55:26 +0000 (19:55 +0000)]
Fix visual artifacts in 4XM decoding on big-endian system

Originally committed as revision 25734 to svn://svn.ffmpeg.org/ffmpeg/trunk

8 years agoadpcm: Replace any of the leaf nodes in the heap
Martin Storsjö [Fri, 12 Nov 2010 12:30:27 +0000 (12:30 +0000)]
adpcm: Replace any of the leaf nodes in the heap

By not looking for the exactly largest node, we avoid an O(n) seek through
the leaf nodes. Just pick one (not the same one every time) and try replacing
that node with the new one.

For -trellis 8, this lowers the run time from 190 to 158 seconds,
for a 30 second 44 kHz mono sample, on my machine.

Originally committed as revision 25733 to svn://svn.ffmpeg.org/ffmpeg/trunk

8 years agoReindent
Martin Storsjö [Fri, 12 Nov 2010 12:28:02 +0000 (12:28 +0000)]
Reindent

Originally committed as revision 25732 to svn://svn.ffmpeg.org/ffmpeg/trunk

8 years agoadpcm: Store the trellis nodes in a heap instead of a sorted array
Martin Storsjö [Fri, 12 Nov 2010 12:27:27 +0000 (12:27 +0000)]
adpcm: Store the trellis nodes in a heap instead of a sorted array

This avoids having to memmove the large parts of the array when inserting into
it.

For -trellis 8, this lowers the run time from 245 seconds to 190 seconds,
for a 30 second 44 kHz mono sample, on my machine.

Originally committed as revision 25731 to svn://svn.ffmpeg.org/ffmpeg/trunk

8 years agoReplace deprecated symbols SAMPLE_FMT_* with AV_SAMPLE_FMT_*, and enum
Stefano Sabatini [Fri, 12 Nov 2010 11:04:40 +0000 (11:04 +0000)]
Replace deprecated symbols SAMPLE_FMT_* with AV_SAMPLE_FMT_*, and enum
SampleFormat with AVSampleFormat.

Originally committed as revision 25730 to svn://svn.ffmpeg.org/ffmpeg/trunk

8 years agoffmpeg.c: add a forgotten break in chapter copying
Anton Khirnov [Fri, 12 Nov 2010 06:56:26 +0000 (06:56 +0000)]
ffmpeg.c: add a forgotten break in chapter copying

only copy chapters from one file

Originally committed as revision 25729 to svn://svn.ffmpeg.org/ffmpeg/trunk

8 years agoffmpeg.c: reindent
Anton Khirnov [Fri, 12 Nov 2010 06:56:23 +0000 (06:56 +0000)]
ffmpeg.c: reindent

Originally committed as revision 25728 to svn://svn.ffmpeg.org/ffmpeg/trunk

8 years agoffmpeg.c: add an option for copying chapters
Anton Khirnov [Fri, 12 Nov 2010 06:56:19 +0000 (06:56 +0000)]
ffmpeg.c: add an option for copying chapters

fixes issue 2068

Originally committed as revision 25727 to svn://svn.ffmpeg.org/ffmpeg/trunk

8 years ago10l: dx shouldn't exist.
Alex Converse [Fri, 12 Nov 2010 05:38:57 +0000 (05:38 +0000)]
10l: dx shouldn't exist.

sorry sorry sorry sorry

Originally committed as revision 25726 to svn://svn.ffmpeg.org/ffmpeg/trunk

8 years ago10l: vorbisdec: declare dy
Alex Converse [Fri, 12 Nov 2010 05:34:32 +0000 (05:34 +0000)]
10l: vorbisdec: declare dy

Originally committed as revision 25725 to svn://svn.ffmpeg.org/ffmpeg/trunk

8 years agovorbisdec: Fix floor1 decoding
Gregory Maxwell [Fri, 12 Nov 2010 04:33:26 +0000 (04:33 +0000)]
vorbisdec: Fix floor1 decoding

An intermediate value in the floor 1 linear interpolation was
overflowing
resulting in obvious artifacts on some files.

e.g.
http://upload.wikimedia.org/wikipedia/commons/7/79/Big_Buck_Bunny_small.ogv

Prior to this fix 87 out of 128 64kbit/s mono files decoded with ffmpeg
have
lower PEAQ ODG values than the same files decoded with libvorbis. With
this
fix none of that set have significantly worse ODG values than libvorbis.

Fixes issue 2352

Patch by Gregory Maxwell <greg@xiph.org>

Originally committed as revision 25724 to svn://svn.ffmpeg.org/ffmpeg/trunk

8 years agoAdd missing check on the existence of an associated output pad for
Stefano Sabatini [Thu, 11 Nov 2010 22:41:22 +0000 (22:41 +0000)]
Add missing check on the existence of an associated output pad for
each specified output link label.

Fix crash.

Originally committed as revision 25723 to svn://svn.ffmpeg.org/ffmpeg/trunk

8 years agoremove declaration inside for(), i is already declared
Aurelien Jacobs [Thu, 11 Nov 2010 21:29:37 +0000 (21:29 +0000)]
remove declaration inside for(), i is already declared

Originally committed as revision 25722 to svn://svn.ffmpeg.org/ffmpeg/trunk

8 years agoMJPEG/AVI1 to JPEG/JFIF bitstream filter.
Nicolas George [Thu, 11 Nov 2010 15:24:11 +0000 (15:24 +0000)]
MJPEG/AVI1 to JPEG/JFIF bitstream filter.

Originally committed as revision 25721 to svn://svn.ffmpeg.org/ffmpeg/trunk

8 years agoRemove bitrate tolerance from libx264 interface
Jason Garrett-Glaser [Thu, 11 Nov 2010 14:34:27 +0000 (14:34 +0000)]
Remove bitrate tolerance from libx264 interface
Nobody ever uses it correctly, and ffmpeg sets it incorrectly, so we'll just
leave it out.

Originally committed as revision 25720 to svn://svn.ffmpeg.org/ffmpeg/trunk

8 years agodrop support for base-10 encoded alpha component in av_parse_color()
Aurelien Jacobs [Wed, 10 Nov 2010 23:37:12 +0000 (23:37 +0000)]
drop support for base-10 encoded alpha component in av_parse_color()

Originally committed as revision 25719 to svn://svn.ffmpeg.org/ffmpeg/trunk

8 years agoIn avcodec_pix_fmt_string() use local variable pixdesc rather than
Stefano Sabatini [Wed, 10 Nov 2010 20:13:24 +0000 (20:13 +0000)]
In avcodec_pix_fmt_string() use local variable pixdesc rather than
av_pix_fmt_descriptors[pix_fmt], simplify.

Originally committed as revision 25718 to svn://svn.ffmpeg.org/ffmpeg/trunk

8 years agoMake avcodec_pix_fmt_string() use the information in the pixel format
Stefano Sabatini [Wed, 10 Nov 2010 20:13:19 +0000 (20:13 +0000)]
Make avcodec_pix_fmt_string() use the information in the pixel format
descriptors for printing the number of channels/components.

Also replace the term "nb_channels" with "nb_components" which is more
consistent with the FFmpeg internal terminology, and is somehow
different with respect to the current definition of nb_channels in
PixFmtInfo.

See thread:
Subject: [FFmpeg-devel] [PATCH 6/8] Make avcodec_pix_fmt_string() use the
        information in the pixel format descriptors for printing the
        number of planes. Also replace the term "nb_channels" with
        "nb_planes" which is more correct.
Date: Fri,  5 Nov 2010 12:01:38 +0100

Originally committed as revision 25717 to svn://svn.ffmpeg.org/ffmpeg/trunk

8 years agoIntel C compiler 12.0 does not suport these attributes: may_alias, force_align_arg_po...
Carl Eugen Hoyos [Wed, 10 Nov 2010 12:45:41 +0000 (12:45 +0000)]
Intel C compiler 12.0 does not suport these attributes: may_alias, force_align_arg_pointer and alloc_size.

Originally committed as revision 25716 to svn://svn.ffmpeg.org/ffmpeg/trunk

8 years agoMove code to be used by the IEC 61937 demuxer from spifenc.c into common
Anssi Hannula [Wed, 10 Nov 2010 00:04:12 +0000 (00:04 +0000)]
Move code to be used by the IEC 61937 demuxer from spifenc.c into common
files spdif.h and spdif.c.

Patch by Anssi Hannula, anssi d hannula a iki d fi

Originally committed as revision 25715 to svn://svn.ffmpeg.org/ffmpeg/trunk

8 years agoSimplify: Remove impossible condition.
Nicolas Kaiser [Tue, 9 Nov 2010 23:58:41 +0000 (23:58 +0000)]
Simplify: Remove impossible condition.

Patch by Nicolas Kaiser, nikai nikai net

Originally committed as revision 25714 to svn://svn.ffmpeg.org/ffmpeg/trunk

8 years agoRename spdif.c as spdifenc,c to prepare for future spdif demuxer.
Anssi Hannula [Tue, 9 Nov 2010 23:57:02 +0000 (23:57 +0000)]
Rename spdif.c as spdifenc,c to prepare for future spdif demuxer.

Patch by Anssi Hannula, anssi d hannula a iki d fi

Originally committed as revision 25713 to svn://svn.ffmpeg.org/ffmpeg/trunk

8 years agoMove internal function ff_set_systematic_pal() to libavcore, and
Stefano Sabatini [Tue, 9 Nov 2010 22:22:36 +0000 (22:22 +0000)]
Move internal function ff_set_systematic_pal() to libavcore, and
rename it ff_set_systematic_pal2().

Originally committed as revision 25712 to svn://svn.ffmpeg.org/ffmpeg/trunk

8 years agoReindent after last commit.
Thilo Borgmann [Mon, 8 Nov 2010 15:24:11 +0000 (15:24 +0000)]
Reindent after last commit.

Originally committed as revision 25711 to svn://svn.ffmpeg.org/ffmpeg/trunk

8 years agoAllow clean initialization of lut_status array by changing type to signed int.
Thilo Borgmann [Mon, 8 Nov 2010 15:22:15 +0000 (15:22 +0000)]
Allow clean initialization of lut_status array by changing type to signed int.

Originally committed as revision 25710 to svn://svn.ffmpeg.org/ffmpeg/trunk

8 years agoAdd a file for bitstream filters documentation.
Stefano Sabatini [Mon, 8 Nov 2010 14:27:16 +0000 (14:27 +0000)]
Add a file for bitstream filters documentation.

Based on a patch by Nicolas George
<@var{name}.@var{surname}@@normalesup.@code{org}>.

Originally committed as revision 25709 to svn://svn.ffmpeg.org/ffmpeg/trunk

8 years agoUse hierarchic names convention (prefix them with av_expr) for the
Stefano Sabatini [Mon, 8 Nov 2010 14:06:49 +0000 (14:06 +0000)]
Use hierarchic names convention (prefix them with av_expr) for the
eval API.

More grep-friendly and more consistent with the rest of the FFmpeg
API.

Originally committed as revision 25708 to svn://svn.ffmpeg.org/ffmpeg/trunk

8 years agoRename avfilter_destroy() as avfilter_free().
Stefano Sabatini [Mon, 8 Nov 2010 12:32:39 +0000 (12:32 +0000)]
Rename avfilter_destroy() as avfilter_free().

The new name is shorter and more consistent with the FFmpeg API, and
sounds less evil.

Originally committed as revision 25707 to svn://svn.ffmpeg.org/ffmpeg/trunk

8 years agoffmpeg.c: allow using negative file indices to disable metadata copying
Anton Khirnov [Mon, 8 Nov 2010 06:47:41 +0000 (06:47 +0000)]
ffmpeg.c: allow using negative file indices to disable metadata copying

Originally committed as revision 25706 to svn://svn.ffmpeg.org/ffmpeg/trunk

8 years agoRemove graphparser.h header, move AVFilterInOut and
Stefano Sabatini [Sun, 7 Nov 2010 22:56:29 +0000 (22:56 +0000)]
Remove graphparser.h header, move AVFilterInOut and
avfilter_graph_parse() declaration to libavfilter/avfiltergraph.h.

Simplify, and less confusing for the user.

Originally committed as revision 25705 to svn://svn.ffmpeg.org/ffmpeg/trunk

8 years agoDocument AVFilterInOut fields.
Stefano Sabatini [Sun, 7 Nov 2010 22:47:37 +0000 (22:47 +0000)]
Document AVFilterInOut fields.

Originally committed as revision 25704 to svn://svn.ffmpeg.org/ffmpeg/trunk

8 years agoExtend documentation for parse_filter().
Stefano Sabatini [Sun, 7 Nov 2010 22:47:33 +0000 (22:47 +0000)]
Extend documentation for parse_filter().

Originally committed as revision 25703 to svn://svn.ffmpeg.org/ffmpeg/trunk

8 years agoFix date in latest APIchanges entry.
Stefano Sabatini [Sun, 7 Nov 2010 19:22:55 +0000 (19:22 +0000)]
Fix date in latest APIchanges entry.

Originally committed as revision 25702 to svn://svn.ffmpeg.org/ffmpeg/trunk

8 years agoBump lavfi minor and add APIchanges entry after the rename of
Stefano Sabatini [Sun, 7 Nov 2010 18:56:44 +0000 (18:56 +0000)]
Bump lavfi minor and add APIchanges entry after the rename of
AVFilterInOut.filter.

Originally committed as revision 25701 to svn://svn.ffmpeg.org/ffmpeg/trunk

8 years agoRename AVFilterInOut field filter to filter_ctx, more semantically correct.
Stefano Sabatini [Sun, 7 Nov 2010 18:40:18 +0000 (18:40 +0000)]
Rename AVFilterInOut field filter to filter_ctx, more semantically correct.

Originally committed as revision 25700 to svn://svn.ffmpeg.org/ffmpeg/trunk

8 years agoMake avfilter_graph_parse() always return meaningful error codes.
Stefano Sabatini [Sun, 7 Nov 2010 18:40:14 +0000 (18:40 +0000)]
Make avfilter_graph_parse() always return meaningful error codes.

Originally committed as revision 25699 to svn://svn.ffmpeg.org/ffmpeg/trunk

8 years agoMake parse_outputs() always return meaningful error codes.
Stefano Sabatini [Sun, 7 Nov 2010 18:40:12 +0000 (18:40 +0000)]
Make parse_outputs() always return meaningful error codes.

Originally committed as revision 25698 to svn://svn.ffmpeg.org/ffmpeg/trunk

8 years agoAdd missing memory check in parse_inputs(), and fix possible (yet very unlikely)...
Stefano Sabatini [Sun, 7 Nov 2010 18:40:09 +0000 (18:40 +0000)]
Add missing memory check in parse_inputs(), and fix possible (yet very unlikely) crash.

Originally committed as revision 25697 to svn://svn.ffmpeg.org/ffmpeg/trunk

8 years agoMake parse_inputs() return AVERROR(EINVAL) rather than -1 in case the
Stefano Sabatini [Sun, 7 Nov 2010 18:40:07 +0000 (18:40 +0000)]
Make parse_inputs() return AVERROR(EINVAL) rather than -1 in case the
link label parsed by parse_link_name() is invalid.

Originally committed as revision 25696 to svn://svn.ffmpeg.org/ffmpeg/trunk