OSDN Git Service

android-x86/external-ffmpeg.git
13 years agoffserver: Try matching the RTSP url without a trailing slash
Martin Storsjö [Wed, 16 Feb 2011 14:37:40 +0000 (16:37 +0200)]
ffserver: Try matching the RTSP url without a trailing slash

If the client sends PLAY/PAUSE requests with the same url as
specified in Content-Base, these requests may have urls with
trailing slashes.
(cherry picked from commit c2ca851b234e169b50730ef357aeade8047491eb)

13 years agoAdd SHA1s to APIChanges for av_dump_format, av_parse_time and av_find_info_tag
Janne Grunau [Thu, 17 Feb 2011 20:49:08 +0000 (21:49 +0100)]
Add SHA1s to APIChanges for av_dump_format, av_parse_time and av_find_info_tag
Signed-off-by: Janne Grunau <janne-ffmpeg@jannau.net>
(cherry picked from commit c3dbfa1afd7d989e3bba4c6bfc492a52c012e9b3)

13 years agolavf, lavu: bump minor versions and add an APIChanges entry for av_ prefixes
Anton Khirnov [Wed, 16 Feb 2011 08:52:39 +0000 (09:52 +0100)]
lavf, lavu: bump minor versions and add an APIChanges entry for av_ prefixes

Signed-off-by: Janne Grunau <janne-ffmpeg@jannau.net>
(cherry picked from commit 09d171b98879f58be1a766d5f277e131b18e98a1)

13 years agoMove find_info_tag to lavu and add av_ prefix to it
Anton Khirnov [Wed, 16 Feb 2011 08:52:38 +0000 (09:52 +0100)]
Move find_info_tag to lavu and add av_ prefix to it

Signed-off-by: Janne Grunau <janne-ffmpeg@jannau.net>
(cherry picked from commit ab0287fcbdebc8ff416214535d7ee8424406990e)

13 years agomdct: remove unnecessary multiplication
Young Han Lee [Thu, 17 Feb 2011 07:45:54 +0000 (16:45 +0900)]
mdct: remove unnecessary multiplication

3*n4 was already calculated in n3.
(cherry picked from commit 979395bbbb9381b522b44c3448c24aef9c819ffc)

13 years agoac3enc: fix bug in stereo rematrixing decision.
Justin Ruggles [Wed, 16 Feb 2011 00:30:24 +0000 (00:30 +0000)]
ac3enc: fix bug in stereo rematrixing decision.

The rematrixing strategy reuse flags are not reset between frames, so they
need to be initialized for all blocks, not just block 0.

Signed-off-by: Mans Rullgard <mans@mansr.com>
(cherry picked from commit 5b54d4b376fbd2c291b8a6dba7d425e28f654bcf)

13 years agoReplace remaining uses of parse_date with av_parse_time.
Anton Khirnov [Wed, 16 Feb 2011 08:52:37 +0000 (08:52 +0000)]
Replace remaining uses of parse_date with av_parse_time.

Signed-off-by: Mans Rullgard <mans@mansr.com>
(cherry picked from commit 9fcae9735e3b97366dcee9ca3c2f6cf4faf6756f)

13 years agoDeprecate parse_date() in favor of av_parse_time().
Stefano Sabatini [Wed, 16 Feb 2011 08:52:36 +0000 (08:52 +0000)]
Deprecate parse_date() in favor of av_parse_time().

The new av_parse_time() is created in libavutil/parseutils.h, all the
internal functions used by parse_date are moved to
libavutil/parseutils.c and made static.

Signed-off-by: Mans Rullgard <mans@mansr.com>
(cherry picked from commit f6c7375a175ac649558aefab14f3895b2cb469aa)

13 years agolavf: add av_ prefix to dump_format()
Anton Khirnov [Wed, 16 Feb 2011 08:52:35 +0000 (08:52 +0000)]
lavf: add av_ prefix to dump_format()

Signed-off-by: Mans Rullgard <mans@mansr.com>
(cherry picked from commit 610219a598095f938705f200dfe3946455ef871a)

13 years agortsp: udp_read_packet returning 0 doesn't mean success
Martin Storsjö [Wed, 16 Feb 2011 12:35:47 +0000 (14:35 +0200)]
rtsp: udp_read_packet returning 0 doesn't mean success

If udp_read_packet returns 0, rtsp_st isn't set and we shouldn't
treat it as a successfully received packet (which is counted and
possibly triggers a RTCP receiver report).

This fixes issue 2612.
(cherry picked from commit 2c35a6bde95a382e2d48570255deb67a7633fa46)

13 years agoffserver: set the sample aspect ratio
Nicolas George [Wed, 16 Feb 2011 13:53:08 +0000 (14:53 +0100)]
ffserver: set the sample aspect ratio

Hi.

It seems that ffserver sets sample_aspect_ratio to an invalid value and lavf
rejects it.

I am not sure what I am doing here, but the attached patch actually solves
something: using the following config:

CustomLog -
NoDaemon
RTSPPort 5454
<Stream test1-rtsp.mpg>
Format rtp
File "/tmp/test1-rtsp.mpg"
</Stream>

it allows a somewhat old ffplay (unaffected by the content-base issue I
spoke of in another thread) to play the stream.

Without it, ffserver logs this and closes the stream:

Wed Feb 16 14:52:14 2011 [rtp @ 0x1399de0]Aspect ratio mismatch between encoder and muxer layer

Regards,

--
  Nicolas George

