ffmpeg.git
8 years agoasfdec: correctly parse payload extensions
Michael Niedermayer [Sat, 3 Nov 2012 04:37:18 +0000 (05:37 +0100)]
asfdec: correctly parse payload extensions

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
8 years agoasfdec: parse payload extension list
Michael Niedermayer [Sat, 3 Nov 2012 04:35:35 +0000 (05:35 +0100)]
asfdec: parse payload extension list

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
8 years agovf_tinterlace: check av_image_get_linesize() return value
Michael Niedermayer [Sat, 3 Nov 2012 01:21:49 +0000 (02:21 +0100)]
vf_tinterlace: check av_image_get_linesize() return value

Fixes CID703717
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
8 years agoaf_earwax: remove unused pointer value
Michael Niedermayer [Sat, 3 Nov 2012 01:09:43 +0000 (02:09 +0100)]
af_earwax: remove unused pointer value

Fixes CID703849
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
8 years agolibgsmdec: fix decoding of non 8khz gsm files
Michael Niedermayer [Fri, 2 Nov 2012 23:40:19 +0000 (00:40 +0100)]
libgsmdec: fix decoding of non 8khz gsm files

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
8 years agogsmdec: fix decoding of non 8khz gsm files
Michael Niedermayer [Fri, 2 Nov 2012 23:39:46 +0000 (00:39 +0100)]
gsmdec: fix decoding of non 8khz gsm files

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
8 years agoindeo3: release buffer before calling decode_plane
Paul B Mahol [Fri, 2 Nov 2012 23:39:03 +0000 (23:39 +0000)]
indeo3: release buffer before calling decode_plane

8 years agoRevert "Partly revert f174fba: indeo3 decoder does not support direct rendering."
Paul B Mahol [Tue, 30 Oct 2012 12:10:40 +0000 (12:10 +0000)]
Revert "Partly revert f174fba: indeo3 decoder does not support direct rendering."

f174fba did not introduce DR1 flag it was already available before that.

This reverts commit 8bf44d5c9681233f5c1fd353b18276f25b199b7a.

8 years agolibvo-amrwbenc: allow sampling rates other than 16khz
Michael Niedermayer [Fri, 2 Nov 2012 22:47:32 +0000 (23:47 +0100)]
libvo-amrwbenc: allow sampling rates other than 16khz

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
8 years agolibopencore-amr: allow sampling rates other than 8khz
Michael Niedermayer [Fri, 2 Nov 2012 22:47:12 +0000 (23:47 +0100)]
libopencore-amr: allow sampling rates other than 8khz

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
8 years agolibopencore-amrdec: allow sampling rates other than 8khz
Michael Niedermayer [Fri, 2 Nov 2012 22:46:47 +0000 (23:46 +0100)]
libopencore-amrdec: allow sampling rates other than 8khz

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
8 years agoamrwbdec: allow sample rates other than 16khz
Michael Niedermayer [Fri, 2 Nov 2012 22:46:19 +0000 (23:46 +0100)]
amrwbdec: allow sample rates other than 16khz

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
8 years agoamrnbdec: allow sample rates other than 8khz
Michael Niedermayer [Fri, 2 Nov 2012 22:45:54 +0000 (23:45 +0100)]
amrnbdec: allow sample rates other than 8khz

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
8 years agolclenc: make compression level user selectable
Paul B Mahol [Fri, 2 Nov 2012 21:54:44 +0000 (21:54 +0000)]
lclenc: make compression level user selectable

Signed-off-by: Paul B Mahol <onemda@gmail.com>
8 years agoFix bit_rate in MPEG1/2 Video
Heesuk Jung [Fri, 2 Nov 2012 15:25:03 +0000 (08:25 -0700)]
Fix bit_rate in MPEG1/2 Video

In ISO/IEC 13818-2, bit rate is differently determined according to video type

