ffmpeg.git
6 years agortmpproto: Fix assignments in if()
Michael Niedermayer [Sun, 13 Jan 2013 23:07:51 +0000 (00:07 +0100)]
rtmpproto: Fix assignments in if()

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
6 years agolavf/mux: Fix assignments in if()
Michael Niedermayer [Sun, 13 Jan 2013 23:07:26 +0000 (00:07 +0100)]
lavf/mux: Fix assignments in if()

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
6 years agovsrc_testsrc: Fix assignments in if()
Michael Niedermayer [Sun, 13 Jan 2013 23:07:02 +0000 (00:07 +0100)]
vsrc_testsrc: Fix assignments in if()

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
6 years agotiff: Fix assignments in if()
Michael Niedermayer [Sun, 13 Jan 2013 23:06:44 +0000 (00:06 +0100)]
tiff: Fix assignments in if()

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
6 years agosvq1enc: Fix assignments in if()
Michael Niedermayer [Sun, 13 Jan 2013 23:06:07 +0000 (00:06 +0100)]
svq1enc: Fix assignments in if()

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
6 years agora144enc: Fix assignments in if()
Michael Niedermayer [Sun, 13 Jan 2013 23:05:42 +0000 (00:05 +0100)]
ra144enc: Fix assignments in if()

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
6 years agonellymoserenc: Fix assignments in if()
Michael Niedermayer [Sun, 13 Jan 2013 23:05:30 +0000 (00:05 +0100)]
nellymoserenc: Fix assignments in if()

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
6 years agolibvorbisenc: Fix assignments in if()
Michael Niedermayer [Sun, 13 Jan 2013 23:04:59 +0000 (00:04 +0100)]
libvorbisenc: Fix assignments in if()

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
6 years agolibvo-aacenc: Fix assignments in if()
Michael Niedermayer [Sun, 13 Jan 2013 23:04:41 +0000 (00:04 +0100)]
libvo-aacenc: Fix assignments in if()

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
6 years agolibspeexenc: Fix assignments in if()
Michael Niedermayer [Sun, 13 Jan 2013 23:04:25 +0000 (00:04 +0100)]
libspeexenc: Fix assignments in if()

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
6 years agolibopencore-amr: Fix assignments in if()
Michael Niedermayer [Sun, 13 Jan 2013 23:04:13 +0000 (00:04 +0100)]
libopencore-amr: Fix assignments in if()

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
6 years agolibmp3lame: Fix assignments in if()
Michael Niedermayer [Sun, 13 Jan 2013 23:03:38 +0000 (00:03 +0100)]
libmp3lame: Fix assignments in if()

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
6 years agolibfdk-aacenc: Fix assignments in if()
Michael Niedermayer [Sun, 13 Jan 2013 23:03:23 +0000 (00:03 +0100)]
libfdk-aacenc: Fix assignments in if()

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
6 years agolibfaac: Fix assignments in if()
Michael Niedermayer [Sun, 13 Jan 2013 23:03:09 +0000 (00:03 +0100)]
libfaac: Fix assignments in if()

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
6 years agoaacenc: Fix assignments in if()
Michael Niedermayer [Sun, 13 Jan 2013 23:02:50 +0000 (00:02 +0100)]
aacenc: Fix assignments in if()

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
6 years agodoc/examples: fix assignments in if()
Michael Niedermayer [Sun, 13 Jan 2013 23:01:40 +0000 (00:01 +0100)]
doc/examples: fix assignments in if()

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
6 years agoh264: don t leave stale pointers in delayed_pic in flush_changes.
Michael Niedermayer [Mon, 14 Jan 2013 01:54:16 +0000 (02:54 +0100)]
h264: don t leave stale pointers in delayed_pic in flush_changes.

Fixes null pointer dereference & assertion failure

Found-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
6 years agoswr/dither: fix division by 0
Michael Niedermayer [Mon, 14 Jan 2013 00:06:48 +0000 (01:06 +0100)]
swr/dither: fix division by 0