From 1b89c3c2164335060e87567b27deb0d354e0a814 Mon Sep 17 00:00:00 2001
From: Nicolas George <nicolas.george@normalesup.org>
Date: Wed, 16 Feb 2011 14:44:31 +0100
Subject: [PATCH] ffserver: set the sample aspect ratio.

Signed-off-by: Nicolas George <nicolas.george@normalesup.org>
(cherry picked from commit 6741f7c9be4913e084ad067571f3f29853ec5d5a)

13 years agodocumentation: add encoders chapter
James Zern [Sat, 12 Feb 2011 00:02:45 +0000 (16:02 -0800)]
documentation: add encoders chapter

Signed-off-by: Janne Grunau <janne-ffmpeg@jannau.net>
(cherry picked from commit 0fa904c9d845d4a47372e619067e21991bb39b06)

13 years agoIn graph2dot, print more specific audio information for audio links.
Stefano Sabatini [Sun, 13 Feb 2011 21:50:47 +0000 (22:50 +0100)]
In graph2dot, print more specific audio information for audio links.

Signed-off-by: Janne Grunau <janne-ffmpeg@jannau.net>
(cherry picked from commit 009026efb1e3b3a5f05fd9934019a6300b25f364)

13 years agospdifenc: set flag AVFMT_NOTIMESTAMPS
Anssi Hannula [Mon, 14 Feb 2011 17:19:30 +0000 (19:19 +0200)]
spdifenc: set flag AVFMT_NOTIMESTAMPS

There are no timestamps in IEC 61937.

Signed-off-by: Janne Grunau <janne-ffmpeg@jannau.net>
(cherry picked from commit 6c60fcf89afc84c9dc863669d78e611d7c72fe41)

13 years agoReduce picture size for yadif.
Michael Niedermayer [Fri, 18 Feb 2011 18:39:56 +0000 (19:39 +0100)]
Reduce picture size for yadif.
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
13 years agoChange yadif to not use out of picture lines.
Michael Niedermayer [Fri, 18 Feb 2011 18:10:33 +0000 (19:10 +0100)]
Change yadif to not use out of picture lines.
Fixes issue2272.

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
13 years agoac3dsp: Change punpckhqdq to movhlps in ac3_max_msb_abs_int16().
Justin Ruggles [Wed, 16 Feb 2011 19:04:04 +0000 (14:04 -0500)]
ac3dsp: Change punpckhqdq to movhlps in ac3_max_msb_abs_int16().

Signed-off-by: Ronald S. Bultje <rsbultje@gmail.com>
(cherry picked from commit 1f004fc512babe8215e2aa31fa4770aa27812cab)

13 years agofix nsvdec.c compilation if DEBUG macro defined
Maksym Veremeyenko [Wed, 16 Feb 2011 07:52:44 +0000 (09:52 +0200)]
fix nsvdec.c compilation if DEBUG macro defined

Signed-off-by: Ronald S. Bultje <rsbultje@gmail.com>
(cherry picked from commit 41cdc1ff1e86f1bfb935e1bde53ccc9c645ff71e)

13 years agoFix av_find_best_stream when using a program
Balint Marton [Wed, 16 Feb 2011 00:17:13 +0000 (00:17 +0000)]
Fix av_find_best_stream when using a program

The current implementation has a bug, it is returning the stream index
in the found program, and not the stream index in the list of all
streams. The attached patch fixes this issue.

Signed-off-by: Mans Rullgard <mans@mansr.com>
(cherry picked from commit 22ec6b738f1608e4b959fb655cf37c3343ec7e9f)

13 years agoDocument audio_resample_close().
Stefano Sabatini [Mon, 14 Feb 2011 09:59:25 +0000 (10:59 +0100)]
Document audio_resample_close().

Signed-off-by: Janne Grunau <janne-ffmpeg@jannau.net>
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
13 years agoDocument that av_write_header sets stream time_base to a value of it chosing.
Reimar Döffinger [Sat, 29 Jan 2011 12:53:14 +0000 (13:53 +0100)]
Document that av_write_header sets stream time_base to a value of it chosing.

Signed-off-by: Janne Grunau <janne-ffmpeg@jannau.net>
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
13 years agospdifenc: update 482d98f69b2eb7a7b0b5054101a43db384e9432b to the latest patch
Janne Grunau [Sun, 13 Feb 2011 16:18:07 +0000 (17:18 +0100)]
spdifenc: update 482d98f69b2eb7a7b0b5054101a43db384e9432b to the latest patch

"spdifenc: IEC 61937 encapsulation of DTS-HD for HDMI"
(cherry picked from commit ec25f83bd98e10c023e6c7b07da1dcfc4d80cefc)

13 years agoac3enc: change default floor code to 7.
Justin Ruggles [Tue, 15 Feb 2011 18:46:56 +0000 (18:46 +0000)]
ac3enc: change default floor code to 7.

This is to match the value in every (E-)AC-3 file from commercial sources.
It has a negligible effect on audio quality.

Signed-off-by: Mans Rullgard <mans@mansr.com>
(cherry picked from commit 50d7140441b61809ad4ba4ea7b4ad8fe77bc6888)

13 years agoos_support: fix poll() implementation
Max Shakhmetov [Tue, 15 Feb 2011 16:49:27 +0000 (17:49 +0100)]
os_support: fix poll() implementation

Our poll implementation does not iterate over the pollfd array properly
while setting the revents.