1) MPEG1 Video
 Bit_rate and vbv_delay are set to 3FFFF and FFFF respectively
 to indicate variable bitrate. Other values are for constant bitrate.
 VBV is only defined for constant bit rate operation.
 Ths STD supersedes the VBV model for vbr.

2) MPEG2 Video
 Even if the bitrate is constant, the value of bit_rate may not be the actual bitrate
 since bit_rate need only be an upper bound to that actual bitrate.
 VBV is only defined for variable bit rate operation.
 Constant bit rate is viewed as a special case of vbr.

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
8 years agoapedec: consume packet after it has been fully decoded
Paul B Mahol [Fri, 2 Nov 2012 19:44:49 +0000 (19:44 +0000)]
apedec: consume packet after it has been fully decoded

Timestamp handling of decoded frames are much simpler now.

Fixes #1675.

Signed-off-by: Paul B Mahol <onemda@gmail.com>
8 years agosmjpegdec: set nb_frames for video stream
Paul B Mahol [Fri, 2 Nov 2012 16:21:17 +0000 (16:21 +0000)]
smjpegdec: set nb_frames for video stream

Signed-off-by: Paul B Mahol <onemda@gmail.com>
8 years agolavc/pngdec: decode textual data (tEXt and zTXt).
Nicolas George [Sun, 28 Oct 2012 13:41:40 +0000 (14:41 +0100)]
lavc/pngdec: decode textual data (tEXt and zTXt).

Requested in trac ticket #1857.

8 years agolavu/bprint: add av_bprint_get_buffer().
Nicolas George [Sun, 28 Oct 2012 13:40:30 +0000 (14:40 +0100)]
lavu/bprint: add av_bprint_get_buffer().

It is useful to use bprint to handle a growing buffer
used with another API.

8 years agoMerge remote-tracking branch 'qatar/master'
Michael Niedermayer [Fri, 2 Nov 2012 13:40:04 +0000 (14:40 +0100)]
Merge remote-tracking branch 'qatar/master'

* qatar/master:
  dv1394: Swap the min and max values of the 'standard' option
  rtpdec_vp8: Don't parse fields that aren't used
  lavc: add some AVPacket doxy.
  audiointerleave: deobfuscate a function call.
  rtpdec: factorize identical code used in several handlers
  a64: remove interleaved mode.
  doc: Point to the new location of the c99-to-c89 tool
  decode_audio3: initialize AVFrame
  ws-snd1: set channel layout
  wmavoice: set channel layout
  wmapro: use AVCodecContext.channels instead of keeping a private copy
  wma: do not keep private copies of some AVCodecContext fields

Conflicts:
libavcodec/wmadec.c
libavcodec/wmaenc.c

Merged-by: Michael Niedermayer <michaelni@gmx.at>
8 years agoMerge commit '50a65e7a540ce6747f81d6dbf6a602ad35be77ff'
Michael Niedermayer [Fri, 2 Nov 2012 13:15:28 +0000 (14:15 +0100)]
Merge commit '50a65e7a540ce6747f81d6dbf6a602ad35be77ff'

* commit '50a65e7a540ce6747f81d6dbf6a602ad35be77ff': (24 commits)
  vmdaudio: set channel layout
  twinvq: validate sample rate code
  twinvq: set channel layout
  twinvq: validate that channels is not <= 0
  truespeech: set channel layout
  sipr: set channel layout
  shorten: validate that the channel count in the header is not <= 0
  ra288dec: set channel layout
  ra144dec: set channel layout
  qdm2: remove unneeded checks for channel count
  qdm2: make sure channels is not <= 0 and set channel layout
  qcelpdec: set channel layout
  nellymoserdec: set channels to 1
  libopencore-amr: set channel layout for amr-nb or if not set by the user
  libilbc: set channel layout
  dpcm: use AVCodecContext.channels instead of keeping a private copy
  imc: set channels to 1 instead of validating it
  gsmdec: always set channel layout and sample rate at initialization
  libgsmdec: always set channel layout and sample rate at initialization
  g726dec: do not validate sample rate
  ...