Found-by: Daemon404
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
6 years agoh264: fix () placement
Michael Niedermayer [Sun, 13 Jan 2013 22:44:01 +0000 (23:44 +0100)]
h264: fix () placement

Fixes null pointer dereference

Found-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
6 years agoffplay: fix sws_flags
Michael Niedermayer [Mon, 31 Dec 2012 17:30:03 +0000 (18:30 +0100)]
ffplay: fix sws_flags

Fixes Ticket45

Reviewed-by: Marton Balint <cus@passwd.hu>
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
6 years agoswr: fix handling of timestamps that cause multiple drops or silence injections
Michael Niedermayer [Sun, 13 Jan 2013 17:39:06 +0000 (18:39 +0100)]
swr: fix handling of timestamps that cause multiple drops or silence injections

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
6 years agoswr: limit buffer size for silence injection
Michael Niedermayer [Sun, 13 Jan 2013 14:57:56 +0000 (15:57 +0100)]
swr: limit buffer size for silence injection

This reduces memory usage for unreasonable large silence injections

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
6 years agoswr: limit buffer size for discarding.
Michael Niedermayer [Sun, 13 Jan 2013 14:53:01 +0000 (15:53 +0100)]
swr: limit buffer size for discarding.

This prevents insane memory usage in case of insane input values.
Untested due to lack of a testcase that causes such insane allocation

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
6 years agoffplay: extend documentation for the -vf option
Stefano Sabatini [Sun, 13 Jan 2013 14:23:15 +0000 (15:23 +0100)]
ffplay: extend documentation for the -vf option

In particular, make it consistent with the ffmpeg docs.

6 years agoswr: move silence buffer to context to avoid per use malloc/free
Michael Niedermayer [Sun, 13 Jan 2013 14:26:04 +0000 (15:26 +0100)]
swr: move silence buffer to context to avoid per use malloc/free

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
6 years agoswr: move buffer used to discard sample to context
Michael Niedermayer [Sun, 13 Jan 2013 14:21:33 +0000 (15:21 +0100)]
swr: move buffer used to discard sample to context

This avoids the need to allocate & free to repeatly

Fixes Ticket2122

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
6 years agolavf: clarify/extend documentation for AVFormatContext::analyzeduration
Stefano Sabatini [Sat, 12 Jan 2013 15:16:36 +0000 (16:16 +0100)]
lavf: clarify/extend documentation for AVFormatContext::analyzeduration

"analyzeduration" is not used to detect the input duration, but to
specify the max probe data duration. Fix option description and related
doc entry accordingly.

6 years agolavf/utils: clarify/extend messages in avformat_find_stream_info()
Stefano Sabatini [Sat, 12 Jan 2013 15:14:53 +0000 (16:14 +0100)]
lavf/utils: clarify/extend messages in avformat_find_stream_info()

In particular, specify the unit of the shown values in case the max probe
size/duration is reached.

6 years agodoc/ffmpeg: extend documentation for the -filter options and -af/vf aliases
Stefano Sabatini [Fri, 11 Jan 2013 23:52:52 +0000 (00:52 +0100)]
doc/ffmpeg: extend documentation for the -filter options and -af/vf aliases

6 years agodoc/texipod: add rule to correctly interpret @ref{ANCHOR,XREF,SECTION_NAME,...}
Stefano Sabatini [Fri, 11 Jan 2013 23:53:42 +0000 (00:53 +0100)]
doc/texipod: add rule to correctly interpret @ref{ANCHOR,XREF,SECTION_NAME,...}

This allows to name an internal reference in the POD/MAN output.

6 years agolavfi/gradfun: support YUV440P
Paul B Mahol [Sun, 13 Jan 2013 11:06:45 +0000 (11:06 +0000)]
lavfi/gradfun: support YUV440P