Signed-off-by: Luca Barbato <lu_zero@gentoo.org>
(cherry picked from commit 9ac2085dbf1821b7995fe360038c1bf0f3940032)

13 years agoMerge libavcore into libavutil
Reinhard Tartler [Mon, 7 Feb 2011 13:37:08 +0000 (14:37 +0100)]
Merge libavcore into libavutil

Done to keep ABI compatible. Otherwise this is just silly

13 years agovbv_delay AVOption for ABI compatibility
Michael Niedermayer [Wed, 16 Feb 2011 01:09:46 +0000 (02:09 +0100)]
vbv_delay AVOption for ABI compatibility

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
13 years agoAPIchanges: update for 55bad0c: vbv_delay
Mans Rullgard [Tue, 15 Feb 2011 14:18:49 +0000 (14:18 +0000)]
APIchanges: update for 55bad0c: vbv_delay

Signed-off-by: Mans Rullgard <mans@mansr.com>
(cherry picked from commit 8ed4cc65a19b5a6cc7ae6ed5072be2d3836dbeb2)

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
13 years agoPass VBV delay to the calling application via ctx
Christophe Massiot [Thu, 10 Feb 2011 15:38:03 +0000 (16:38 +0100)]
Pass VBV delay to the calling application via ctx

VBV delay is useful for T-STD compliance in some TS muxers. It is
certainly possible to retrieve it by parsing the output of FFmpeg, but
getting it from the context makes it simpler and less error-prone.

Signed-off-by: Mans Rullgard <mans@mansr.com>
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
13 years agobinkaudio: remove unused copy of AVCodecContext*
Peter Ross [Tue, 15 Feb 2011 11:59:45 +0000 (11:59 +0000)]
binkaudio: remove unused copy of AVCodecContext*

Signed-off-by: Mans Rullgard <mans@mansr.com>
(cherry picked from commit 71f88b1f3843fdb676d6f72181da0c8c460341d8)

13 years agobinkaudio: fix channel count check
Peter Ross [Tue, 15 Feb 2011 11:58:51 +0000 (11:58 +0000)]
binkaudio: fix channel count check

Perform validity check on AVFormatContext.channels instead of
uninitialised field.

This fixes issue 2001.

Signed-off-by: Mans Rullgard <mans@mansr.com>
(cherry picked from commit 9806fbd5351fa84f99fa5b18fe06859acb514f34)

13 years agofix nsvdec.c compilation if DEBUG defined
Maksym Veremeyenko [Tue, 15 Feb 2011 11:51:45 +0000 (13:51 +0200)]
fix nsvdec.c compilation if DEBUG defined

Signed-off-by: Ronald S. Bultje <rsbultje@gmail.com>
(cherry picked from commit d06497f316ed819ea0ca0fad2535342ec42c79a5)

13 years agoaacdec: Implement LTP support.
Young Han Lee [Mon, 14 Feb 2011 09:09:43 +0000 (18:09 +0900)]
aacdec: Implement LTP support.

Ported from gsoc svn.
(cherry picked from commit ead15f1dc196ad164d105e31c8c9025f8a4ee4e7)

13 years agoAPIchanges: update for 12c14cd
Anssi Hannula [Mon, 14 Feb 2011 17:50:08 +0000 (17:50 +0000)]
APIchanges: update for 12c14cd

Signed-off-by: Mans Rullgard <mans@mansr.com>
(cherry picked from commit 77c330a046d668373cbd9542f3e1d4746916b02f)

13 years agompegtsenc: whitespace cosmetics
Mans Rullgard [Mon, 14 Feb 2011 23:14:25 +0000 (23:14 +0000)]
mpegtsenc: whitespace cosmetics

Signed-off-by: Mans Rullgard <mans@mansr.com>
(cherry picked from commit 2dd1ee4bfe85f41b771bf8fe1c2cfa2d833b5de3)

13 years agompegtsenc: set audio_type according to st->disposition
Anssi Hannula [Mon, 14 Feb 2011 18:43:41 +0000 (18:43 +0000)]
mpegtsenc: set audio_type according to st->disposition

Signed-off-by: Mans Rullgard <mans@mansr.com>
(cherry picked from commit 3f2d3a1904c1ccdfdc3bd03a6dd6567986f681d9)

13 years agompegts: set st->disposition according to ISO 639 language descriptor
Anssi Hannula [Mon, 14 Feb 2011 18:55:04 +0000 (18:55 +0000)]
mpegts: set st->disposition according to ISO 639 language descriptor

Signed-off-by: Mans Rullgard <mans@mansr.com>
(cherry picked from commit 60e7306643054e93dfc1962f89b24554bb76e18a)

13 years agoapichanges: update for 24a83bd: add AV_DISPOSITION_CLEAN_EFFECTS flag
Mans Rullgard [Mon, 14 Feb 2011 23:17:18 +0000 (23:17 +0000)]
apichanges: update for 24a83bd: add AV_DISPOSITION_CLEAN_EFFECTS flag

Signed-off-by: Mans Rullgard <mans@mansr.com>
(cherry picked from commit 935ee1b9bba3d2fa1bf0d48eef278956307478cb)

13 years agolavf: add AV_DISPOSITION_CLEAN_EFFECTS flag
Anssi Hannula [Mon, 14 Feb 2011 18:43:38 +0000 (18:43 +0000)]
lavf: add AV_DISPOSITION_CLEAN_EFFECTS flag