Conflicts:
libavcodec/dpcm.c
libavcodec/qdm2.c

Merged-by: Michael Niedermayer <michaelni@gmx.at>
8 years agopcm: fix handling of more than 8 channels for planar
Michael Niedermayer [Fri, 2 Nov 2012 13:00:23 +0000 (14:00 +0100)]
pcm: fix handling of more than 8 channels for planar

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
8 years agoMerge commit '8ac0f6767bf63d3e6b308ee6648ff02598b81e03'
Michael Niedermayer [Fri, 2 Nov 2012 12:39:53 +0000 (13:39 +0100)]
Merge commit '8ac0f6767bf63d3e6b308ee6648ff02598b81e03'

* commit '8ac0f6767bf63d3e6b308ee6648ff02598b81e03':
  dcadec: allow the decoder to change the channel layout mid-stream
  cook: use av_dlog() for debug logging instead of av_log() with AV_LOG_ERROR
  cook: move samples_per_frame from COOKSubpacket to where it is used
  cook: use av_get_channel_layout_nb_channels() instead of cook_count_channels()
  cook: reverse a condition so that the code makes more sense
  cook: remove unneeded COOKContext variable, sample_rate
  cook: remove unneeded COOKContext variable, bit_rate
  cook: use AVCodecContext.channels instead of keeping a private copy
  bmvaudio: set channel layout at init() rather than validating it
  atrac1: do not keep a copy of channel count in the private context
  dsicinaudio: set channels and channel layout
  g722dec: set channel layout at initialization instead of validating it
  amrwbdec: set channels, channel_layout, and sample_rate
  amrnbdec: set channels, channel_layout, and sample_rate
  dca_parser: allow the parser to change the sample rate
  lavc: check channel count after decoder init
  lavc: move SANE_NB_CHANNELS to internal.h and use it in the PCM decoders

Conflicts:
libavcodec/dcadec.c
libavcodec/pcm.c

Merged-by: Michael Niedermayer <michaelni@gmx.at>
8 years agodv1394: Swap the min and max values of the 'standard' option
Michael Niedermayer [Fri, 2 Nov 2012 01:07:15 +0000 (02:07 +0100)]
dv1394: Swap the min and max values of the 'standard' option

DV1394_NTSC has a lower value than DV1394_PAL.

Signed-off-by: Martin Storsjö <martin@martin.st>
8 years agortpdec_vp8: Don't parse fields that aren't used
Martin Storsjö [Mon, 8 Oct 2012 22:17:45 +0000 (01:17 +0300)]
rtpdec_vp8: Don't parse fields that aren't used

This avoids warnings about unused variables.

Signed-off-by: Martin Storsjö <martin@martin.st>
8 years agolavc: add some AVPacket doxy.
Anton Khirnov [Wed, 31 Oct 2012 16:27:24 +0000 (17:27 +0100)]
lavc: add some AVPacket doxy.

8 years agoaudiointerleave: deobfuscate a function call.
Anton Khirnov [Wed, 31 Oct 2012 21:10:41 +0000 (22:10 +0100)]
audiointerleave: deobfuscate a function call.

right above there is if (pkt) {<do stuff>; pkt = NULL}, so pkt is just a
fancy name for NULL at this point.

8 years agortpdec: factorize identical code used in several handlers
Anton Khirnov [Thu, 1 Nov 2012 13:03:04 +0000 (14:03 +0100)]
rtpdec: factorize identical code used in several handlers

8 years agoa64: remove interleaved mode.
Anton Khirnov [Wed, 31 Oct 2012 21:32:36 +0000 (22:32 +0100)]
a64: remove interleaved mode.

It has been disabled since it was added two years ago.

