ffmpeg.git
6 years agomxfdec: Fix integer overflow with many channels
Michael Niedermayer [Tue, 8 Jan 2013 01:43:14 +0000 (02:43 +0100)]
mxfdec: Fix integer overflow with many channels

Fixes division by zero

Found-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind
Reviewed-by: Matthieu Bouron <matthieu.bouron@gmail.com>
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
6 years agowavpack: check pointer to avoid overreading input buffer
Michael Niedermayer [Fri, 11 Jan 2013 15:36:52 +0000 (16:36 +0100)]
wavpack: check pointer to avoid overreading input buffer

Found-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
6 years agora144enc: fix two "may be used uninitialized in this function" warnings
Michael Niedermayer [Fri, 11 Jan 2013 14:43:46 +0000 (15:43 +0100)]
ra144enc: fix two "may be used uninitialized in this function" warnings

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
6 years agoau: switch to ff_pcm_read_packet() again, after the merge
Michael Niedermayer [Fri, 11 Jan 2013 05:10:31 +0000 (06:10 +0100)]
au: switch to ff_pcm_read_packet() again, after the merge

This fixes G722 durations

Suggested-by: durandal_1707
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
6 years agoMerge remote-tracking branch 'qatar/master'
Michael Niedermayer [Fri, 11 Jan 2013 12:37:38 +0000 (13:37 +0100)]
Merge remote-tracking branch 'qatar/master'

* qatar/master:
  configure: enable pic for shared libs on AArch64
  zmbv: Reset the decoder on keyframe errors

Merged-by: Michael Niedermayer <michaelni@gmx.at>
6 years agoMerge commit '7b8c5b263bc680eff5710bee5994de39d47fc15e'
Michael Niedermayer [Fri, 11 Jan 2013 11:43:45 +0000 (12:43 +0100)]
Merge commit '7b8c5b263bc680eff5710bee5994de39d47fc15e'

* commit '7b8c5b263bc680eff5710bee5994de39d47fc15e':
  vc1dec: prevent a crash due missing pred_flag parameter
  matroska: Fix use after free

Merged-by: Michael Niedermayer <michaelni@gmx.at>
6 years agoMerge commit 'ec86ba57312745fd7ad9771e3121e79c6aacba30'
Michael Niedermayer [Fri, 11 Jan 2013 11:30:32 +0000 (12:30 +0100)]
Merge commit 'ec86ba57312745fd7ad9771e3121e79c6aacba30'

* commit 'ec86ba57312745fd7ad9771e3121e79c6aacba30':
  vp3: Fix double free in vp3_decode_end()
  fate: Split fate-siff test into demuxer and VB video decoder test

Conflicts:
tests/fate/demux.mak
tests/fate/video.mak

Merged-by: Michael Niedermayer <michaelni@gmx.at>
6 years agolavf: remove nonexistent symbols
Paul B Mahol [Fri, 11 Jan 2013 10:07:16 +0000 (10:07 +0000)]
lavf: remove nonexistent symbols

Signed-off-by: Paul B Mahol <onemda@gmail.com>
6 years agoconfigure: enable pic for shared libs on AArch64
Marcin Juszkiewicz [Thu, 10 Jan 2013 12:22:53 +0000 (12:22 +0000)]
configure: enable pic for shared libs on AArch64

Signed-off-by: Marcin Juszkiewicz <marcin.juszkiewicz@linaro.org>
Signed-off-by: Martin Storsjö <martin@martin.st>
6 years agozmbv: Reset the decoder on keyframe errors
Luca Barbato [Fri, 11 Jan 2013 04:07:42 +0000 (05:07 +0100)]
zmbv: Reset the decoder on keyframe errors

Prevent the crash on fuzzed files as reported in bug 63.

6 years agovc1dec: prevent a crash due missing pred_flag parameter
Vladimir Pantelic [Wed, 9 Jan 2013 16:04:09 +0000 (17:04 +0100)]
vc1dec: prevent a crash due missing pred_flag parameter

Handle pred_flag parameter not given to get_mvdata_interlaced()

Signed-off-by: Vladimir Pantelic <vladoman@gmail.com>
Signed-off-by: Luca Barbato <lu_zero@gentoo.org>
6 years agoerror_concealment: Check that the picture is not in a half setup state.
Michael Niedermayer [Fri, 11 Jan 2013 03:44:20 +0000 (04:44 +0100)]
error_concealment: Check that the picture is not in a half setup state.