Signed-off-by: Mans Rullgard <mans@mansr.com>
(cherry picked from commit 24a83bd10a1ed56cadd2c475b839887752f23183)

13 years agoBetter threshold for the gcd based r_frame_rate calculation.
Michael Niedermayer [Tue, 15 Feb 2011 03:14:53 +0000 (04:14 +0100)]
Better threshold for the gcd based r_frame_rate calculation.
Fixes Gilmore Girls_Net 5_2011_01_08_16_10_53.wtv and RTL GP- WK Superbike - Qatar_RTL7_2009_03_14_15_49_23.wtv.

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
13 years agoFix spelling error.
Tilman Brock [Mon, 14 Feb 2011 13:29:43 +0000 (14:29 +0100)]
Fix spelling error.

Signed-off-by: Ronald S. Bultje <rsbultje@gmail.com>
(cherry picked from commit b08f59dca493e7582ddfd08097c594bfb0ae6ff9)

13 years agommst: fix reading uninitialized data for ping packets.
Ronald S. Bultje [Mon, 14 Feb 2011 14:55:14 +0000 (09:55 -0500)]
mmst: fix reading uninitialized data for ping packets.

Fixes errors after a few minutes (first ping) when playing back
mmst://wm.bbc.co.uk/wms/bbc7coyopa/bbc7_-_friday_0430.wma
(cherry picked from commit 275189a2bd71cf49d66374c44d3de2262d323460)

13 years agoUpdate APIchanges for 910b5b8
Mans Rullgard [Mon, 14 Feb 2011 13:02:59 +0000 (13:02 +0000)]
Update APIchanges for 910b5b8

Signed-off-by: Mans Rullgard <mans@mansr.com>
(cherry picked from commit 08a459f096106f13c03182eed4b7cb725dc4a0ae)

13 years agoRemove disabled legacy code in ffplay.
Stefano Sabatini [Sat, 12 Feb 2011 17:25:53 +0000 (18:25 +0100)]
Remove disabled legacy code in ffplay.

The code was setting aspect ratio from the DTG active format, and was
present and disabled since the creation of ffplay.

See thread:
Subject: [FFmpeg-devel] [PATCH] Cosmetics: adopt compact notation in
        disabled code.
Date: Sat, 12 Feb 2011 18:46:19 +0100

Signed-off-by: Mans Rullgard <mans@mansr.com>
(cherry picked from commit b7ec5cc4013242a9f30c429d2ce9c20ec01b03eb)

13 years agoaac: remove dead SBR input scaling
Alex Converse [Mon, 14 Feb 2011 00:42:38 +0000 (16:42 -0800)]
aac: remove dead SBR input scaling

It has been unused since 9d06d7bce3babb82ed650c13ed13a57f6f626a71

Signed-off-by: Mans Rullgard <mans@mansr.com>
(cherry picked from commit 916dee9f45dab85cfc20b6bf63ce8722746e6508)

13 years agoasfdec: fix build for big endian targets
Mans Rullgard [Sun, 13 Feb 2011 22:10:45 +0000 (22:10 +0000)]
asfdec: fix build for big endian targets

Signed-off-by: Mans Rullgard <mans@mansr.com>
(cherry picked from commit aabc2682fcb70417abda0e78d27a425269a82fc8)

13 years agoac3enc: Add x86-optimized function to speed up log2_tab().
Justin Ruggles [Sun, 13 Feb 2011 19:49:50 +0000 (14:49 -0500)]
ac3enc: Add x86-optimized function to speed up log2_tab().

AC3DSPContext.ac3_max_msb_abs_int16() finds the maximum MSB of the absolute
value of each element in an array of int16_t.

Signed-off-by: Ronald S. Bultje <rsbultje@gmail.com>
(cherry picked from commit fbb6b49dabc3398440c6dfa838aa090a7a6ebc0d)

13 years agowtv: ignore empty data_guid chunks
Peter Ross [Sun, 13 Feb 2011 03:42:49 +0000 (14:42 +1100)]
wtv: ignore empty data_guid chunks

Signed-off-by: Ronald S. Bultje <rsbultje@gmail.com>
(cherry picked from commit 1a973feb45826a1998b4286ecfe1fa7a602b8780)

13 years agoasfdec: split reading stream properties out of asf_read_header()
Anton Khirnov [Wed, 9 Feb 2011 20:55:57 +0000 (21:55 +0100)]
asfdec: split reading stream properties out of asf_read_header()

This contains a rename from gsize->size

Signed-off-by: Ronald S. Bultje <rsbultje@gmail.com>
(cherry picked from commit 8bf6db1b29f3766732e2bb2bdd2681318fd8e215)

13 years agommst: print packet type with error status code message
Francesco Cosoleto [Sat, 12 Feb 2011 10:17:20 +0000 (11:17 +0100)]
mmst: print packet type with error status code message

Signed-off-by: Francesco Cosoleto <cosoleto@gmail.com>
Signed-off-by: Ronald S. Bultje <rsbultje@gmail.com>
(cherry picked from commit 70630e35a436d890f3e3fbbe73b70042a375f326)

13 years agoconfigure: fix non-standard regex used with expr
Mans Rullgard [Sun, 13 Feb 2011 21:00:03 +0000 (21:00 +0000)]
configure: fix non-standard regex used with expr

The colon operator of expr always anchors the pattern at the start
of the string.  An explicit ^ in the pattern has unspecified
behaviour, so remove it.

