ffmpeg.git
7 years agovf_fspp: add ff_ prefix to non static variables.
Michael Niedermayer [Wed, 14 Mar 2012 21:44:33 +0000 (22:44 +0100)]
vf_fspp: add ff_ prefix to non static variables.

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
7 years agodocs: Add examples for -cpuflags
Michael Niedermayer [Wed, 7 Mar 2012 05:15:45 +0000 (06:15 +0100)]
docs: Add examples for -cpuflags

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
7 years agocmdutils: Fix cpuflags so the flags dont pull in and out other flags.
Michael Niedermayer [Wed, 7 Mar 2012 05:16:02 +0000 (06:16 +0100)]
cmdutils: Fix cpuflags so the flags dont pull in and out other flags.

Note, this doesnt break compatibility with libav, as libav
has implemented a incompatible and more limited system under the same
-cpuflags command line option we used since some time.

The differences to libav for example are we can do things like
ffmpeg -cpuflags -sse+mmx -cpuflags +3dnow
Its also possible in our system to force flags that have not been
detected as available
And our -cpuflags works with all tools not just 1

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
7 years agovf_fspp: fix compilation with llvm
Baptiste Coudurier [Sat, 10 Mar 2012 01:54:01 +0000 (02:54 +0100)]
vf_fspp: fix compilation with llvm

7 years agomatroskaenc: change cluster_pos to use -1 as the "I'm not currently working on a...
Aaron Colwell [Wed, 14 Mar 2012 20:40:29 +0000 (21:40 +0100)]
matroskaenc: change cluster_pos to use -1 as the "I'm not currently working on a cluster" signal instead of 0.

This avoids problems
where avio_tell() returns 0. I've updated all the checks against
cluster_pos

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
7 years agoffmpeg: Fix planar audio input.
Michael Niedermayer [Wed, 14 Mar 2012 05:12:38 +0000 (06:12 +0100)]
ffmpeg: Fix planar audio input.

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
7 years agoMerge remote-tracking branch 'qatar/master'
Michael Niedermayer [Wed, 14 Mar 2012 01:04:18 +0000 (02:04 +0100)]
Merge remote-tracking branch 'qatar/master'

* qatar/master:
  doc/general: update supported devices table.
  doc/general: add missing @tab to codecs table.
  h264: Fix invalid interlaced/progressive MB combinations for direct mode prediction.
  avconv: reindent
  avconv: link '-passlogfile' option to libx264 'stats' AVOption.
  libx264: add 'stats' private option for setting 2pass stats filename.
  libx264: fix help text for slice-max-size option.
  http: Clear the auth state on redirects
  http: Retry auth if it failed due to being stale
  rtsp: Resend new keepalive commands if they used stale auth
  rtsp: Retry authentication if failed due to being stale
  httpauth: Parse the stale field in digest auth
  dxva2_vc1: pass the overlap flag to the decoder
  dxva2_vc1: fix decoding of BI frames
  FATE: add shorthand to wavpack test
  dfa: convert to bytestream2 API
  anm decoder: move buffer allocation from decode_init() to decode_frame()
  h264: improve parsing of broken AVC SPS

Conflicts:
ffmpeg.c
libavcodec/anm.c
libavcodec/dfa.c
libavcodec/h264.c
libavcodec/h264_direct.c
libavcodec/h264_ps.c

Merged-by: Michael Niedermayer <michaelni@gmx.at>
7 years agommvideo: restore initial y value.
Michael Niedermayer [Tue, 13 Mar 2012 21:20:39 +0000 (22:20 +0100)]
mmvideo: restore initial y value.

This bug might have been exploitable (out of HEAP buffer writes)

Bug introduced by libav
commit a55d5bdc6e28a2cfefc440d792de5cc4f02377e2
Date:   Tue Mar 6 15:15:42 2012 -0800

    algmm: convert to bytestream2 API.