Fixes state becoming inconsistent
Fixes a null pointer dereference

Found-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
6 years agoass_split: fix out of array access in ass_split()
Michael Niedermayer [Fri, 11 Jan 2013 01:51:27 +0000 (02:51 +0100)]
ass_split: fix out of array access in ass_split()

Found-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
6 years agoass_split: fix out of array access
Michael Niedermayer [Fri, 11 Jan 2013 01:31:04 +0000 (02:31 +0100)]
ass_split: fix out of array access

Found-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
6 years agovorbisdec: Check bark_map_size.
Michael Niedermayer [Thu, 10 Jan 2013 23:54:12 +0000 (00:54 +0100)]
vorbisdec: Check bark_map_size.

This fixes potential divisions by zero and out of array accesses.

Reported-by: Dale Curtis <dalecurtis@chromium.org>
Found-by: inferno@chromium.org
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
6 years agomatroska: Fix use after free
Dale Curtis [Thu, 10 Jan 2013 19:05:29 +0000 (11:05 -0800)]
matroska: Fix use after free

Signed-off-by: Dale Curtis <dalecurtis@chromium.org>
Signed-off-by: Luca Barbato <lu_zero@gentoo.org>
6 years agolavfi/vf_overlay: check that filter_frame does not return EAGAIN.
Nicolas George [Thu, 10 Jan 2013 18:44:45 +0000 (19:44 +0100)]
lavfi/vf_overlay: check that filter_frame does not return EAGAIN.

EAGAIN is used internally in the code; it currently does not make
sense as a return code from the next filter.

Should fix CID966655.

6 years agoswr: check that allocation of in/out_convert succeeded
Michael Niedermayer [Thu, 10 Jan 2013 19:26:28 +0000 (20:26 +0100)]
swr: check that allocation of in/out_convert succeeded

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
6 years agovp3: Fix double free in vp3_decode_end()
Ronald Bultje [Thu, 10 Jan 2013 19:02:57 +0000 (11:02 -0800)]
vp3: Fix double free in vp3_decode_end()

Signed-off-by: Dale Curtis <dalecurtis@chromium.org>
Signed-off-by: Luca Barbato <lu_zero@gentoo.org>
6 years agoswr: Use a temporary buffer for dither/Noise shaping when the input is read only
Michael Niedermayer [Thu, 10 Jan 2013 17:51:30 +0000 (18:51 +0100)]
swr: Use a temporary buffer for dither/Noise shaping when the input is read only

This avoids copying the input

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
6 years agoswr: mark noise data for noise shaping as const
Michael Niedermayer [Thu, 10 Jan 2013 17:07:32 +0000 (18:07 +0100)]
swr: mark noise data for noise shaping as const

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
6 years agoswr: add seperate in/out pointers to the noise shaping code
Michael Niedermayer [Thu, 10 Jan 2013 17:06:19 +0000 (18:06 +0100)]
swr: add seperate in/out pointers to the noise shaping code

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
6 years agoswr: rename dither_pos to noise_pos
Michael Niedermayer [Thu, 10 Jan 2013 17:01:26 +0000 (18:01 +0100)]
swr: rename dither_pos to noise_pos

THis more closely matches what the field represents

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
6 years agofate: Split fate-siff test into demuxer and VB video decoder test
Diego Biurrun [Sat, 1 Dec 2012 15:11:22 +0000 (16:11 +0100)]
fate: Split fate-siff test into demuxer and VB video decoder test

6 years agoidcin: fix memleak
Michael Niedermayer [Thu, 10 Jan 2013 16:26:03 +0000 (17:26 +0100)]
idcin: fix memleak

Found-by: valgrind
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
6 years agoMerge remote-tracking branch 'qatar/master'
Michael Niedermayer [Thu, 10 Jan 2013 12:07:19 +0000 (13:07 +0100)]
Merge remote-tracking branch 'qatar/master'

* qatar/master:
  rtpdec_vp8: Don't trim too much data from broken frames
  rtpdec_vp8: Simplify code by using an existing helper function

Merged-by: Michael Niedermayer <michaelni@gmx.at>
6 years agoDo not allow arbitrary packet size in aac decoder.
Carl Eugen Hoyos [Thu, 10 Jan 2013 12:00:19 +0000 (13:00 +0100)]
Do not allow arbitrary packet size in aac decoder.