8 years agoAdd QT CC track mux support
Jason [Mon, 22 Oct 2012 03:56:18 +0000 (23:56 -0400)]
Add QT CC track mux support

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
8 years agodv1394: fix order of AVOption fields
Michael Niedermayer [Fri, 2 Nov 2012 01:07:15 +0000 (02:07 +0100)]
dv1394: fix order of AVOption fields

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
8 years agoApply again [916352f282855e3e4e86a39df9452fead2aa0771] that got lost in the merges.
Alexis Ballier [Thu, 1 Nov 2012 14:14:59 +0000 (11:14 -0300)]
Apply again [916352f282855e3e4e86a39df9452fead2aa0771] that got lost in the merges.

Do not quote second argument to filter{,_out} in check_ld. We want to keep/remove all the space-separated words matching the -l* pattern, not keep everything if the whole argument begins with -l and remove it otherwise.

This also fixes errors like:
./configure: eval: line 418: syntax error near unexpected token `-l*'
./configure: eval: line 418: `case  in -l*) ;; *) echo  ;; esac'
when run with ./configure --enable-openal

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
8 years agoMerge remote-tracking branch 'cus/stable'
Michael Niedermayer [Thu, 1 Nov 2012 21:08:55 +0000 (22:08 +0100)]
Merge remote-tracking branch 'cus/stable'

* cus/stable:
  ffplay: remove redundant !codec check
  ffplay: only initialize codec opts before using it
  ffplay: always free buffersink_params in configure_video_filters
  ffplay: remove uneeded format filter, buffersink format is set
  ffplay: check for buffersink_params allocation success
  ffplay: always free inputs and outputs in configure_filtergraph
  ffplay: fill the unused part of the window with black
  ffplay: add update parameter to fill_rectangle

Merged-by: Michael Niedermayer <michaelni@gmx.at>
8 years agodoc: Point to the new location of the c99-to-c89 tool
Martin Storsjö [Thu, 1 Nov 2012 13:27:18 +0000 (15:27 +0200)]
doc: Point to the new location of the c99-to-c89 tool

This location contains prebuilt binaries as well.

Signed-off-by: Martin Storsjö <martin@martin.st>
8 years agolavf: fix integer overflow in rfps calculation
Michael Niedermayer [Thu, 1 Nov 2012 20:16:32 +0000 (21:16 +0100)]
lavf: fix integer overflow in rfps calculation

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
8 years agoavienc: force a valid timebase for video
Michael Niedermayer [Thu, 1 Nov 2012 18:54:47 +0000 (19:54 +0100)]
avienc: force a valid timebase for video

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
8 years agodecode_audio3: initialize AVFrame
Ilkka Ollakka [Wed, 31 Oct 2012 09:24:36 +0000 (11:24 +0200)]
decode_audio3: initialize AVFrame

Same fix and issue as in a25d912dca9cd553440167e0476c47581359c0fc

Signed-off-by: Anton Khirnov <anton@khirnov.net>
8 years agodoc/platform: Comply With All Capitalized Words Convention
Stefano Sabatini [Thu, 1 Nov 2012 17:28:12 +0000 (18:28 +0100)]
doc/platform: Comply With All Capitalized Words Convention

8 years agolavfi/fifo: add assert to ensure request was successfull.
Michael Niedermayer [Thu, 1 Nov 2012 17:02:23 +0000 (18:02 +0100)]
lavfi/fifo: add assert to ensure request was successfull.

We would crash a moment later anyway if this fails.

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
8 years agompegts_probe: detect files with garbage at the begin.
Michael Niedermayer [Thu, 1 Nov 2012 16:22:04 +0000 (17:22 +0100)]
mpegts_probe: detect files with garbage at the begin.

Fixes Ticket1811

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
8 years agows-snd1: set channel layout
Justin Ruggles [Tue, 23 Oct 2012 21:22:53 +0000 (17:22 -0400)]
ws-snd1: set channel layout