7 years agommvideo: remove unused variable
Michael Niedermayer [Tue, 13 Mar 2012 21:15:42 +0000 (22:15 +0100)]
mmvideo: remove unused variable

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
7 years agojpeglsdec: suppress unused var warning
Michael Niedermayer [Tue, 13 Mar 2012 21:13:13 +0000 (22:13 +0100)]
jpeglsdec: suppress unused var warning

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
7 years agoh264: Fix some mixed declarations and code.
Michael Niedermayer [Tue, 13 Mar 2012 21:10:02 +0000 (22:10 +0100)]
h264: Fix some mixed declarations and code.

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
7 years agoeatgq: remove unused ret variable.
Michael Niedermayer [Tue, 13 Mar 2012 21:05:06 +0000 (22:05 +0100)]
eatgq: remove unused ret variable.

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
7 years agoeamad: Remove redundant initialization of mv_map.
Michael Niedermayer [Tue, 13 Mar 2012 21:04:25 +0000 (22:04 +0100)]
eamad: Remove redundant initialization of mv_map.

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
7 years agodoc/general: update supported devices table.
Anton Khirnov [Tue, 13 Mar 2012 11:43:47 +0000 (12:43 +0100)]
doc/general: update supported devices table.

Add libcdio and fbdev, remove v4l1.

7 years agodoc/general: add missing @tab to codecs table.
Anton Khirnov [Tue, 13 Mar 2012 11:39:05 +0000 (12:39 +0100)]
doc/general: add missing @tab to codecs table.

7 years agog729dec: fix scalarproduct_int16 after API change
Michael Niedermayer [Tue, 13 Mar 2012 20:20:07 +0000 (21:20 +0100)]
g729dec: fix scalarproduct_int16 after API change

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
7 years agoh264: Fix invalid interlaced/progressive MB combinations for direct mode prediction.
Michael Niedermayer [Tue, 13 Mar 2012 01:26:50 +0000 (18:26 -0700)]
h264: Fix invalid interlaced/progressive MB combinations for direct mode prediction.

Found-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind
CC: libav-stable@libav.org
Signed-off-by: Ronald S. Bultje <rsbultje@gmail.com>
7 years agoavconv: reindent
Anton Khirnov [Mon, 12 Mar 2012 16:43:48 +0000 (17:43 +0100)]
avconv: reindent

CC: libav-stable@libav.org
7 years agoavconv: link '-passlogfile' option to libx264 'stats' AVOption.
Anton Khirnov [Mon, 12 Mar 2012 16:42:57 +0000 (17:42 +0100)]
avconv: link '-passlogfile' option to libx264 'stats' AVOption.

Fixes bug 204.

CC: libav-stable@libav.org
7 years agolibx264: add 'stats' private option for setting 2pass stats filename.
Anton Khirnov [Mon, 12 Mar 2012 16:20:20 +0000 (17:20 +0100)]
libx264: add 'stats' private option for setting 2pass stats filename.

x264 always opens the file itself with fopen, so we cannot use the
standard lavc stats mechanism.

CC: libav-stable@libav.org
7 years agolibx264: fix help text for slice-max-size option.
Anton Khirnov [Mon, 12 Mar 2012 16:09:22 +0000 (17:09 +0100)]
libx264: fix help text for slice-max-size option.

CC: libav-stable@libav.org
7 years agoiff: do not decode unsupported pbms with ham decoder
Peter Ross [Sun, 11 Mar 2012 23:32:11 +0000 (10:32 +1100)]
iff: do not decode unsupported pbms with ham decoder

This prevents the segfault reported by ticket #1054

7 years agohttp: Clear the auth state on redirects
Martin Storsjö [Mon, 12 Mar 2012 12:03:46 +0000 (14:03 +0200)]
http: Clear the auth state on redirects

Currently we only try continuing with the same auth mechanism
as the initial request.

Signed-off-by: Martin Storsjö <martin@martin.st>
7 years agohttp: Retry auth if it failed due to being stale
Martin Storsjö [Mon, 12 Mar 2012 12:00:16 +0000 (14:00 +0200)]
http: Retry auth if it failed due to being stale

Allow up to 4 retries for normal requests, where both the
proxy and the target server might need to authenticate.

Signed-off-by: Martin Storsjö <martin@martin.st>
7 years agortsp: Resend new keepalive commands if they used stale auth
Martin Storsjö [Mon, 12 Mar 2012 14:11:22 +0000 (16:11 +0200)]
rtsp: Resend new keepalive commands if they used stale auth

These commands are sent asynchronously, not waiting for the reply.
This reply is parsed later by ff_rtsp_tcp_read_packet or
udp_read_packet. If the reply indicates that we used stale
authentication and need to use a new nonce, resend a new keepalive
command immediately.

This is the only request sent asynchronously, so currently there's
no other command that needs to be resent in the same way.