Fixes a crash with a file containing a 400MB packet reported in bug 420.

6 years agoMerge commit 'ed79093222ceb42f0c3a39095a69af0b32be5450'
Michael Niedermayer [Thu, 10 Jan 2013 11:56:58 +0000 (12:56 +0100)]
Merge commit 'ed79093222ceb42f0c3a39095a69af0b32be5450'

* commit 'ed79093222ceb42f0c3a39095a69af0b32be5450':
  rtpdec: Add a terminating null byte at the end of the SDES/CNAME
  yuv4mpeg: do not use deprecated functions
  oggdec: fix faulty cleanup prototype
  idcin: return 0 from idcin_read_packet() on success.

Merged-by: Michael Niedermayer <michaelni@gmx.at>
6 years agoMerge commit '5d0450461ff729be5f531d333d29754155e406c5'
Michael Niedermayer [Thu, 10 Jan 2013 11:52:02 +0000 (12:52 +0100)]
Merge commit '5d0450461ff729be5f531d333d29754155e406c5'

* commit '5d0450461ff729be5f531d333d29754155e406c5':
  idcin: better error handling
  idcin: check for integer overflow when calling av_get_packet()

Conflicts:
libavformat/idcin.c

Merged-by: Michael Niedermayer <michaelni@gmx.at>
6 years agoMerge commit '7040e479a1530b2eda4b89a182d5eb50a77bd907'
Michael Niedermayer [Thu, 10 Jan 2013 11:45:42 +0000 (12:45 +0100)]
Merge commit '7040e479a1530b2eda4b89a182d5eb50a77bd907'

* commit '7040e479a1530b2eda4b89a182d5eb50a77bd907':
  idcin: allow seeking back to the first packet
  idcin: set AV_PKT_FLAG_KEY for video packets with a palette

Merged-by: Michael Niedermayer <michaelni@gmx.at>
6 years agoMerge commit 'ccc0ffb1ba3fc1adb05a9f56dfc26131e61db3fb'
Michael Niedermayer [Thu, 10 Jan 2013 11:40:38 +0000 (12:40 +0100)]
Merge commit 'ccc0ffb1ba3fc1adb05a9f56dfc26131e61db3fb'

* commit 'ccc0ffb1ba3fc1adb05a9f56dfc26131e61db3fb':
  idcin: set start_time and packet duration instead of manually tracking pts.
  idcin: set channel_layout

Merged-by: Michael Niedermayer <michaelni@gmx.at>
6 years agoMerge commit '12c2530b1d87fa94f81ea97df575b77c825e6f4f'
Michael Niedermayer [Thu, 10 Jan 2013 11:33:45 +0000 (12:33 +0100)]
Merge commit '12c2530b1d87fa94f81ea97df575b77c825e6f4f'

* commit '12c2530b1d87fa94f81ea97df575b77c825e6f4f':
  idcin: fix check for presence of an audio stream
  idcin: validate header parameters

Merged-by: Michael Niedermayer <michaelni@gmx.at>
6 years agoMerge commit 'f7bf72a4a1146a7583577c9bdc066767e1ba3c6a'
Michael Niedermayer [Thu, 10 Jan 2013 11:26:28 +0000 (12:26 +0100)]
Merge commit 'f7bf72a4a1146a7583577c9bdc066767e1ba3c6a'

* commit 'f7bf72a4a1146a7583577c9bdc066767e1ba3c6a':
  idcinvideo: correctly set AVFrame defaults
  yadif: Port inline assembly to yasm
  au: remove unnecessary casts
  au: return AVERROR codes instead of -1

Conflicts:
libavcodec/idcinvideo.c
libavfilter/x86/yadif_template.c
libavformat/au.c

Merged-by: Michael Niedermayer <michaelni@gmx.at>
6 years agoMerge commit 'fd9147f11456a7e39a998d7270684922a2a46e6d'
Michael Niedermayer [Thu, 10 Jan 2013 11:15:21 +0000 (12:15 +0100)]
Merge commit 'fd9147f11456a7e39a998d7270684922a2a46e6d'

* commit 'fd9147f11456a7e39a998d7270684922a2a46e6d':
  au: cosmetics: pretty-print and remove pointless comments

Conflicts:
libavformat/au.c