8 years agowmavoice: set channel layout
Justin Ruggles [Tue, 23 Oct 2012 21:19:25 +0000 (17:19 -0400)]
wmavoice: set channel layout

8 years agovmdaudio: set channel layout
Justin Ruggles [Tue, 23 Oct 2012 19:27:44 +0000 (15:27 -0400)]
vmdaudio: set channel layout

8 years agowmapro: use AVCodecContext.channels instead of keeping a private copy
Justin Ruggles [Tue, 23 Oct 2012 21:10:37 +0000 (17:10 -0400)]
wmapro: use AVCodecContext.channels instead of keeping a private copy

8 years agotwinvq: validate sample rate code
Justin Ruggles [Tue, 23 Oct 2012 17:17:50 +0000 (13:17 -0400)]
twinvq: validate sample rate code

A large invalid value could cause undefined behavior when left-shifted
by 8 later in the function.

8 years agowma: do not keep private copies of some AVCodecContext fields
Justin Ruggles [Tue, 23 Oct 2012 20:30:59 +0000 (16:30 -0400)]
wma: do not keep private copies of some AVCodecContext fields

channels, sample_rate, bit_rate, and block_align can be used directly from
the AVCodecContext

8 years agotwinvq: set channel layout
Justin Ruggles [Tue, 23 Oct 2012 17:17:17 +0000 (13:17 -0400)]
twinvq: set channel layout

8 years agotwinvq: validate that channels is not <= 0
Justin Ruggles [Tue, 23 Oct 2012 17:15:24 +0000 (13:15 -0400)]
twinvq: validate that channels is not <= 0

This could occur due to integer overflow when reading the channel count from
the extradata.

8 years agotruespeech: set channel layout
Justin Ruggles [Tue, 23 Oct 2012 04:53:16 +0000 (00:53 -0400)]
truespeech: set channel layout

8 years agosipr: set channel layout
Justin Ruggles [Tue, 23 Oct 2012 04:51:26 +0000 (00:51 -0400)]
sipr: set channel layout

8 years agoshorten: validate that the channel count in the header is not <= 0
Justin Ruggles [Tue, 23 Oct 2012 04:40:51 +0000 (00:40 -0400)]
shorten: validate that the channel count in the header is not <= 0

8 years agora288dec: set channel layout
Justin Ruggles [Tue, 23 Oct 2012 04:35:50 +0000 (00:35 -0400)]
ra288dec: set channel layout

8 years agora144dec: set channel layout
Justin Ruggles [Mon, 22 Oct 2012 22:57:39 +0000 (18:57 -0400)]
ra144dec: set channel layout

8 years agoqdm2: remove unneeded checks for channel count
Justin Ruggles [Mon, 22 Oct 2012 22:54:29 +0000 (18:54 -0400)]
qdm2: remove unneeded checks for channel count

8 years agoqdm2: make sure channels is not <= 0 and set channel layout
Justin Ruggles [Mon, 22 Oct 2012 22:53:19 +0000 (18:53 -0400)]
qdm2: make sure channels is not <= 0 and set channel layout

8 years agoqcelpdec: set channel layout
Justin Ruggles [Mon, 22 Oct 2012 22:25:46 +0000 (18:25 -0400)]
qcelpdec: set channel layout

8 years agonellymoserdec: set channels to 1
Justin Ruggles [Mon, 22 Oct 2012 21:58:24 +0000 (17:58 -0400)]
nellymoserdec: set channels to 1

8 years agolibopencore-amr: set channel layout for amr-nb or if not set by the user
Justin Ruggles [Mon, 22 Oct 2012 21:49:59 +0000 (17:49 -0400)]
libopencore-amr: set channel layout for amr-nb or if not set by the user

8 years agolibilbc: set channel layout
Justin Ruggles [Mon, 22 Oct 2012 21:41:47 +0000 (17:41 -0400)]
libilbc: set channel layout