Signed-off-by: Martin Storsjö <martin@martin.st>
7 years agortsp: Retry authentication if failed due to being stale
Martin Storsjö [Mon, 12 Mar 2012 11:59:53 +0000 (13:59 +0200)]
rtsp: Retry authentication if failed due to being stale

Signed-off-by: Martin Storsjö <martin@martin.st>
7 years agohttpauth: Parse the stale field in digest auth
Martin Storsjö [Mon, 12 Mar 2012 11:59:36 +0000 (13:59 +0200)]
httpauth: Parse the stale field in digest auth

Signed-off-by: Martin Storsjö <martin@martin.st>
7 years agodxva2_vc1: pass the overlap flag to the decoder
Hendrik Leppkes [Fri, 20 Jan 2012 14:19:44 +0000 (15:19 +0100)]
dxva2_vc1: pass the overlap flag to the decoder

Signed-off-by: Anton Khirnov <anton@khirnov.net>
7 years agodxva2_vc1: fix decoding of BI frames
Hendrik Leppkes [Fri, 20 Jan 2012 14:19:24 +0000 (15:19 +0100)]
dxva2_vc1: fix decoding of BI frames

Signed-off-by: Anton Khirnov <anton@khirnov.net>
7 years agoFATE: add shorthand to wavpack test
Paul B Mahol [Tue, 13 Mar 2012 03:09:25 +0000 (03:09 +0000)]
FATE: add shorthand to wavpack test

Signed-off-by: Paul B Mahol <onemda@gmail.com>
Signed-off-by: Ronald S. Bultje <rsbultje@gmail.com>
7 years agodfa: convert to bytestream2 API
Paul B Mahol [Tue, 13 Mar 2012 01:58:12 +0000 (01:58 +0000)]
dfa: convert to bytestream2 API

Protects from overreads.

Signed-off-by: Paul B Mahol <onemda@gmail.com>
Signed-off-by: Ronald S. Bultje <rsbultje@gmail.com>
7 years agoMerge remote-tracking branch 'qatar/master'
Michael Niedermayer [Tue, 13 Mar 2012 00:56:33 +0000 (01:56 +0100)]
Merge remote-tracking branch 'qatar/master'

* qatar/master:
  pcm-mpeg: convert to bytestream2 API
  Revert "h264: clear trailing bits in partially parsed NAL units"
  remove iwmmxt optimizations
  mimic: do not continue if swap_buf_size is 0
  mimic: convert to bytestream2 API
  frwu: use MKTAG to check marker instead of AV_RL32
  txd: port to bytestream2 API
  c93: convert to bytestream2 API
  iff: make .long_name more descriptive
  FATE: add test for cdxl demuxer
  rtsp: Fix a typo

Conflicts:
libavcodec/arm/dsputil_iwmmxt.c
libavcodec/arm/dsputil_iwmmxt_rnd_template.c
libavcodec/arm/mpegvideo_iwmmxt.c
libavcodec/c93.c
libavcodec/txd.c
libavutil/arm/cpu.c
tests/fate/demux.mak

Merged-by: Michael Niedermayer <michaelni@gmx.at>
7 years agocosmetics: fix some typos
Lou Logan [Mon, 12 Mar 2012 22:30:13 +0000 (14:30 -0800)]
cosmetics: fix some typos

Patch attached.
From 2d4094fc0dcb4ccd0735eb7e1719e228ebb56bb9 Mon Sep 17 00:00:00 2001
From: Lou Logan <lou@lrcd.com>
Date: Mon, 12 Mar 2012 14:13:44 -0800
Subject: [PATCH] cosmetics: fix some typos

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
7 years agovc1dec: Fix vc1 decoding with --disable-optimizations.
Michael Niedermayer [Mon, 12 Mar 2012 23:05:03 +0000 (00:05 +0100)]
vc1dec: Fix vc1 decoding with --disable-optimizations.

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
7 years agoanm decoder: move buffer allocation from decode_init() to decode_frame()
Peter Ross [Mon, 12 Mar 2012 23:42:53 +0000 (23:42 +0000)]
anm decoder: move buffer allocation from decode_init() to decode_frame()

Signed-off-by: Paul B Mahol <onemda@gmail.com>
Signed-off-by: Ronald S. Bultje <rsbultje@gmail.com>
7 years agoh264: improve parsing of broken AVC SPS
Michael Niedermayer [Sat, 1 Oct 2011 15:41:28 +0000 (17:41 +0200)]
h264: improve parsing of broken AVC SPS