Merged-by: Michael Niedermayer <michaelni@gmx.at>
6 years agoMerge commit 'c88d245c9866e48cb8a238b7564964c1fcf3315f'
Michael Niedermayer [Thu, 10 Jan 2013 11:02:58 +0000 (12:02 +0100)]
Merge commit 'c88d245c9866e48cb8a238b7564964c1fcf3315f'

* commit 'c88d245c9866e48cb8a238b7564964c1fcf3315f':
  au: use ff_raw_write_packet()
  au: set stream start time and packet durations

Conflicts:
libavformat/au.c

Merged-by: Michael Niedermayer <michaelni@gmx.at>
6 years agoMerge commit 'af68a2baae6761044cbed95575e8bcfebf55c6f1'
Michael Niedermayer [Thu, 10 Jan 2013 10:20:58 +0000 (11:20 +0100)]
Merge commit 'af68a2baae6761044cbed95575e8bcfebf55c6f1'

* commit 'af68a2baae6761044cbed95575e8bcfebf55c6f1':
  au: use %u when printing id and channels since they are unsigned
  au: validate sample rate

Merged-by: Michael Niedermayer <michaelni@gmx.at>
6 years agoMerge commit 'c837b38dd33a11c3810e988a60193a858eb4f58c'
Michael Niedermayer [Thu, 10 Jan 2013 10:12:08 +0000 (11:12 +0100)]
Merge commit 'c837b38dd33a11c3810e988a60193a858eb4f58c'

* commit 'c837b38dd33a11c3810e988a60193a858eb4f58c':
  au: move skipping of unused data to before parameter validation
  au: do not arbitrarily limit channel count

Conflicts:
libavformat/au.c

Merged-by: Michael Niedermayer <michaelni@gmx.at>
6 years agolavfi/yadif: fix shorthand/option mismatch
André Pankratz [Thu, 10 Jan 2013 09:37:49 +0000 (10:37 +0100)]
lavfi/yadif: fix shorthand/option mismatch

Fix trac ticket #2128.

Signed-off-by: Stefano Sabatini <stefasab@gmail.com>
6 years agoMerge commit '2613de88051818abafccb98646394341887acb3a'
Michael Niedermayer [Thu, 10 Jan 2013 09:42:34 +0000 (10:42 +0100)]
Merge commit '2613de88051818abafccb98646394341887acb3a'

We dont use au_read_packet() anymore and block_align is already set.
Thus nothing had to be merged from these.

* commit '2613de88051818abafccb98646394341887acb3a':
  au: do not set pkt->size directly
  au: set block_align and use it in au_read_packet()

Conflicts:
libavformat/au.c

Merged-by: Michael Niedermayer <michaelni@gmx.at>
6 years agoMerge commit '9a7b56883d1333cdfcdf0fa7584a333841b86114'
Michael Niedermayer [Thu, 10 Jan 2013 09:18:35 +0000 (10:18 +0100)]
Merge commit '9a7b56883d1333cdfcdf0fa7584a333841b86114'

* commit '9a7b56883d1333cdfcdf0fa7584a333841b86114':
  au: set bit rate
  au: validate bits-per-sample separately from codec tag
  rtpdec_vp8: Mark broken packets with AV_PKT_FLAG_CORRUPT

Conflicts:
libavformat/au.c

Merged-by: Michael Niedermayer <michaelni@gmx.at>
6 years agoFix compilation with --disable-everything.
Carl Eugen Hoyos [Thu, 10 Jan 2013 09:04:46 +0000 (10:04 +0100)]
Fix compilation with --disable-everything.

6 years agortpdec_vp8: Don't trim too much data from broken frames
Martin Storsjö [Wed, 9 Jan 2013 12:25:59 +0000 (14:25 +0200)]
rtpdec_vp8: Don't trim too much data from broken frames

Previously, for broken frames, we only returned the first partition
of the frame (we would append all the received packets to the packet
buffer, then set pkt->size to the size of the first partition, since
the rest of the frame could have lost data inbetween) - now instead
return the full buffered data we have, but don't append anything more
to the buffer after the lost packet discontinuity. Decoding the
truncated packet should hopefully get better quality than trimming out
everything after the first partition.

Signed-off-by: Martin Storsjö <martin@martin.st>
6 years agortpdec_vp8: Simplify code by using an existing helper function
Martin Storsjö [Wed, 9 Jan 2013 12:25:22 +0000 (14:25 +0200)]
rtpdec_vp8: Simplify code by using an existing helper function