Signed-off-by: Paul B Mahol <onemda@gmail.com>
6 years agoMerge remote-tracking branch 'qatar/master'
Michael Niedermayer [Sun, 13 Jan 2013 13:05:55 +0000 (14:05 +0100)]
Merge remote-tracking branch 'qatar/master'

* qatar/master:
  rtpdec: Send a valid "delay since SR" value in the RTCP RR packets

Merged-by: Michael Niedermayer <michaelni@gmx.at>
6 years agoMerge commit 'e568db40258d549777ac1c16971678e18a18f5f5'
Michael Niedermayer [Sun, 13 Jan 2013 13:00:08 +0000 (14:00 +0100)]
Merge commit 'e568db40258d549777ac1c16971678e18a18f5f5'

* commit 'e568db40258d549777ac1c16971678e18a18f5f5':
  rtpdec: Calculate and report packet reception jitter

Merged-by: Michael Niedermayer <michaelni@gmx.at>
6 years agoMerge commit 'abae27ed3acd0a7c54f11760c5be2d2653c4edf8'
Michael Niedermayer [Sun, 13 Jan 2013 12:54:32 +0000 (13:54 +0100)]
Merge commit 'abae27ed3acd0a7c54f11760c5be2d2653c4edf8'

* commit 'abae27ed3acd0a7c54f11760c5be2d2653c4edf8':
  rtpdec: Fix the calculation of expected number of packets
  fate: vp3: Fix fate-vp3-coeff-level64 test dependencies

Merged-by: Michael Niedermayer <michaelni@gmx.at>
6 years agoMerge commit '4d3b144c5ea824193019019d33740a1ae9e0bb69'
Michael Niedermayer [Sun, 13 Jan 2013 12:42:10 +0000 (13:42 +0100)]
Merge commit '4d3b144c5ea824193019019d33740a1ae9e0bb69'

* commit '4d3b144c5ea824193019019d33740a1ae9e0bb69':
  fate: cosmetics: Order some test entries

Conflicts:
tests/fate/lossless-video.mak
tests/fate/microsoft.mak

Merged-by: Michael Niedermayer <michaelni@gmx.at>
6 years agopthread: Do not use a half updated context as master for deallocation.
Michael Niedermayer [Sun, 13 Jan 2013 04:42:01 +0000 (05:42 +0100)]
pthread: Do not use a half updated context as master for deallocation.

Fixes assertion failure

Found-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
6 years agodvdsubenc: use unsigned shifts to avoid shifting into the sign bit
Michael Niedermayer [Sat, 12 Jan 2013 20:40:41 +0000 (21:40 +0100)]
dvdsubenc: use unsigned shifts to avoid shifting into the sign bit

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
6 years agodvdsubdec: use unsigned shifts to avoid shifting into the sign bit
Michael Niedermayer [Sat, 12 Jan 2013 20:38:19 +0000 (21:38 +0100)]
dvdsubdec: use unsigned shifts to avoid shifting into the sign bit

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
6 years agoswr: work with 4 noise shaping coeffs at a time
Michael Niedermayer [Sat, 12 Jan 2013 18:11:08 +0000 (19:11 +0100)]
swr: work with 4 noise shaping coeffs at a time

63->38 kcycles

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
6 years agoswr/noise_shaping_data: pad coeffs to multiple of 4 when they are 1 below
Michael Niedermayer [Sat, 12 Jan 2013 18:09:54 +0000 (19:09 +0100)]
swr/noise_shaping_data: pad coeffs to multiple of 4 when they are 1 below

This allows using code working with 4 at a time

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
6 years agortpdec: Send a valid "delay since SR" value in the RTCP RR packets
Martin Storsjö [Wed, 9 Jan 2013 16:56:17 +0000 (18:56 +0200)]
rtpdec: Send a valid "delay since SR" value in the RTCP RR packets

Previously, we always signalled a zero time since the last RTCP
SR, which is dubious.

The code also suggested that this would be the difference in
RTP NTP time units (32.32 fixed point), while it actually is
in in 1/65536 second units. (RFC 3550 section 6.4.1)