Parsing the entire NAL as SPS fixes decoding of some AVC bitstreams
with broken escaping. Since the size of the NAL unit is known and
checked against the buffer end we can parse it entirely without buffer
overreads.

Fixes playback of
http://streams.videolan.org/streams/mp4/Mr_MrsSmith-h264_aac.mp4

Signed-off-by: Janne Grunau <janne-libav@jannau.net>
7 years agopcm-mpeg: convert to bytestream2 API
Paul B Mahol [Mon, 12 Mar 2012 20:09:04 +0000 (20:09 +0000)]
pcm-mpeg: convert to bytestream2 API

Signed-off-by: Paul B Mahol <onemda@gmail.com>
Signed-off-by: Janne Grunau <janne-libav@jannau.net>
7 years agoRevert "h264: clear trailing bits in partially parsed NAL units"
Janne Grunau [Mon, 12 Mar 2012 21:01:02 +0000 (22:01 +0100)]
Revert "h264: clear trailing bits in partially parsed NAL units"

This reverts commit 729ebb2f185244b0ff06d48edbbbbb02ceb4ed4e.

There was an off-by-one error in the bit mask calculation clearing
actually the last valid bit and causing
http://bugzilla.libav.org/show_bug.cgi?id=227

The broken sample (Mr_MrsSmith-h264_aac.mp4) the commit was fixing
does not work after correcting the off-by-one error.

CC: libav-stable@libav.org
7 years agoremove iwmmxt optimizations
Janne Grunau [Fri, 9 Mar 2012 14:21:15 +0000 (15:21 +0100)]
remove iwmmxt optimizations

The were broken since August of 2010 without anyone noticing until
three weeks ago. Nobody cares about it anymore and hopefully Marvell
will support NEON like in the PXA978 from now on.

7 years agoMove struc FFTContext below SECTION_RODATA
Nico Weber [Mon, 12 Mar 2012 20:40:53 +0000 (13:40 -0700)]
Move struc FFTContext below SECTION_RODATA

Yasm creates an implicit unaligned text section if "struc" is used
outside of any section:
http://tortall.lighthouseapp.com/projects/78676-yasm/tickets/247

Since yasm only honors the "align" annotation on the first declaration
of a section, this implicit text section causes all text section
alignments to be ignored. Also fixes a yasm warning about it agnoring
alignment.

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
7 years agoudp: Add option overrun_nonfatal
Andrey Utkin [Mon, 12 Mar 2012 15:09:53 +0000 (17:09 +0200)]
udp: Add option overrun_nonfatal

Optionize fail/survive on circular buffer overrun

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
7 years agoudp: remove dead code line (unused result)
Andrey Utkin [Mon, 12 Mar 2012 15:09:52 +0000 (17:09 +0200)]
udp: remove dead code line (unused result)

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
7 years agoRevert "flvenc: Remove apparently unneeded AAC check."
Michael Niedermayer [Mon, 12 Mar 2012 19:36:51 +0000 (20:36 +0100)]
Revert "flvenc: Remove apparently unneeded AAC check."

According to video_file_format_spec_v10_1.pdf flv stores AAC RAW
thanks to Baptiste Coudurier for pointing that out

thanks to Aℓex Converse for explaining:
This can't be at the start of a non-ADTS payload. 111 is the
EndOfFrame syntax element.

Together these proof that the check was correctly rejecting ADTS which
is not supposed to be in flv. Many players are able to play such ADTS
in flv though but its better if we conform to the spec as this should
ensure that not many but all players can play files generated by ffmpeg.

This reverts commit 3c9a86df0e20dd1c90a9b390a6555b22f87aa8cd.

7 years agomimic: do not continue if swap_buf_size is 0
Paul B Mahol [Mon, 12 Mar 2012 14:56:41 +0000 (14:56 +0000)]
mimic: do not continue if swap_buf_size is 0

Signed-off-by: Paul B Mahol <onemda@gmail.com>
Signed-off-by: Ronald S. Bultje <rsbultje@gmail.com>
7 years agomimic: convert to bytestream2 API
Paul B Mahol [Mon, 12 Mar 2012 14:56:40 +0000 (14:56 +0000)]
mimic: convert to bytestream2 API

Signed-off-by: Paul B Mahol <onemda@gmail.com>
Signed-off-by: Ronald S. Bultje <rsbultje@gmail.com>
7 years agofrwu: use MKTAG to check marker instead of AV_RL32
Paul B Mahol [Mon, 12 Mar 2012 18:11:32 +0000 (18:11 +0000)]
frwu: use MKTAG to check marker instead of AV_RL32