Signed-off-by: Martin Storsjö <martin@martin.st>
6 years agortpdec: Add a terminating null byte at the end of the SDES/CNAME
Martin Storsjö [Wed, 9 Jan 2013 17:41:21 +0000 (19:41 +0200)]
rtpdec: Add a terminating null byte at the end of the SDES/CNAME

This is required by RFC 3550 (section 6.5):

   The list of items in each chunk MUST be terminated by one or more
   null octets, the first of which is interpreted as an item type of
   zero to denote the end of the list.

This was implicitly added as padding before, unless the host name
length matched up so no padding was added.

This makes wireshark parse the packets properly if other RTCP items
are appended to the same packet.

Signed-off-by: Martin Storsjö <martin@martin.st>
6 years agowmalosslessdec: make arrays indexed by ch large enough for maximum number of channels
Michael Niedermayer [Thu, 10 Jan 2013 03:50:33 +0000 (04:50 +0100)]
wmalosslessdec: make arrays indexed by ch large enough for maximum number of channels

Fixes out of array accesses

Found-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
6 years agotarga: use checked bytestream read
Michael Niedermayer [Thu, 10 Jan 2013 03:37:45 +0000 (04:37 +0100)]
targa: use checked bytestream read

Fix out of array read

Found-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
6 years agoqdm2: fix out of stack array read.
Michael Niedermayer [Thu, 10 Jan 2013 03:23:14 +0000 (04:23 +0100)]
qdm2: fix out of stack array read.

The read value is not used when its outside the array.

Found-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
6 years agoswr: scale data down in noise shaping to avoid cliping
Michael Niedermayer [Thu, 10 Jan 2013 00:28:24 +0000 (01:28 +0100)]
swr: scale data down in noise shaping to avoid cliping

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
6 years agoswr: reorder the operations in the noise shaping code
Michael Niedermayer [Wed, 9 Jan 2013 23:27:04 +0000 (00:27 +0100)]
swr: reorder the operations in the noise shaping code

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
6 years agoswr: add noise_scale field to seperate it from the noise shaping scales
Michael Niedermayer [Wed, 9 Jan 2013 23:25:09 +0000 (00:25 +0100)]
swr: add noise_scale field to seperate it from the noise shaping scales

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
6 years agoswr: fix the noise sample type for noise shaping
Michael Niedermayer [Wed, 9 Jan 2013 22:20:24 +0000 (23:20 +0100)]
swr: fix the noise sample type for noise shaping

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
6 years agoswr: split swri_dither_init() out
Michael Niedermayer [Wed, 9 Jan 2013 21:46:32 +0000 (22:46 +0100)]
swr: split swri_dither_init() out

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
6 years agodoc: add noise shaping dithers
Michael Niedermayer [Wed, 9 Jan 2013 19:12:50 +0000 (20:12 +0100)]
doc: add noise shaping dithers

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
6 years agoAdd -movflags rtphint documentation.
Carl Eugen Hoyos [Wed, 9 Jan 2013 22:13:40 +0000 (23:13 +0100)]
Add -movflags rtphint documentation.

6 years agoyuv4mpeg: do not use deprecated functions
Luca Barbato [Wed, 9 Jan 2013 19:50:06 +0000 (20:50 +0100)]
yuv4mpeg: do not use deprecated functions

Use the libavutil replacement.

6 years agooggdec: fix faulty cleanup prototype
Luca Barbato [Wed, 9 Jan 2013 19:49:34 +0000 (20:49 +0100)]
oggdec: fix faulty cleanup prototype

6 years agoidcin: better error handling
Justin Ruggles [Wed, 1 Aug 2012 21:16:58 +0000 (17:16 -0400)]
idcin: better error handling

Add some additional checks for EOF and print error messages on an incomplete
header or packet.

FATE reference updated for id-cin-video due to the demuxer no longer
returning a partial video packet at EOF.

6 years agoidcin: return 0 from idcin_read_packet() on success.
Justin Ruggles [Wed, 1 Aug 2012 20:13:04 +0000 (16:13 -0400)]
idcin: return 0 from idcin_read_packet() on success.

This matches the AVInputFormat.read_packet() API.