Signed-off-by: Martin Storsjö <martin@martin.st>
6 years agortpdec: Calculate and report packet reception jitter
Martin Storsjö [Thu, 10 Jan 2013 14:35:11 +0000 (16:35 +0200)]
rtpdec: Calculate and report packet reception jitter

This brings back some code that was added originally in 4a6cc061
but never was used, and was removed as unused in 4cc843fa. The
code is updated to actually work and is tested to return sane
values.

Signed-off-by: Martin Storsjö <martin@martin.st>
6 years agortpdec: Fix the calculation of expected number of packets
Martin Storsjö [Thu, 10 Jan 2013 14:40:12 +0000 (16:40 +0200)]
rtpdec: Fix the calculation of expected number of packets

The base_seq variable is set to first_seq - 1 (in
rtp_init_sequence), so no + 1 is needed here.

This avoids reporting 1 lost packet from the start.

Signed-off-by: Martin Storsjö <martin@martin.st>
6 years agodec/developer: Add Valgrind / Address Sanitizer to the patch checklist
Michael Niedermayer [Sat, 12 Jan 2013 15:27:55 +0000 (16:27 +0100)]
dec/developer: Add Valgrind / Address Sanitizer to the patch checklist

Reviewed-by: saste
Reviewed-by: Paul B Mahol <onemda@gmail.com>
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
6 years agoswr: use a local variable for ns_coeffs
Michael Niedermayer [Sat, 12 Jan 2013 16:34:21 +0000 (17:34 +0100)]
swr: use a local variable for ns_coeffs

maybe a very tiny bit faster

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
6 years agoswr: use local variable for ns_errors
Michael Niedermayer [Sat, 12 Jan 2013 16:27:35 +0000 (17:27 +0100)]
swr: use local variable for ns_errors

71 -> 63 kcycles

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
6 years agoswr: minor simplification for the noise shaping pos update
Michael Niedermayer [Sat, 12 Jan 2013 16:25:19 +0000 (17:25 +0100)]
swr: minor simplification for the noise shaping pos update

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
6 years agolavfi/aevalsrc: try to honor specified duration
Matthieu Bouron [Sat, 12 Jan 2013 13:32:03 +0000 (14:32 +0100)]
lavfi/aevalsrc: try to honor specified duration

If nb_samples divide sample_rate and if nb_samples allow it, aevalsrc
should generate the exact amount of samples according to duration.

Example:
aevalsrc=0::n=480:s=48000:d=5.21 should generate 250080 samples.

Signed-off-by: Stefano Sabatini <stefasab@gmail.com>
6 years agofate: cosmetics: Order some test entries
Diego Biurrun [Sat, 1 Dec 2012 17:54:30 +0000 (18:54 +0100)]
fate: cosmetics: Order some test entries

6 years agofate: vp3: Fix fate-vp3-coeff-level64 test dependencies
Diego Biurrun [Sat, 1 Dec 2012 18:31:25 +0000 (19:31 +0100)]
fate: vp3: Fix fate-vp3-coeff-level64 test dependencies

Also rename the test to reflect that the video track is Theora, not VP3.

6 years agofrmdec: do not abuse ff_codec_get_id()
Paul B Mahol [Tue, 8 Jan 2013 15:54:58 +0000 (15:54 +0000)]
frmdec: do not abuse ff_codec_get_id()

Signed-off-by: Paul B Mahol <onemda@gmail.com>
6 years agolavf: use avpriv_find_pix_fmt instead of ff_
Michael Niedermayer [Sat, 12 Jan 2013 13:08:42 +0000 (14:08 +0100)]
lavf: use avpriv_find_pix_fmt instead of ff_

Found-by: durandal_1707
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
6 years agolavc: ff_find_pix_fmt ->avpriv
Michael Niedermayer [Sat, 12 Jan 2013 13:06:30 +0000 (14:06 +0100)]
lavc: ff_find_pix_fmt ->avpriv

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