Using intreadwrite.h for this is overkill.

Signed-off-by: Paul B Mahol <onemda@gmail.com>
Signed-off-by: Ronald S. Bultje <rsbultje@gmail.com>
7 years agotxd: port to bytestream2 API
Paul B Mahol [Mon, 12 Mar 2012 17:37:02 +0000 (17:37 +0000)]
txd: port to bytestream2 API

Protects against overreads.

Signed-off-by: Paul B Mahol <onemda@gmail.com>
Signed-off-by: Ronald S. Bultje <rsbultje@gmail.com>
7 years agolavfi/drawtext: add 24 hours wrapping option for timecode.
Clément Bœsch [Mon, 12 Mar 2012 08:16:04 +0000 (09:16 +0100)]
lavfi/drawtext: add 24 hours wrapping option for timecode.

Fixes ticket #1044.

7 years agoc93: convert to bytestream2 API
Paul B Mahol [Mon, 12 Mar 2012 14:27:04 +0000 (14:27 +0000)]
c93: convert to bytestream2 API

Protects against overreads.

Signed-off-by: Paul B Mahol <onemda@gmail.com>
Signed-off-by: Martin Storsjö <martin@martin.st>
7 years agoiff: make .long_name more descriptive
Paul B Mahol [Fri, 9 Mar 2012 01:49:53 +0000 (01:49 +0000)]
iff: make .long_name more descriptive

Signed-off-by: Paul B Mahol <onemda@gmail.com>
Signed-off-by: Martin Storsjö <martin@martin.st>
7 years agoFATE: add test for cdxl demuxer
Paul B Mahol [Fri, 9 Mar 2012 20:49:56 +0000 (20:49 +0000)]
FATE: add test for cdxl demuxer

Signed-off-by: Paul B Mahol <onemda@gmail.com>
Signed-off-by: Martin Storsjö <martin@martin.st>
7 years agortsp: Fix a typo
Martin Storsjö [Mon, 12 Mar 2012 14:07:33 +0000 (16:07 +0200)]
rtsp: Fix a typo

Signed-off-by: Martin Storsjö <martin@martin.st>
7 years agoRevert "udp: add multicast input interface selection"
Michael Niedermayer [Mon, 12 Mar 2012 05:48:32 +0000 (06:48 +0100)]
Revert "udp: add multicast input interface selection"

This reverts commit 9abd47fe90a592822b326345726626a018641d04.

Broke compilation on openbsd and others

7 years agodxva2_vc1: pass the overlap flag to the decoder
Hendrik Leppkes [Fri, 20 Jan 2012 14:19:44 +0000 (15:19 +0100)]
dxva2_vc1: pass the overlap flag to the decoder

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
7 years agodxva2_vc1: fix decoding of BI frames
Hendrik Leppkes [Fri, 20 Jan 2012 14:19:24 +0000 (15:19 +0100)]
dxva2_vc1: fix decoding of BI frames

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
7 years agolibavformat.v: add ffio_set_buf_size() for ffserver.
Michael Niedermayer [Mon, 12 Mar 2012 05:04:37 +0000 (06:04 +0100)]
libavformat.v: add ffio_set_buf_size() for ffserver.

its inevitable with the current API

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
7 years agoudp: add multicast input interface selection
Tudor.Suciu [Sun, 29 Jan 2012 14:24:59 +0000 (15:24 +0100)]
udp: add multicast input interface selection

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
7 years agoflvenc: Remove apparently unneeded AAC check.
C Chatterjee [Mon, 12 Mar 2012 04:21:59 +0000 (05:21 +0100)]
flvenc: Remove apparently unneeded AAC check.

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
7 years agoiff: check for pbm tag
ami_stuff [Mon, 28 Nov 2011 02:26:26 +0000 (03:26 +0100)]
iff: check for pbm tag

more robust

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
7 years agoMerge remote-tracking branch 'qatar/master'
Michael Niedermayer [Mon, 12 Mar 2012 03:35:06 +0000 (04:35 +0100)]
Merge remote-tracking branch 'qatar/master'

* qatar/master:
  dsicinvideo: validate buffer offset before copying pixels.
  cook: error out on quant_index values outside [-63, 63] range.
  mpc: pad mpc_CC/SCF[] tables to allow for negative indices.