6 years agoidcin: allow seeking back to the first packet
Justin Ruggles [Wed, 1 Aug 2012 21:14:39 +0000 (17:14 -0400)]
idcin: allow seeking back to the first packet

Also, do not allow seek-by-byte, as there is no way to find the next packet
boundary.

6 years agoidcin: set start_time and packet duration instead of manually tracking pts.
Justin Ruggles [Wed, 1 Aug 2012 20:06:23 +0000 (16:06 -0400)]
idcin: set start_time and packet duration instead of manually tracking pts.

Also, use 1 / sample_rate for audio stream time_base.

6 years agoidcin: fix check for presence of an audio stream
Justin Ruggles [Wed, 1 Aug 2012 19:57:31 +0000 (15:57 -0400)]
idcin: fix check for presence of an audio stream

6 years agoidcinvideo: correctly set AVFrame defaults
Justin Ruggles [Wed, 1 Aug 2012 19:46:08 +0000 (15:46 -0400)]
idcinvideo: correctly set AVFrame defaults

6 years agoidcin: check for integer overflow when calling av_get_packet()
Justin Ruggles [Wed, 1 Aug 2012 20:10:08 +0000 (16:10 -0400)]
idcin: check for integer overflow when calling av_get_packet()

chunk_size is unsigned 32-bit, but av_get_packet() takes a signed int as the
packet size.

6 years agoidcin: set AV_PKT_FLAG_KEY for video packets with a palette
Justin Ruggles [Wed, 1 Aug 2012 20:08:28 +0000 (16:08 -0400)]
idcin: set AV_PKT_FLAG_KEY for video packets with a palette

6 years agoidcin: set channel_layout
Justin Ruggles [Wed, 1 Aug 2012 19:59:12 +0000 (15:59 -0400)]
idcin: set channel_layout

6 years agoidcin: validate header parameters
Justin Ruggles [Wed, 1 Aug 2012 19:53:20 +0000 (15:53 -0400)]
idcin: validate header parameters

Avoids using unsupported parameters and signed integer overflows.

6 years agoswr: remove unused variable
Michael Niedermayer [Wed, 9 Jan 2013 17:41:40 +0000 (18:41 +0100)]
swr: remove unused variable

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
6 years agoswr: move dither related fields to their own context
Michael Niedermayer [Wed, 9 Jan 2013 17:41:12 +0000 (18:41 +0100)]
swr: move dither related fields to their own context

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
6 years agoyadif: Port inline assembly to yasm
Daniel Kang [Wed, 9 Jan 2013 15:34:46 +0000 (09:34 -0600)]
yadif: Port inline assembly to yasm

Signed-off-by: Luca Barbato <lu_zero@gentoo.org>
6 years agoswr: update copyright years of a few files iam working on
Michael Niedermayer [Wed, 9 Jan 2013 17:30:01 +0000 (18:30 +0100)]
swr: update copyright years of a few files iam working on

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
6 years agoswr: Implement Noise shaping dither
Michael Niedermayer [Wed, 9 Jan 2013 17:03:49 +0000 (18:03 +0100)]
swr: Implement Noise shaping dither

The following variants are implemented:
lipshitz noise shaping dither
shibata noise shaping dither
low shibata noise shaping dither
high shibata noise shaping dither
f-weighted noise shaping dither
modified-e-weighted noise shaping dither
improved-e-weighted noise shaping dither

Data tables taken from SOX

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
6 years agoau: cosmetics: pretty-print and remove pointless comments
Justin Ruggles [Sun, 23 Dec 2012 20:03:08 +0000 (15:03 -0500)]
au: cosmetics: pretty-print and remove pointless comments

6 years agoau: use ff_raw_write_packet()
Justin Ruggles [Sun, 23 Dec 2012 19:14:38 +0000 (14:14 -0500)]
au: use ff_raw_write_packet()

6 years agoau: use %u when printing id and channels since they are unsigned
Justin Ruggles [Sun, 23 Dec 2012 18:39:47 +0000 (13:39 -0500)]
au: use %u when printing id and channels since they are unsigned

6 years agoau: move skipping of unused data to before parameter validation
Justin Ruggles [Sun, 23 Dec 2012 18:33:33 +0000 (13:33 -0500)]
au: move skipping of unused data to before parameter validation

Also do not unnecessarily skip 0 bytes.