8 years agodpcm: use AVCodecContext.channels instead of keeping a private copy
Justin Ruggles [Mon, 22 Oct 2012 20:03:20 +0000 (16:03 -0400)]
dpcm: use AVCodecContext.channels instead of keeping a private copy

8 years agoimc: set channels to 1 instead of validating it
Justin Ruggles [Mon, 22 Oct 2012 19:54:29 +0000 (15:54 -0400)]
imc: set channels to 1 instead of validating it

8 years agogsmdec: always set channel layout and sample rate at initialization
Justin Ruggles [Mon, 22 Oct 2012 19:45:38 +0000 (15:45 -0400)]
gsmdec: always set channel layout and sample rate at initialization

Only mono 8kHz is supported.

8 years agodcadec: allow the decoder to change the channel layout mid-stream
Justin Ruggles [Sun, 21 Oct 2012 19:12:36 +0000 (15:12 -0400)]
dcadec: allow the decoder to change the channel layout mid-stream

8 years agolibgsmdec: always set channel layout and sample rate at initialization
Justin Ruggles [Mon, 22 Oct 2012 19:43:59 +0000 (15:43 -0400)]
libgsmdec: always set channel layout and sample rate at initialization

Only mono 8kHz is supported.

8 years agog726dec: do not validate sample rate
Justin Ruggles [Mon, 22 Oct 2012 17:26:46 +0000 (13:26 -0400)]
g726dec: do not validate sample rate

For decoding it does not really matter what the sample rate is.

8 years agog726dec: set channel layout at initialization instead of validating it
Justin Ruggles [Mon, 22 Oct 2012 17:26:14 +0000 (13:26 -0400)]
g726dec: set channel layout at initialization instead of validating it

8 years agoflacdec: do not warn on sample rate change
Justin Ruggles [Sun, 21 Oct 2012 21:04:58 +0000 (17:04 -0400)]
flacdec: do not warn on sample rate change

8 years agoflacdec: allow mid-stream channel layout change
Justin Ruggles [Sun, 21 Oct 2012 21:02:28 +0000 (17:02 -0400)]
flacdec: allow mid-stream channel layout change

Although the libFLAC decoder cannot handle such a change, it is allowed by the
spec and could potentially occur with live streams.

8 years agoflacdec: use av_samples_* functions for sample buffer allocation
Justin Ruggles [Sun, 21 Oct 2012 20:15:34 +0000 (16:15 -0400)]
flacdec: use av_samples_* functions for sample buffer allocation

Also, return an error on allocation failure.

8 years agocook: use av_dlog() for debug logging instead of av_log() with AV_LOG_ERROR
Justin Ruggles [Sun, 21 Oct 2012 18:47:10 +0000 (14:47 -0400)]
cook: use av_dlog() for debug logging instead of av_log() with AV_LOG_ERROR

8 years agocook: move samples_per_frame from COOKSubpacket to where it is used
Justin Ruggles [Sun, 21 Oct 2012 18:43:02 +0000 (14:43 -0400)]
cook: move samples_per_frame from COOKSubpacket to where it is used

8 years agocook: use av_get_channel_layout_nb_channels() instead of cook_count_channels()
Justin Ruggles [Sun, 21 Oct 2012 18:36:38 +0000 (14:36 -0400)]
cook: use av_get_channel_layout_nb_channels() instead of cook_count_channels()

8 years agocook: reverse a condition so that the code makes more sense
Justin Ruggles [Sun, 21 Oct 2012 18:33:11 +0000 (14:33 -0400)]
cook: reverse a condition so that the code makes more sense

8 years agocook: remove unneeded COOKContext variable, sample_rate
Justin Ruggles [Sun, 21 Oct 2012 18:26:29 +0000 (14:26 -0400)]
cook: remove unneeded COOKContext variable, sample_rate