Conflicts:
libavcodec/cook.c
libavcodec/dsicinav.c
libavcodec/mpc.c
libavcodec/mpc7.c
libavcodec/mpcdata.h

Merged-by: Michael Niedermayer <michaelni@gmx.at>
7 years agoffserver: add missing buffer set after rewrite av_open_input_file to avformat_open_input.
Miroslav Slugeň [Mon, 7 Nov 2011 10:48:43 +0000 (11:48 +0100)]
ffserver: add missing buffer set after rewrite av_open_input_file to avformat_open_input.

Fixes Ticket346

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
7 years agoRevert "ffserver: remove unused variable."
Michael Niedermayer [Mon, 12 Mar 2012 02:31:44 +0000 (03:31 +0100)]
Revert "ffserver: remove unused variable."

This reverts commit f02f745e4aa070e5fabf1156b75c340171304933.

7 years agodoc: add vf_crop keepaspect documentation
Stefano Sabatini [Sun, 11 Mar 2012 16:47:06 +0000 (17:47 +0100)]
doc: add vf_crop keepaspect documentation

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
7 years agovf_crop: keepaspect support
Baptiste Coudurier [Sat, 10 Mar 2012 03:07:17 +0000 (04:07 +0100)]
vf_crop: keepaspect support

7 years agoFix frame height vs field height confusion in MXF decoding.
Joseph Artsimovich [Tue, 7 Feb 2012 10:48:43 +0000 (10:48 +0000)]
Fix frame height vs field height confusion in MXF decoding.

Reviewed-by: Tomas Härdin <tomas.hardin@codemill.se>
Reveiwed-by: Baptiste Coudurier <baptiste.coudurier@gmail.com>
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
7 years agoFATE: add test for cdxl demuxer
Paul B Mahol [Sun, 11 Mar 2012 14:06:09 +0000 (14:06 +0000)]
FATE: add test for cdxl demuxer

Signed-off-by: Paul B Mahol <onemda@gmail.com>
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
7 years agoalsdec: Fix out of ltp_gain_values read.
Thilo Borgmann [Sun, 11 Mar 2012 15:56:23 +0000 (16:56 +0100)]
alsdec: Fix out of ltp_gain_values read.

Found-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
7 years agoalsdec: pretty print for another log message
Thilo Borgmann [Sun, 11 Mar 2012 15:54:39 +0000 (16:54 +0100)]
alsdec: pretty print for another log message

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
7 years agodsicinvideo: validate buffer offset before copying pixels.
Ronald S. Bultje [Sun, 11 Mar 2012 14:28:54 +0000 (07:28 -0700)]
dsicinvideo: validate buffer offset before copying pixels.

Found-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind
CC: libav-stable@libav.org
7 years agomxfdec: add timecode to metadata
Matthieu Bouron [Thu, 23 Feb 2012 15:58:01 +0000 (16:58 +0100)]
mxfdec: add timecode to metadata

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
7 years agocook: error out on quant_index values outside [-63, 63] range.
Ronald S. Bultje [Sun, 11 Mar 2012 01:51:28 +0000 (17:51 -0800)]
cook: error out on quant_index values outside [-63, 63] range.

Found-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind
CC: libav-stable@libav.org
7 years agoMerge remote-tracking branch 'qatar/master'
Michael Niedermayer [Sun, 11 Mar 2012 00:12:52 +0000 (01:12 +0100)]
Merge remote-tracking branch 'qatar/master'

* qatar/master:
  cook: expand dither_tab[], and make sure indexes into it don't overflow.
  xxan: reindent xan_unpack_luma().
  xxan: protect against chroma LUT overreads.
  xxan: convert to bytestream2 API.
  xxan: don't read before start of buffer in av_memcpy_backptr().
  vp8: convert mbedge loopfilter x86 assembly to use named arguments.
  vp8: convert inner loopfilter x86 assembly to use named arguments.

Conflicts:
libavcodec/xxan.c

Merged-by: Michael Niedermayer <michaelni@gmx.at>
7 years agoAdd missing requirements to libavdevice.pc if lavfi is enabled.
Carl Eugen Hoyos [Sat, 10 Mar 2012 23:48:36 +0000 (00:48 +0100)]
Add missing requirements to libavdevice.pc if lavfi is enabled.

Fixes ticket #1050.