* qatar/master:
  Add version bump and APIchanges entry for Add AV_PIX_FMT_VDPAU.
  pixfmt: add picture format for VDPAU

Conflicts:
doc/APIchanges
libavutil/pixfmt.h
libavutil/version.h

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

* commit 'f61272f0efd80da437570aad2c40e00f9d3f4fe6':
  ratecontrol: K&R cosmetic formatting
  rtpdec: Remove a useless todo comment

Conflicts:
libavcodec/ratecontrol.c

Merged-by: Michael Niedermayer <michaelni@gmx.at>
6 years agoMerge commit '54cb096ee4558b3bfc28c2fcd6418ce82dc39fe1'
Michael Niedermayer [Sat, 12 Jan 2013 12:14:00 +0000 (13:14 +0100)]
Merge commit '54cb096ee4558b3bfc28c2fcd6418ce82dc39fe1'

* commit '54cb096ee4558b3bfc28c2fcd6418ce82dc39fe1':
  rtsp: Remove an outdated comment
  rtsp: Remove references to weirdly named variables in other files

Merged-by: Michael Niedermayer <michaelni@gmx.at>
6 years agoMerge commit 'c44784c9bb9d0ddf5d39d0dfa640816a57b8f457'
Michael Niedermayer [Sat, 12 Jan 2013 12:00:42 +0000 (13:00 +0100)]
Merge commit 'c44784c9bb9d0ddf5d39d0dfa640816a57b8f457'

* commit 'c44784c9bb9d0ddf5d39d0dfa640816a57b8f457':
  rtp: Rename a static variable to normal naming conventions
  rtp: Cosmetic cleanup

Merged-by: Michael Niedermayer <michaelni@gmx.at>
6 years agoAdd version bump and APIchanges entry for Add AV_PIX_FMT_VDPAU.
Diego Biurrun [Sat, 12 Jan 2013 11:21:33 +0000 (12:21 +0100)]
Add version bump and APIchanges entry for Add AV_PIX_FMT_VDPAU.

Also fix a lavu version typo in APIchanges.

6 years agoratecontrol: K&R cosmetic formatting
Luca Barbato [Sat, 12 Jan 2013 05:16:53 +0000 (06:16 +0100)]
ratecontrol: K&R cosmetic formatting

Signed-off-by: Diego Biurrun <diego@biurrun.de>
6 years agopixfmt: add picture format for VDPAU
Rémi Denis-Courmont [Fri, 11 Jan 2013 21:27:58 +0000 (23:27 +0200)]
pixfmt: add picture format for VDPAU

Signed-off-by: Diego Biurrun <diego@biurrun.de>
6 years agodoc/protocols: improve wording of a sentence in http docs
Stefano Sabatini [Sat, 12 Jan 2013 10:01:12 +0000 (11:01 +0100)]
doc/protocols: improve wording of a sentence in http docs

Suggested-By: Alexander Strasser
6 years agodoc/ffserver: remove painfully outdated "What do I need?" section
Stefano Sabatini [Fri, 11 Jan 2013 11:54:45 +0000 (12:54 +0100)]
doc/ffserver: remove painfully outdated "What do I need?" section

6 years agodoc/ffserver: remove paragraph in the introductory blurb
Stefano Sabatini [Sat, 12 Jan 2013 09:49:46 +0000 (10:49 +0100)]
doc/ffserver: remove paragraph in the introductory blurb

The paragraph is about what ffserver is not and where to look for other
information, but is pretty redundant and distracting, especially
considering the new organization of the documentation.

6 years agodoc/ffserver: rework introducing paragraphs of the "description" chapter
Stefano Sabatini [Fri, 11 Jan 2013 11:53:18 +0000 (12:53 +0100)]
doc/ffserver: rework introducing paragraphs of the "description" chapter

In particular, add some markup, fix empty line, and merge it with "How
does it work?" section.