8 years agocook: remove unneeded COOKContext variable, bit_rate
Justin Ruggles [Sun, 21 Oct 2012 18:25:18 +0000 (14:25 -0400)]
cook: remove unneeded COOKContext variable, bit_rate

8 years agocook: use AVCodecContext.channels instead of keeping a private copy
Justin Ruggles [Sun, 21 Oct 2012 18:24:04 +0000 (14:24 -0400)]
cook: use AVCodecContext.channels instead of keeping a private copy

8 years agobmvaudio: set channel layout at init() rather than validating it
Justin Ruggles [Sun, 21 Oct 2012 17:48:50 +0000 (13:48 -0400)]
bmvaudio: set channel layout at init() rather than validating it

8 years agoatrac1: do not keep a copy of channel count in the private context
Justin Ruggles [Wed, 17 Oct 2012 15:45:49 +0000 (11:45 -0400)]
atrac1: do not keep a copy of channel count in the private context

8 years agodsicinaudio: set channels and channel layout
Justin Ruggles [Wed, 17 Oct 2012 15:29:04 +0000 (11:29 -0400)]
dsicinaudio: set channels and channel layout

8 years agog722dec: set channel layout at initialization instead of validating it
Justin Ruggles [Mon, 15 Oct 2012 20:40:44 +0000 (16:40 -0400)]
g722dec: set channel layout at initialization instead of validating it

8 years agoamrwbdec: set channels, channel_layout, and sample_rate
Justin Ruggles [Mon, 8 Oct 2012 01:19:28 +0000 (21:19 -0400)]
amrwbdec: set channels, channel_layout, and sample_rate

Only mono 16kHz is supported.

8 years agoamrnbdec: set channels, channel_layout, and sample_rate
Justin Ruggles [Mon, 8 Oct 2012 01:17:45 +0000 (21:17 -0400)]
amrnbdec: set channels, channel_layout, and sample_rate

Only mono 8kHz is supported.

8 years agodca_parser: allow the parser to change the sample rate
Justin Ruggles [Mon, 8 Oct 2012 00:52:35 +0000 (20:52 -0400)]
dca_parser: allow the parser to change the sample rate

8 years agolavc: check channel count after decoder init
Justin Ruggles [Tue, 23 Oct 2012 04:56:00 +0000 (00:56 -0400)]
lavc: check channel count after decoder init

Ensures the decoder did not set channel count to an insanely high value
during initialization, which could cause large memory usage when it tries to
get a buffer during decoding.

8 years agolavc: move SANE_NB_CHANNELS to internal.h and use it in the PCM decoders
Justin Ruggles [Mon, 22 Oct 2012 17:40:10 +0000 (13:40 -0400)]
lavc: move SANE_NB_CHANNELS to internal.h and use it in the PCM decoders

8 years agomxfdec: Fix inferred misuses of enums
Tomas Härdin [Wed, 24 Oct 2012 14:30:06 +0000 (16:30 +0200)]
mxfdec: Fix inferred misuses of enums

This fixes CID 700457, 700458 and 703705.

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
8 years agoffplay: remove redundant !codec check
Marton Balint [Sun, 28 Oct 2012 00:22:47 +0000 (02:22 +0200)]
ffplay: remove redundant !codec check

Signed-off-by: Marton Balint <cus@passwd.hu>
8 years agoffplay: only initialize codec opts before using it
Marton Balint [Sun, 28 Oct 2012 00:19:18 +0000 (02:19 +0200)]
ffplay: only initialize codec opts before using it

Fixes Coverity CID 733793.

Signed-off-by: Marton Balint <cus@passwd.hu>
8 years agoffplay: always free buffersink_params in configure_video_filters
Marton Balint [Sun, 28 Oct 2012 00:00:52 +0000 (02:00 +0200)]
ffplay: always free buffersink_params in configure_video_filters

Fixes Coverity CID 733792.