7 years agompc: pad mpc_CC/SCF[] tables to allow for negative indices.
Ronald S. Bultje [Sat, 10 Mar 2012 22:28:08 +0000 (14:28 -0800)]
mpc: pad mpc_CC/SCF[] tables to allow for negative indices.

MPC8 allows indices of mpc_CC up to -1, and mpc_SCF up to -6, thus pad
the tables by that much on the left end.

Found-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind
CC: libav-stable@libav.org
7 years agovc1: add missing entries to ff_vc1_fps_nr.
Michael Niedermayer [Sat, 10 Mar 2012 21:43:14 +0000 (22:43 +0100)]
vc1: add missing entries to ff_vc1_fps_nr.

Fixes out of array read

Found-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
7 years agompc7: check subband index
Michael Niedermayer [Sat, 10 Mar 2012 21:36:15 +0000 (22:36 +0100)]
mpc7: check subband index

This fixes a overread

Found-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
7 years agomjpegb: Detect changing nb of planes in interlaced video.
Michael Niedermayer [Sat, 10 Mar 2012 21:02:46 +0000 (22:02 +0100)]
mjpegb: Detect changing nb of planes in interlaced video.

Found-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
7 years agoindeo3: Fix out of reference reading with NULL blocks.
Michael Niedermayer [Sat, 10 Mar 2012 20:12:41 +0000 (21:12 +0100)]
indeo3: Fix out of reference reading with NULL blocks.

Found-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
7 years agocook: expand dither_tab[], and make sure indexes into it don't overflow.
Ronald S. Bultje [Fri, 9 Mar 2012 01:09:27 +0000 (17:09 -0800)]
cook: expand dither_tab[], and make sure indexes into it don't overflow.

Fixes overflows in accessing dither_tab[].

Found-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind
CC: libav-stable@libav.org
7 years agoxxan: reindent xan_unpack_luma().
Ronald S. Bultje [Fri, 9 Mar 2012 00:32:49 +0000 (16:32 -0800)]
xxan: reindent xan_unpack_luma().

It used 3-space indent instead of 4-space indent.

7 years agoxxan: protect against chroma LUT overreads.
Ronald S. Bultje [Sat, 10 Mar 2012 19:57:17 +0000 (11:57 -0800)]
xxan: protect against chroma LUT overreads.

Found-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind
CC: libav-stable@libav.org
7 years agoxxan: convert to bytestream2 API.
Ronald S. Bultje [Fri, 9 Mar 2012 00:32:47 +0000 (16:32 -0800)]
xxan: convert to bytestream2 API.

Protects against overreads.

Found-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind
CC: libav-stable@libav.org
7 years agoxxan: don't read before start of buffer in av_memcpy_backptr().
Ronald S. Bultje [Fri, 9 Mar 2012 00:32:46 +0000 (16:32 -0800)]
xxan: don't read before start of buffer in av_memcpy_backptr().

Found-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind
CC: libav-stable@libav.org
7 years agovp8: convert mbedge loopfilter x86 assembly to use named arguments.
Ronald S. Bultje [Mon, 5 Mar 2012 04:21:22 +0000 (20:21 -0800)]
vp8: convert mbedge loopfilter x86 assembly to use named arguments.

7 years agovp8: convert inner loopfilter x86 assembly to use named arguments.
Ronald S. Bultje [Mon, 5 Mar 2012 00:17:14 +0000 (16:17 -0800)]
vp8: convert inner loopfilter x86 assembly to use named arguments.

7 years agosnowenc: add no_bitstream option.
Reimar Döffinger [Sat, 10 Mar 2012 18:59:44 +0000 (19:59 +0100)]
snowenc: add no_bitstream option.

This allows making e.g. MPlayer's -vf uspp filter about 20% faster.

Signed-off-by: Reimar Döffinger <Reimar.Doeffinger@gmx.de>
7 years agosnowenc: mark some encode_subband arguments const.
Reimar Döffinger [Sat, 10 Mar 2012 18:58:22 +0000 (19:58 +0100)]
snowenc: mark some encode_subband arguments const.

This makes it more obvious that this function only does bitstream
encoding.

Signed-off-by: Reimar Döffinger <Reimar.Doeffinger@gmx.de>
7 years agompjpeg: video streaming will no longer break and stop on Firefox
Zalewa PL [Sat, 10 Mar 2012 17:32:02 +0000 (18:32 +0100)]
mpjpeg: video streaming will no longer break and stop on Firefox