6 years agodoc/protocols: document http protocol options
Stefano Sabatini [Fri, 11 Jan 2013 10:51:26 +0000 (11:51 +0100)]
doc/protocols: document http protocol options

6 years agolavf/http: fix/extend option descriptions
Stefano Sabatini [Fri, 11 Jan 2013 10:35:31 +0000 (11:35 +0100)]
lavf/http: fix/extend option descriptions

In particular, favor predicative form over nominal description of the set
parameter. This is more globally consistent.

6 years agompegvideo: dont leave stale pointers in next/last picture
Michael Niedermayer [Sat, 12 Jan 2013 03:45:21 +0000 (04:45 +0100)]
mpegvideo: dont leave stale pointers in next/last picture

Fixes out of array reads

Found-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
6 years agovc1dec: ensure cbpcy_vlc has been set before decoding a frame.
Michael Niedermayer [Sat, 12 Jan 2013 02:40:54 +0000 (03:40 +0100)]
vc1dec: ensure cbpcy_vlc has been set before decoding a frame.

Fixes null pointer dereference

Found-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
6 years agofate: try to fix dirac
Michael Niedermayer [Fri, 11 Jan 2013 22:44:04 +0000 (23:44 +0100)]
fate: try to fix dirac

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
6 years agoh264: reset first_field when current_picture_ptr is reset
Michael Niedermayer [Fri, 11 Jan 2013 22:12:27 +0000 (23:12 +0100)]
h264: reset first_field when current_picture_ptr is reset

Fixes NULL pointer dereference

Found-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
6 years agortpdec: Remove a useless todo comment
Martin Storsjö [Fri, 11 Jan 2013 13:07:51 +0000 (15:07 +0200)]
rtpdec: Remove a useless todo comment

The question can be answered: No, we do not know the initial sequence
number from the SDP. In certain cases, it can be known from the
RTP-Info response header in RTSP though. (In that case, we use it as
timestamp origin, but not for rtp receiver statistics.)

Signed-off-by: Martin Storsjö <martin@martin.st>
6 years agortsp: Remove an outdated comment
Martin Storsjö [Fri, 11 Jan 2013 12:53:58 +0000 (14:53 +0200)]
rtsp: Remove an outdated comment

It is unclear what the bug exactly was and if it ever was fixed,
and we don't even support decoding via faad any longer. The
comment has been present since d0deedcb in 2006.

Signed-off-by: Martin Storsjö <martin@martin.st>
6 years agortsp: Remove references to weirdly named variables in other files
Martin Storsjö [Fri, 11 Jan 2013 12:47:10 +0000 (14:47 +0200)]
rtsp: Remove references to weirdly named variables in other files

One of them is renamed now, but mentioning it by name serves
no purpose here.  The other table mentioned ceased to exist
under that name in 4934884a1 in 2006.

Signed-off-by: Martin Storsjö <martin@martin.st>
6 years agortp: Rename a static variable to normal naming conventions
Martin Storsjö [Fri, 11 Jan 2013 12:46:54 +0000 (14:46 +0200)]
rtp: Rename a static variable to normal naming conventions

Signed-off-by: Martin Storsjö <martin@martin.st>
6 years agortp: Cosmetic cleanup
Martin Storsjö [Fri, 11 Jan 2013 12:44:40 +0000 (14:44 +0200)]
rtp: Cosmetic cleanup

Remove leftover debug comments, fix brace placement and
add whitespace, remove unnecessary and weirdly placed braces.

Signed-off-by: Martin Storsjö <martin@martin.st>
6 years agofate: add dirac decoding test (main profile).
Clément Bœsch [Wed, 9 Jan 2013 00:00:24 +0000 (01:00 +0100)]
fate: add dirac decoding test (main profile).

6 years agomjpegdec: Fix out of array read in unescaping code
Michael Niedermayer [Fri, 11 Jan 2013 17:19:53 +0000 (18:19 +0100)]
mjpegdec: Fix out of array read in unescaping code

Found-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
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>