6 years agoau: do not set pkt->size directly
Justin Ruggles [Sun, 23 Dec 2012 18:21:27 +0000 (13:21 -0500)]
au: do not set pkt->size directly

It is already set by av_get_packet() even for partial reads.

6 years agoau: remove unnecessary casts
Justin Ruggles [Sun, 23 Dec 2012 20:09:37 +0000 (15:09 -0500)]
au: remove unnecessary casts

6 years agoau: set stream start time and packet durations
Justin Ruggles [Sun, 23 Dec 2012 19:12:28 +0000 (14:12 -0500)]
au: set stream start time and packet durations

6 years agoau: validate sample rate
Justin Ruggles [Sun, 23 Dec 2012 18:39:31 +0000 (13:39 -0500)]
au: validate sample rate

6 years agoau: do not arbitrarily limit channel count
Justin Ruggles [Sun, 23 Dec 2012 18:26:44 +0000 (13:26 -0500)]
au: do not arbitrarily limit channel count

Nothing in the AU specification sets a limit on channel count.
We only need to avoid an overflow in the packet size calculation.

6 years agoau: return AVERROR codes instead of -1
Justin Ruggles [Sun, 23 Dec 2012 20:06:46 +0000 (15:06 -0500)]
au: return AVERROR codes instead of -1

6 years agoau: set bit rate
Justin Ruggles [Sun, 23 Dec 2012 18:19:31 +0000 (13:19 -0500)]
au: set bit rate

6 years agoau: set block_align and use it in au_read_packet()
Justin Ruggles [Sun, 23 Dec 2012 18:20:59 +0000 (13:20 -0500)]
au: set block_align and use it in au_read_packet()

6 years agoau: validate bits-per-sample separately from codec tag
Justin Ruggles [Sun, 23 Dec 2012 18:17:05 +0000 (13:17 -0500)]
au: validate bits-per-sample separately from codec tag

6 years agofrmdec: tag 5 is AV_PIX_FMT_BGRA with reversed alpha (0=solid/opaque .. 255=transparent)
Peter Ross [Mon, 7 Jan 2013 11:08:39 +0000 (22:08 +1100)]
frmdec: tag 5 is AV_PIX_FMT_BGRA with reversed alpha (0=solid/opaque ..  255=transparent)

6 years agoMerge remote-tracking branch 'qatar/master'
Michael Niedermayer [Wed, 9 Jan 2013 11:30:14 +0000 (12:30 +0100)]
Merge remote-tracking branch 'qatar/master'

* qatar/master:
  xan: Convert to bytestream2
  oggenc: add a page_duration option and deprecate the pagesize option
  x86: lavr: add SSE2/AVX dither_int_to_float()

Conflicts:
libavcodec/xan.c
libavformat/oggenc.c

Merged-by: Michael Niedermayer <michaelni@gmx.at>
6 years agoMerge commit '1fb8f6a44f06e48386450fe0363aefc02583d24a'
Michael Niedermayer [Wed, 9 Jan 2013 11:13:58 +0000 (12:13 +0100)]
Merge commit '1fb8f6a44f06e48386450fe0363aefc02583d24a'

* commit '1fb8f6a44f06e48386450fe0363aefc02583d24a':
  x86: lavr: add SSE2 quantize() for dithering
  doc/APIchanges: fill in missing dates and hashes.
  rtpdec_vp8: Request a keyframe if RTP packets are lost

Conflicts:
doc/APIchanges

Merged-by: Michael Niedermayer <michaelni@gmx.at>
6 years agoMerge commit '86d9181cf41edc3382bf2481f95a2fb321058689'
Michael Niedermayer [Wed, 9 Jan 2013 10:48:14 +0000 (11:48 +0100)]
Merge commit '86d9181cf41edc3382bf2481f95a2fb321058689'

* commit '86d9181cf41edc3382bf2481f95a2fb321058689':
  rtpdec: Support sending RTCP feedback packets

Conflicts:
libavformat/version.h

Merged-by: Michael Niedermayer <michaelni@gmx.at>
6 years agoMerge commit '42805eda554a7fc44341282771531e7837ac72b7'
Michael Niedermayer [Wed, 9 Jan 2013 10:41:56 +0000 (11:41 +0100)]
Merge commit '42805eda554a7fc44341282771531e7837ac72b7'

* commit '42805eda554a7fc44341282771531e7837ac72b7':
  rtpdec: Store the dynamic payload handler in the rtpdec context