mpjpeg video streamings would break and stop on Firefox after 1 - 30
seconds.
In order to fix this, two changes were made:
1. Replaced all occurrences of '\n' character in mjpeg metadata
   with occurences of "\r\n".
2. Added "Content-length: <packet-size>" metadata entry for each
   sent frame.

The change has been tested on Google Chrome 17.0.963.78 and Firefox 10.0.2
on lubuntu 11.10 and the streaming seems to work fine now.

7 years agomxf: Add DNxHD UL
Tomas Härdin [Sat, 10 Mar 2012 16:03:00 +0000 (17:03 +0100)]
mxf: Add DNxHD UL

Note that the old DNxHD UL is actually JPEG 2000 according to RP224. Leaving it
as-is for now.

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
7 years agovf_frei0r: set outlinks sample aspect ratio to 1
Baptiste Coudurier [Sat, 10 Mar 2012 02:02:05 +0000 (03:02 +0100)]
vf_frei0r: set outlinks sample aspect ratio to 1

7 years agoDV: Use profile[1] detection hack only for stype 0.
Reimar Döffinger [Tue, 6 Mar 2012 20:36:58 +0000 (21:36 +0100)]
DV: Use profile[1] detection hack only for stype 0.

The two samples both have stype 0.
Without this extra check, the code breaks 4:2:2 dvsd
(stype 4), since that has the same resolution.

Signed-off-by: Reimar Döffinger <Reimar.Doeffinger@gmx.de>
7 years agoDV demuxer: Stricter check for avio_read result.
Reimar Döffinger [Sun, 4 Mar 2012 18:39:45 +0000 (19:39 +0100)]
DV demuxer: Stricter check for avio_read result.

Signed-off-by: Reimar Döffinger <Reimar.Doeffinger@gmx.de>
7 years agocook: tighten the quant_index_table range further.
Michael Niedermayer [Sat, 10 Mar 2012 07:04:34 +0000 (08:04 +0100)]
cook: tighten the quant_index_table range further.

Found-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
7 years agoMerge remote-tracking branch 'qatar/master'
Michael Niedermayer [Sat, 10 Mar 2012 00:12:08 +0000 (01:12 +0100)]
Merge remote-tracking branch 'qatar/master'

* qatar/master:
  Fix a bunch of common typos.
  build: Skip compiling xvmc.h under the correct condition.
  configure: darwin: Change dylib install names to include major version.
  mpegts: Always honor a registration descriptor if present and there is no other codec information.
  aacdec: Fix SCE parity check.
  aacdec: Fix out of array writes (stack).
  rtsp: Only set the ttl parameter if the server actually gave a value
  udp: Set ttl for read-write streams, too, not only for write-only ones
  udp: Only bind to the multicast address if in read-only mode
  udp: Clarify the comment about binding the multicast address
  udp: Reorder comments

Conflicts:
libavcodec/aacdec.c
tools/patcheck

Merged-by: Michael Niedermayer <michaelni@gmx.at>
7 years agosnow: reject unsupported chroma shifts.
Michael Niedermayer [Fri, 9 Mar 2012 23:08:32 +0000 (00:08 +0100)]
snow: reject unsupported chroma shifts.

Found-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
7 years agolavfi: remove swapuv libmpcodecs wrapper
Stefano Sabatini [Fri, 9 Mar 2012 22:22:55 +0000 (23:22 +0100)]
lavfi: remove swapuv libmpcodecs wrapper

The filter has been ported to a native libavfilter filter.

7 years agolavfi: port MP swapuv filter
Stefano Sabatini [Thu, 8 Mar 2012 15:18:03 +0000 (16:18 +0100)]
lavfi: port MP swapuv filter

7 years agoimgconvert: add macro pixdesc_has_alpha for checking if a pixel format has an alpha...
Stefano Sabatini [Thu, 8 Mar 2012 13:40:30 +0000 (14:40 +0100)]
imgconvert: add macro pixdesc_has_alpha for checking if a pixel format has an alpha component

Reduce redundancy and simplify.

7 years agompegvideo_probe: Fix misdetection of mpeg4video files.
Michael Niedermayer [Fri, 9 Mar 2012 21:25:32 +0000 (22:25 +0100)]
mpegvideo_probe: Fix misdetection of mpeg4video files.

(issue1210)

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
7 years agoFix a bunch of common typos.
Diego Biurrun [Wed, 25 Jan 2012 11:25:11 +0000 (12:25 +0100)]
Fix a bunch of common typos.