Signed-off-by: Mans Rullgard <mans@mansr.com>
(cherry picked from commit 3ad464bfc7df6d0f68c7df9c907089b84d92ab75)

13 years agoconfigure: report full gcc version string
Mans Rullgard [Sun, 13 Feb 2011 13:17:46 +0000 (13:17 +0000)]
configure: report full gcc version string

This makes the cc_ident value, which is used in FATE reports, include
all interesting parts of the gcc version string.

Signed-off-by: Mans Rullgard <mans@mansr.com>
(cherry picked from commit 5d57846bba7010dc6ee65c3503dd06600e5441a5)

13 years agoconfigure: add cleanws() function
Mans Rullgard [Sun, 13 Feb 2011 13:06:53 +0000 (13:06 +0000)]
configure: add cleanws() function

This function removes leading and trailing spaces and collapses
multiple spaces into one.

Signed-off-by: Mans Rullgard <mans@mansr.com>
(cherry picked from commit bb7a22b5840e56c034227ad596b1165c03f2da27)

13 years agoFFT: factor a shuffle out of the inner loop and merge it into fft_permute.
Loren Merritt [Sat, 12 Feb 2011 11:48:16 +0000 (11:48 +0000)]
FFT: factor a shuffle out of the inner loop and merge it into fft_permute.

6% faster SSE FFT on Conroe, 2.5% on Penryn.

Signed-off-by: Janne Grunau <janne-ffmpeg@jannau.net>
(cherry picked from commit e6b1ed693ae4098e6b9eabf938fc31ec0b09b120)

13 years agolavf: print stream disposition in dump_stream_format
Anssi Hannula [Sat, 12 Feb 2011 18:11:11 +0000 (20:11 +0200)]
lavf: print stream disposition in dump_stream_format

Signed-off-by: Janne Grunau <janne-ffmpeg@jannau.net>
(cherry picked from commit 3c33c0e26325f189dbf7f212f8e9042feb83bfb0)

13 years agospdifenc: fix byte order on big-endian systems
Anssi Hannula [Sat, 12 Feb 2011 13:57:01 +0000 (15:57 +0200)]
spdifenc: fix byte order on big-endian systems

There is a check for HAVE_BIGENDIAN when outputting the IEC 61937
stream. On big-endian systems the payload data is not byteswapped,
causing in effect the outputted payload data to be in a different byte
order on big-endian than on little-endian systems.

However, the IEC 61937 preamble (and the final odd byte if present) is
always outputted in the same byte order. This means that on big-endian
systems the headers have a different byte order than the payload,
preventing useful use of the output.

Fix that by outputting the data in a format suitable for sending to an
audio device in S16LE format by default. Output as big-endian (S16BE)
is added as an AVOption. This makes the muxer output the same on all
archs by default.

Signed-off-by: Janne Grunau <janne-ffmpeg@jannau.net>
(cherry picked from commit 57f2c9aed9fecbb1e6798ec33613141afe74fd31)

13 years agospdifenc: IEC 61937 encapsulation of DTS-HD for HDMI
Anssi Hannula [Sat, 29 Jan 2011 01:36:30 +0000 (03:36 +0200)]
spdifenc: IEC 61937 encapsulation of DTS-HD for HDMI

Signed-off-by: Janne Grunau <janne-ffmpeg@jannau.net>
(cherry picked from commit 482d98f69b2eb7a7b0b5054101a43db384e9432b)

13 years agobink: permute Bink version 'b' quant matrices by inverse scan order
Peter Ross [Sun, 13 Feb 2011 09:36:29 +0000 (09:36 +0000)]
bink: permute Bink version 'b' quant matrices by inverse scan order

This fixes visual glitches in Bink version 'b' files, as the quantization
tables were not being permuted.

Signed-off-by: Mans Rullgard <mans@mansr.com>
(cherry picked from commit 231539217431c32d4f22a16ee2834e24f54611f4)

13 years agobink: simplify how quantization matrices are passed to read_dct_coeffs()
Peter Ross [Sun, 13 Feb 2011 03:33:49 +0000 (03:33 +0000)]
bink: simplify how quantization matrices are passed to read_dct_coeffs()

Signed-off-by: Mans Rullgard <mans@mansr.com>
(cherry picked from commit cb62510cab8b745e65eb966c72ab7e9b122d564b)

13 years agoFix MMX rgb24 to yuv conversion with gcc 4.6
Mans Rullgard [Sun, 13 Feb 2011 00:19:06 +0000 (00:19 +0000)]
Fix MMX rgb24 to yuv conversion with gcc 4.6

When built with gcc 4.6, the MMX rgb24 to yuv conversion gives
wrong output.  The compiler produces this warning:

libswscale/swscale_template.c:1885:5: warning: use of memory input without lvalue in asm operand 4 is deprecated

Changing the memory operand to a register makes it work.

Signed-off-by: Mans Rullgard <mans@mansr.com>
(cherry picked from commit f344903ca5ce28a833fdd656bc1ed5b16d97e7e9)

13 years agomovenc: Force first sample as SYNC
Takashi Mochizuki [Sun, 13 Feb 2011 00:18:45 +0000 (09:18 +0900)]
movenc: Force first sample as SYNC

Signed-off-by: Mans Rullgard <mans@mansr.com>
(cherry picked from commit 44b11207248c6ca6edb7d3469c0fbdca45dbfa70)