Merged-by: Michael Niedermayer <michaelni@gmx.at>
6 years agoMerge commit '9c80ed836a511293f4cc3a858060969d32f2b1ce'
Michael Niedermayer [Wed, 9 Jan 2013 10:35:46 +0000 (11:35 +0100)]
Merge commit '9c80ed836a511293f4cc3a858060969d32f2b1ce'

* commit '9c80ed836a511293f4cc3a858060969d32f2b1ce':
  rtpdec_vp8: Avoid a warning about a possibly unused variable
  rtpdec_vp8: Make sure the previous packet is returned

Merged-by: Michael Niedermayer <michaelni@gmx.at>
6 years agoMerge commit '92e354b655613b88c3c202a7e19e7037daed37eb'
Michael Niedermayer [Wed, 9 Jan 2013 10:26:31 +0000 (11:26 +0100)]
Merge commit '92e354b655613b88c3c202a7e19e7037daed37eb'

* commit '92e354b655613b88c3c202a7e19e7037daed37eb':
  rtpdec_vp8: Set the timestamp when returning a deferred packet
  hlsenc: Make the start_number option set the right variable

Conflicts:
libavformat/hlsenc.c

Merged-by: Michael Niedermayer <michaelni@gmx.at>
6 years agortpdec_vp8: Mark broken packets with AV_PKT_FLAG_CORRUPT
Martin Storsjö [Tue, 8 Jan 2013 21:21:15 +0000 (23:21 +0200)]
rtpdec_vp8: Mark broken packets with AV_PKT_FLAG_CORRUPT

This allows the caller to either include them (and get more packets
decoded, but possibly some nonperfect frames), or discard them (by
setting fflags=discardcorrupt).

Signed-off-by: Martin Storsjö <martin@martin.st>
6 years agoxan: Convert to bytestream2
Alexandra Khirnova [Tue, 8 Jan 2013 20:47:20 +0000 (21:47 +0100)]
xan: Convert to bytestream2

Signed-off-by: Diego Biurrun <diego@biurrun.de>
6 years agoswr: use SIMD for dithering
Michael Niedermayer [Wed, 9 Jan 2013 01:05:35 +0000 (02:05 +0100)]
swr: use SIMD for dithering

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
6 years agodirac: fix inverted check
Michael Niedermayer [Tue, 8 Jan 2013 23:43:31 +0000 (00:43 +0100)]
dirac: fix inverted check

Regression since: ea6da80
Fixes Ticket2123

I cannot reproduce any regressions by flipping the wrong condition
to how it should have been.

Thanks-to: ubitux
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
6 years agolavf/mux: do not pass a copy of the packet to write_packet().
Clément Bœsch [Tue, 8 Jan 2013 21:39:25 +0000 (22:39 +0100)]
lavf/mux: do not pass a copy of the packet to write_packet().

Sometimes the muxer modifies the packet, like for instance lavf/mp3enc
changing pkt->destruct in order to keep a copy. These changes must be
kept, even though the muxer behaviour is questionable. Regression since
0072116.

Fixes #2124.

6 years agooggenc: add a page_duration option and deprecate the pagesize option
Justin Ruggles [Sun, 30 Dec 2012 22:00:00 +0000 (17:00 -0500)]
oggenc: add a page_duration option and deprecate the pagesize option

This uses page duration instead of byte size to determine when to buffer
the page. Also, it tries to avoid continued pages by buffering the current
page if there are already packets in the page and adding the next packet
would require it to be continued on a new page. This can improve seeking
performance.

The default page duration is 1 second, which is much saner than filling
all page segments by default.

6 years agox86: lavr: add SSE2 quantize() for dithering
Justin Ruggles [Wed, 31 Oct 2012 19:40:12 +0000 (15:40 -0400)]
x86: lavr: add SSE2 quantize() for dithering

6 years agox86: lavr: add SSE2/AVX dither_int_to_float()
Justin Ruggles [Wed, 31 Oct 2012 19:40:12 +0000 (15:40 -0400)]
x86: lavr: add SSE2/AVX dither_int_to_float()

6 years agodoc/APIchanges: fill in missing dates and hashes.
Justin Ruggles [Tue, 8 Jan 2013 03:04:30 +0000 (22:04 -0500)]
doc/APIchanges: fill in missing dates and hashes.