Signed-off-by: Marton Balint <cus@passwd.hu>
8 years agoffplay: remove uneeded format filter, buffersink format is set
Marton Balint [Sat, 27 Oct 2012 23:51:25 +0000 (01:51 +0200)]
ffplay: remove uneeded format filter, buffersink format is set

Signed-off-by: Marton Balint <cus@passwd.hu>
8 years agoffplay: check for buffersink_params allocation success
Marton Balint [Sat, 27 Oct 2012 23:31:14 +0000 (01:31 +0200)]
ffplay: check for buffersink_params allocation success

Signed-off-by: Marton Balint <cus@passwd.hu>
8 years agoffplay: always free inputs and outputs in configure_filtergraph
Marton Balint [Sat, 27 Oct 2012 23:19:34 +0000 (01:19 +0200)]
ffplay: always free inputs and outputs in configure_filtergraph

Fixes Coverity CID 733791.

Signed-off-by: Marton Balint <cus@passwd.hu>
8 years agoffplay: fill the unused part of the window with black
Marton Balint [Sat, 22 Sep 2012 14:42:13 +0000 (16:42 +0200)]
ffplay: fill the unused part of the window with black

Should fix ticket #1667.

Signed-off-by: Marton Balint <cus@passwd.hu>
8 years agoffplay: add update parameter to fill_rectangle
Marton Balint [Sat, 22 Sep 2012 14:27:47 +0000 (16:27 +0200)]
ffplay: add update parameter to fill_rectangle

Signed-off-by: Marton Balint <cus@passwd.hu>
8 years agompegvideo_probe: check slice order
Michael Niedermayer [Thu, 1 Nov 2012 14:00:20 +0000 (15:00 +0100)]
mpegvideo_probe: check slice order

Fixes: Enrique.mp3

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
8 years agoMerge remote-tracking branch 'qatar/master'
Michael Niedermayer [Thu, 1 Nov 2012 12:25:46 +0000 (13:25 +0100)]
Merge remote-tracking branch 'qatar/master'

* qatar/master:
  fate: add ac3/eac3 tests to FATE_SAMPLES_AVCONV
  avconv_opt, cmdutils: Add missing function parameter Doxygen
  x86: Move optimization suffix to end of function names

Conflicts:
cmdutils.h

Merged-by: Michael Niedermayer <michaelni@gmx.at>
8 years agoMerge commit 'fa8fcab1e0d31074c0644c4ac5194474c6c26415'
Michael Niedermayer [Thu, 1 Nov 2012 11:53:19 +0000 (12:53 +0100)]
Merge commit 'fa8fcab1e0d31074c0644c4ac5194474c6c26415'

* commit 'fa8fcab1e0d31074c0644c4ac5194474c6c26415':
  x86: h264_chromamc_10bit: drop pointless PAVG %define
  x86: mmx2 ---> mmxext in function names
  swscale: do not forget to swap data in formats with different endianness

Conflicts:
libavcodec/x86/dsputil_mmx.c
libavfilter/x86/gradfun.c
libswscale/input.c
libswscale/utils.c
libswscale/x86/swscale.c
tests/ref/lavfi/pixfmts_scale

Merged-by: Michael Niedermayer <michaelni@gmx.at>
8 years agodoc/filters: add "Notes on filtergraph escaping" section
Stefano Sabatini [Tue, 30 Oct 2012 21:02:29 +0000 (22:02 +0100)]
doc/filters: add "Notes on filtergraph escaping" section

Should help to clarify escaping issues in the filtergraph syntax. In
particular, should address trac ticket #1813.

8 years agorational: test add/sub too
Michael Niedermayer [Thu, 1 Nov 2012 01:42:47 +0000 (02:42 +0100)]
rational: test add/sub too

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
8 years agocmdutils: allow specifying the file for -report
Michael Niedermayer [Thu, 1 Nov 2012 01:35:22 +0000 (02:35 +0100)]
cmdutils: allow specifying the file for -report

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>