13 years agoMake avfilter_config_links() propagate audio information of the source link if it...
Stefano Sabatini [Sun, 13 Feb 2011 21:59:55 +0000 (22:59 +0100)]
Make avfilter_config_links() propagate audio information of the source link if it is not explicitely set by the filter.

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
13 years agoRestructure video filter implemenattion in ffmpeg.c.
Michael Niedermayer [Mon, 14 Feb 2011 22:02:10 +0000 (23:02 +0100)]
Restructure video filter implemenattion in ffmpeg.c.
This fixes several bugs like multiple outputs and -aspect mixed with -vf

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
13 years agoMake truncated mpeg4 GOP header check a bit more specific.
Michael Niedermayer [Mon, 14 Feb 2011 13:44:17 +0000 (14:44 +0100)]
Make truncated mpeg4 GOP header check a bit more specific.

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
13 years agoApply minor cosmetics fixes to the av_audio_resample_init() doxy.
Stefano Sabatini [Mon, 14 Feb 2011 09:59:14 +0000 (10:59 +0100)]
Apply minor cosmetics fixes to the av_audio_resample_init() doxy.

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
13 years agoDocument audio_resample_close().
Stefano Sabatini [Mon, 14 Feb 2011 09:59:25 +0000 (10:59 +0100)]
Document audio_resample_close().

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
13 years agoDetect null gop headers.
Michael Niedermayer [Sun, 13 Feb 2011 16:20:46 +0000 (17:20 +0100)]
Detect null gop headers.
Fix issue2592. / mpeg4-bad-gvop.raw

13 years agoMake tables generation insensitive to floating-point implementation
Vitor Sessak [Sat, 12 Feb 2011 09:15:58 +0000 (10:15 +0100)]
Make tables generation insensitive to floating-point implementation

Using doubles make the double -> int cast well defined for all the values
used, with the exception of when s[i]==1.0, which is special-cased.

Signed-off-by: Mans Rullgard <mans@mansr.com>
(cherry picked from commit 47d62c965b7bcf4715127fbf9bffab7b4c5c88b7)

13 years agoFix script command in a FAQ entry
Stefano Sabatini [Sat, 12 Feb 2011 09:12:41 +0000 (09:12 +0000)]
Fix script command in a FAQ entry

In the FAQ section "How do I encode single pictures into movies?", use
-s for generating symbolic links with the ln command.

The script was generating hard links, which is not likely what it was
supposed to do.

Fix issue 2488.

Signed-off-by: Mans Rullgard <mans@mansr.com>
(cherry picked from commit e063f5886b27a7374f5060b7c2c21385685b2cb0)

13 years agoAllow "make clean" to clean files in tools
Stefano Sabatini [Sat, 12 Feb 2011 08:50:46 +0000 (08:50 +0000)]
Allow "make clean" to clean files in tools

Signed-off-by: Mans Rullgard <mans@mansr.com>
(cherry picked from commit 40321376d8aea3347bec9c4d09925e8c5b8edb55)

13 years agoAdd lavfi-showfiltfmts and graph2dot to $(TOOLS)
Stefano Sabatini [Sat, 12 Feb 2011 08:50:35 +0000 (08:50 +0000)]
Add lavfi-showfiltfmts and graph2dot to $(TOOLS)

Allow make clean to remove the corresponding binaries.

Fix issue 2162.

Signed-off-by: Mans Rullgard <mans@mansr.com>
(cherry picked from commit cd6a5a57b820c5fe008ea0f91a727861b7b2a331)

13 years agoFix qtrle regression test, actually test qtrle.
Baptiste Coudurier [Fri, 11 Feb 2011 23:20:10 +0000 (23:20 +0000)]
Fix qtrle regression test, actually test qtrle.

Signed-off-by: Mans Rullgard <mans@mansr.com>
(cherry picked from commit 646739a0a8368bd234ff077c093bbf01e9e7f44a)

13 years agortsp/rdt: Assign the RTSPStream index to AVStream->id
Martin Storsjö [Fri, 11 Feb 2011 21:36:47 +0000 (23:36 +0200)]
rtsp/rdt: Assign the RTSPStream index to AVStream->id

This is used for mapping AVStreams back to their corresponding
RTSPStream. Since d9c0510, the RTSPStream pointer isn't stored in
AVStream->priv_data any longer, breaking this mapping from AVStreams
to RTSPStreams.

Also, we don't need to clear the priv_data in rdt cleanup any longer,
since it isn't set to duplicate pointers.

Signed-off-by: Ronald S. Bultje <rsbultje@gmail.com>
(cherry picked from commit b2dd842d21a0b441bb9f7092357f479beb6b6f69)

13 years agoAdd check for Athlon64 and similar AMD processors with slow SSE2.
Justin Ruggles [Fri, 11 Feb 2011 20:17:32 +0000 (15:17 -0500)]
Add check for Athlon64 and similar AMD processors with slow SSE2.

Signed-off-by: Ronald S. Bultje <rsbultje@gmail.com>
(cherry picked from commit 74b1f96859eb967222fcb3eb4c72d949b5165a89)

13 years agoconfigure: remove early check_deps $ARCH_EXT_LIST
Mans Rullgard [Fri, 11 Feb 2011 18:28:12 +0000 (18:28 +0000)]
configure: remove early check_deps $ARCH_EXT_LIST

The early disabling of irrelevant arch extensions is no longer
required, and removing it makes dependencies involving these
work as expected.

Signed-off-by: Mans Rullgard <mans@mansr.com>
(cherry picked from commit 4b884207eb7319577f8ceb94a56f42c5ac0ab294)

13 years agoVP8: ARM optimised decode_block_coeffs_internal
Mans Rullgard [Tue, 1 Feb 2011 22:38:15 +0000 (22:38 +0000)]
VP8: ARM optimised decode_block_coeffs_internal

Approximately 5% faster on Cortex-A8.

Signed-off-by: Mans Rullgard <mans@mansr.com>
(cherry picked from commit a7878c9f73c12cfa685bd8af8f3afcca85f56a8b)

13 years agoARM optimised vp56_rac_get_prob()
Mans Rullgard [Wed, 22 Dec 2010 12:57:53 +0000 (12:57 +0000)]
ARM optimised vp56_rac_get_prob()

Approximately 3% faster on Cortex-A8.

Signed-off-by: Mans Rullgard <mans@mansr.com>
(cherry picked from commit 7da48fd0111adf504cfcfc5ebda7fd0681968041)

13 years agoUpdate overlay documentation after movie syntax update.
Stefano Sabatini [Fri, 11 Feb 2011 13:39:31 +0000 (13:39 +0000)]
Update overlay documentation after movie syntax update.

Overlay documentation is still using the old unsupported syntax.

Signed-off-by: Mans Rullgard <mans@mansr.com>
(cherry picked from commit aa8ac53b51cd8b9446b50404660685041060fa4f)

13 years agobink: reindent after last commit
Peter Ross [Wed, 9 Feb 2011 12:05:19 +0000 (23:05 +1100)]
bink: reindent after last commit

Signed-off-by: Janne Grunau <janne-ffmpeg@jannau.net>
(cherry picked from commit adb1ad0d8005dfcbae863bccdda8fdd26bb63f30)

13 years agoBink version 'b' video decoder
Peter Ross [Fri, 11 Feb 2011 12:31:32 +0000 (23:31 +1100)]
Bink version 'b' video decoder

Based on original patch by Kostya Shishkov

Signed-off-by: Janne Grunau <janne-ffmpeg@jannau.net>
(cherry picked from commit e00f41d5742b3a0dc1877b030f4f6f58c19b7bbd)

13 years agolavf: deprecate AVFormatContext.index_built
Anton Khirnov [Thu, 10 Feb 2011 08:36:44 +0000 (09:36 +0100)]
lavf: deprecate AVFormatContext.index_built

it's not touched anywhere in ffmpeg, the code setting it was removed
over two years ago (e9b78eeba22b050810a507e69df1b652e56ab62b).

Signed-off-by: Ronald S. Bultje <rsbultje@gmail.com>
(cherry picked from commit b0294c80d3a3981ec7ef9e4654962780e8566075)

13 years agoClarify that pts_correction* fields are internal to libavcodec
Michael Niedermayer [Fri, 11 Feb 2011 13:56:03 +0000 (14:56 +0100)]
Clarify that pts_correction* fields are internal to libavcodec
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
13 years agoSet maximum lowres value for the MJPEG decoder to 3.
Carl Eugen Hoyos [Sat, 12 Feb 2011 14:29:10 +0000 (15:29 +0100)]
Set maximum lowres value for the MJPEG decoder to 3.

While 4 works for some samples, 3 is the correct value since 8x8
DCT is used by (m)jpeg.

13 years agoffplay: stats: do not dereference NULL video
Nicolas George [Tue, 8 Feb 2011 10:57:08 +0000 (11:57 +0100)]
ffplay: stats: do not dereference NULL video

Also: cosmetic: split this overly long line

13 years agoVP8: optimized mv prediction and decoding
Jason Garrett-Glaser [Thu, 10 Feb 2011 06:43:25 +0000 (22:43 -0800)]
VP8: optimized mv prediction and decoding

Merge find_near_mvs and mv bitstream decoding: don't do prediction steps
until absolutely necessary.
(cherry picked from commit f3d09d44b70492022964e2ead5f439bb7c96eaa2)

13 years agoac3enc: Remove unneeded clipping of shift amount.
Justin Ruggles [Thu, 10 Feb 2011 22:12:16 +0000 (22:12 +0000)]
ac3enc: Remove unneeded clipping of shift amount.

s->windowed_samples will always have a range of [-32767,32767] due to the
window function, so the return value from log2_tab() will always be in the
range [0,14].

Signed-off-by: Mans Rullgard <mans@mansr.com>
(cherry picked from commit 626264b11b5406c0c78c4056cabb63cb650e9bf2)

13 years agoac3enc: remove right shifting from lshift_tab() and make lshift unsigned.
Justin Ruggles [Thu, 10 Feb 2011 21:15:01 +0000 (21:15 +0000)]
ac3enc: remove right shifting from lshift_tab() and make lshift unsigned.

Signed-off-by: Mans Rullgard <mans@mansr.com>
(cherry picked from commit d4582889eefeee4dd23face9e74b2829dbaaeae5)

13 years agoasfdec: deobfuscate reading video properties size
Anton Khirnov [Wed, 9 Feb 2011 20:55:56 +0000 (21:55 +0100)]
asfdec: deobfuscate reading video properties size

This code will be later split out into a function which takes a 'size'
argument, so I'm keeping the name 'sizeX' here.

Signed-off-by: Ronald S. Bultje <rsbultje@gmail.com>
(cherry picked from commit 0b1d291a716dd79ca6862a95baf9ac574feba885)

13 years agoasfdec: split asf_read_header()
Anton Khirnov [Wed, 9 Feb 2011 20:55:55 +0000 (21:55 +0100)]
asfdec: split asf_read_header()

Only trivial splits are done here -- i.e. copy/paste + reindent +
missing variable declarations.

Signed-off-by: Ronald S. Bultje <rsbultje@gmail.com>
(cherry picked from commit c1fea2307011ac7a7bb98af98010f81abc789732)

13 years agowtv: mark streams intended for hearing or visual impaired persons
Peter Ross [Thu, 10 Feb 2011 06:26:10 +0000 (17:26 +1100)]
wtv: mark streams intended for hearing or visual impaired persons

Signed-off-by: Janne Grunau <janne-ffmpeg@jannau.net>
(cherry picked from commit 68137ba386933243a84fc65f0deb3ad0ce5ff0ea)

13 years agomake av_find_best_stream() ignore streams marked with AV_DISPOSITION_*_IMPAIRED
Peter Ross [Thu, 10 Feb 2011 06:25:40 +0000 (17:25 +1100)]
make av_find_best_stream() ignore streams marked with AV_DISPOSITION_*_IMPAIRED

Signed-off-by: Janne Grunau <janne-ffmpeg@jannau.net>
(cherry picked from commit 52091491575f015c09a32a745de4f7f7592fe6d4)

13 years agoadd AV_DISPOSITION_HEARING_IMPAIRED and AV_DISPOSITION_VISUAL_IMPAIRED
Peter Ross [Thu, 10 Feb 2011 06:25:13 +0000 (17:25 +1100)]
add AV_DISPOSITION_HEARING_IMPAIRED and AV_DISPOSITION_VISUAL_IMPAIRED

Signed-off-by: Janne Grunau <janne-ffmpeg@jannau.net>
(cherry picked from commit 12c14cd4a8bf844f6f3d16ae18999bdb47999324)

13 years agoRemove final semicolon from some macros
Mans Rullgard [Thu, 10 Feb 2011 12:04:25 +0000 (12:04 +0000)]
Remove final semicolon from some macros

This avoids double semicolons after macro expansion.

Signed-off-by: Mans Rullgard <mans@mansr.com>
(cherry picked from commit 44adbebe1744c68d66d7f811c38270fdcc89665a)

13 years agodvbsubenc: Fix placement of the object version
Ronen Mizrahi [Thu, 10 Feb 2011 16:50:00 +0000 (11:50 -0500)]
dvbsubenc: Fix placement of the object version

Signed-off-by: Mans Rullgard <mans@mansr.com>
(cherry picked from commit df211c3ab73b36208ac4511a9cd7feb817f551fa)

13 years agodocument passing the fate samples location via make variable
Janne Grunau [Thu, 10 Feb 2011 08:57:18 +0000 (09:57 +0100)]
document passing the fate samples location via make variable
(cherry picked from commit 5c19f64c600ece050a1deb27f53963e4416beb31)

13 years agodvbsubdec: check against buffer overreads
Janne Grunau [Wed, 9 Feb 2011 22:23:22 +0000 (23:23 +0100)]
dvbsubdec: check against buffer overreads

Signed-off-by: Janne Grunau <janne-ffmpeg@jannau.net>
(cherry picked from commit 493aa30adf88baf5bc734072592a22db586f0cfb)

13 years agoDo not fail DVB sub decoding because of a few padding bytes
Reimar Döffinger [Wed, 9 Feb 2011 18:32:07 +0000 (19:32 +0100)]
Do not fail DVB sub decoding because of a few padding bytes

Instead of returning an error when bytes are left over, just return
the number of actually used bytes as other decoders do.
Instead add a special case so an error will be returned when none
of the data looks valid to avoid making debugging a pain.

Signed-off-by: Janne Grunau <janne-ffmpeg@jannau.net>
(cherry picked from commit 4a72765a1c94b05bd3053b1f34f8457a3b71d714)

13 years agoAdd x86-optimized versions of exponent_min().
Justin Ruggles [Thu, 10 Feb 2011 17:20:36 +0000 (12:20 -0500)]
Add x86-optimized versions of exponent_min().

Signed-off-by: Ronald S. Bultje <rsbultje@gmail.com>
(cherry picked from commit dda3f0ef48aa5c3b03566b60b6bf63211e1fe579)

13 years agoRemove incorrect return statement from avcodec_thread_free()
Mans Rullgard [Thu, 10 Feb 2011 12:21:19 +0000 (12:21 +0000)]
Remove incorrect return statement from avcodec_thread_free()

The function return type is void, so a return statement with an
expression is forbidden (and pointless).

Signed-off-by: Mans Rullgard <mans@mansr.com>
(cherry picked from commit b4668274b944abae61759e796c5cc36ade510f24)

13 years agoivi_dsp: remove semicolons after function definitions
Mans Rullgard [Thu, 10 Feb 2011 12:04:52 +0000 (12:04 +0000)]
ivi_dsp: remove semicolons after function definitions

Signed-off-by: Mans Rullgard <mans@mansr.com>
(cherry picked from commit dbb09ec23f16cb5e4ec3d4e0911dae0beb95869b)

13 years agomov: remove stray semicolon
Mans Rullgard [Thu, 10 Feb 2011 11:42:21 +0000 (11:42 +0000)]
mov: remove stray semicolon

Signed-off-by: Mans Rullgard <mans@mansr.com>
(cherry picked from commit 628b16f45f79aa5eb7514f11026d85e8aa34387f)