ffmpeg.git
7 years agoffprobe: reindent after previous commit
Stefano Sabatini [Wed, 26 Jun 2013 22:11:21 +0000 (00:11 +0200)]
ffprobe: reindent after previous commit

7 years agoffprobe: fix exit code with stream specifiers
Nicolas George [Wed, 26 Jun 2013 13:17:27 +0000 (15:17 +0200)]
ffprobe: fix exit code with stream specifiers

Without this fix, ffprobe would exit with a failure exit code if a stream
specifier is given that selects the last stream.

Signed-off-by: Nicolas George <nicolas.george@normalesup.org>
7 years agoffprobe: simplify branching logic in probe_file()
Stefano Sabatini [Wed, 26 Jun 2013 22:09:49 +0000 (00:09 +0200)]
ffprobe: simplify branching logic in probe_file()

7 years agoexamples/muxing: rename audio/video_pts to audio/video_time
Stefano Sabatini [Tue, 25 Jun 2013 19:17:05 +0000 (21:17 +0200)]
examples/muxing: rename audio/video_pts to audio/video_time

The new name is less confusing, since the variables represent times
rather than timestamps.

7 years agodoc/bitstream_filters: document the chomp filter
Stefano Sabatini [Wed, 26 Jun 2013 16:58:55 +0000 (18:58 +0200)]
doc/bitstream_filters: document the chomp filter

TODO: add some meaningful examples.

7 years agodoc/bitstream-filters.texi: add documentation for the aac_adtstoasc filter
Stefano Sabatini [Wed, 26 Jun 2013 16:07:17 +0000 (18:07 +0200)]
doc/bitstream-filters.texi: add documentation for the aac_adtstoasc filter

Based on the notes in libavcodec/aac_adtstoasc_bsf.c.

7 years agolavf/movenc: improve error feedback in case malformed AAC bitstream is detected
Stefano Sabatini [Wed, 26 Jun 2013 15:59:38 +0000 (17:59 +0200)]
lavf/movenc: improve error feedback in case malformed AAC bitstream is detected

Consistent with the FLV muxer.

7 years agolavf/mux: rename variable cortag -> tagbuf2 in init_muxer()
Stefano Sabatini [Wed, 26 Jun 2013 15:13:06 +0000 (17:13 +0200)]
lavf/mux: rename variable cortag -> tagbuf2 in init_muxer()

Possibly enhance readibility.

7 years agolavc/utils: improve feedback in case of invalid packet size
Stefano Sabatini [Wed, 26 Jun 2013 15:05:57 +0000 (17:05 +0200)]
lavc/utils: improve feedback in case of invalid packet size

7 years agoexamples/Makefile: disable -O2 optimizations
Stefano Sabatini [Wed, 26 Jun 2013 14:13:58 +0000 (16:13 +0200)]
examples/Makefile: disable -O2 optimizations

There is no much point in optimizing example code, and the -O2 flag is
annoying when debugging.

7 years agoexamples/muxing: remove useless instruction
Stefano Sabatini [Tue, 25 Jun 2013 22:03:15 +0000 (00:03 +0200)]
examples/muxing: remove useless instruction

Simpler and less confusing.

7 years agodoc/filters: Fix texi syntax
Jean Delvare [Wed, 26 Jun 2013 13:50:55 +0000 (15:50 +0200)]
doc/filters: Fix texi syntax

Commit f1efaf837117718e3b4c96336fe9b5f686b1fe30 used parentheses
instead of curly braces in texi syntax, resulting in warnings when
the documentation is generated. Fix that.

Signed-off-by: Jean Delvare <khali@linux-fr.org>
Cc: Michael Niedermayer <michaelni@gmx.at>
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
7 years agoswscale: Fix PAL8 input with alpha
Michael Niedermayer [Wed, 26 Jun 2013 13:07:13 +0000 (15:07 +0200)]
swscale: Fix PAL8 input with alpha

Fixes Ticket2158

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
7 years agoavfilter/src_movie: Fix handling of packet size for video
Michael Niedermayer [Wed, 26 Jun 2013 11:32:55 +0000 (13:32 +0200)]
avfilter/src_movie: Fix handling of packet size for video

See Ticket2556

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
7 years agolibavfilter/src_movie: fix which packet is reset
Michael Niedermayer [Wed, 26 Jun 2013 11:06:11 +0000 (13:06 +0200)]
libavfilter/src_movie: fix which packet is reset

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
7 years agoRequire pthreads for compilation with OpenCL support.
Carl Eugen Hoyos [Wed, 26 Jun 2013 07:42:47 +0000 (09:42 +0200)]
Require pthreads for compilation with OpenCL support.

Fixes a part of ticket #2422.

Reviewed-by: James Almer
7 years agoUse AV_RN32 for an unaligned read in the mxg demuxer.
Carl Eugen Hoyos [Wed, 26 Jun 2013 07:33:44 +0000 (09:33 +0200)]
Use AV_RN32 for an unaligned read in the mxg demuxer.

Fixes ticket #2707.

7 years agolavf: silence max_analyze_duration warning
wm4 [Tue, 25 Jun 2013 23:17:27 +0000 (01:17 +0200)]
lavf: silence max_analyze_duration warning

This is part of normal operation with some formats. A warning should
indicate that something is wrong, and the documentation for AV_LOG_WARNING
says: "Something somehow does not look correct."

Since this message is most likely useful for debugging only, raise the
log level accordingly.

Plus-one-by: Stefano Sabatini <stefasab@gmail.com>
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
7 years agoavcodec/cllc: Fix clobbered ff_get_buffer() change
Michael Niedermayer [Tue, 25 Jun 2013 23:16:09 +0000 (01:16 +0200)]
avcodec/cllc: Fix clobbered ff_get_buffer() change

Issue-since: 9328ae484338b70a7f2dbcd420bbbac499df76cc

Found-by: Daemon404
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
7 years agovf_drawbox: give all v_log() a context
Michael Niedermayer [Tue, 25 Jun 2013 22:53:32 +0000 (00:53 +0200)]
vf_drawbox: give all v_log() a context

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
7 years agovf_drawbox: avoid declaration in for() arguments
Michael Niedermayer [Tue, 25 Jun 2013 22:52:16 +0000 (00:52 +0200)]
vf_drawbox: avoid declaration in for() arguments

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
7 years agoMerge branch 'drawbox_exprs' of https://github.com/mjmvisser/FFmpeg
Michael Niedermayer [Tue, 25 Jun 2013 22:33:24 +0000 (00:33 +0200)]
Merge branch 'drawbox_exprs' of https://github.com/mjmvisser/FFmpeg

* 'drawbox_exprs' of https://github.com/mjmvisser/FFmpeg:
  enabled expressions on x, y, w, h and t parameters for drawgrid and drawbox, added examples

Reviewed-by: Andrey Utkin
Merged-by: Michael Niedermayer <michaelni@gmx.at>
7 years agoxa: abort if number of channels or sample rate is 0
Paul B Mahol [Tue, 25 Jun 2013 22:24:55 +0000 (22:24 +0000)]
xa: abort if number of channels or sample rate is 0

Fixes #2711.

Signed-off-by: Paul B Mahol <onemda@gmail.com>
7 years agolxfdec: remove wrong and unneeded check
Luca Barbato [Tue, 25 Jun 2013 19:13:06 +0000 (19:13 +0000)]
lxfdec: remove wrong and unneeded check

Signed-off-by: Paul B Mahol <onemda@gmail.com>
7 years agoexamples/muxing: vertically align
Stefano Sabatini [Tue, 25 Jun 2013 19:09:03 +0000 (21:09 +0200)]
examples/muxing: vertically align

7 years agolavc/pngdec: return meaningful error codes
Stefano Sabatini [Tue, 25 Jun 2013 08:02:22 +0000 (10:02 +0200)]
lavc/pngdec: return meaningful error codes

7 years agoenabled expressions on x, y, w, h and t parameters for drawgrid and drawbox, added...
Mark Visser [Tue, 18 Jun 2013 14:30:26 +0000 (10:30 -0400)]
enabled expressions on x, y, w, h and t parameters for drawgrid and drawbox, added examples

7 years agolavfi/movie: free packet on decoder error
Michael Niedermayer [Tue, 25 Jun 2013 01:11:58 +0000 (03:11 +0200)]
lavfi/movie: free packet on decoder error

Prevents infinite loop, see Ticket2556

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
7 years agoMerge remote-tracking branch 'qatar/master'
Michael Niedermayer [Tue, 25 Jun 2013 09:34:38 +0000 (11:34 +0200)]
Merge remote-tracking branch 'qatar/master'

* qatar/master:
  configure: Do not omit frame pointers for msvc/icl debug builds

Merged-by: Michael Niedermayer <michaelni@gmx.at>
7 years agoMerge commit '9f4a16c52ea8f2383244587ea4cb534fe7f6da49'
Michael Niedermayer [Tue, 25 Jun 2013 09:34:08 +0000 (11:34 +0200)]
Merge commit '9f4a16c52ea8f2383244587ea4cb534fe7f6da49'

* commit '9f4a16c52ea8f2383244587ea4cb534fe7f6da49':
  configure: Do not explicitly set Oy for msvc/icl

Merged-by: Michael Niedermayer <michaelni@gmx.at>
7 years agoMerge commit 'b6507930ac1898aed62ab0b56afc7d6734ad830b'
Michael Niedermayer [Tue, 25 Jun 2013 09:26:59 +0000 (11:26 +0200)]
Merge commit 'b6507930ac1898aed62ab0b56afc7d6734ad830b'

* commit 'b6507930ac1898aed62ab0b56afc7d6734ad830b':
  fate: Add Canopus Lossless YUY2 test

Conflicts:
tests/fate/lossless-video.mak
tests/ref/fate/cllc-yuy2-noblock

No change as the change is already in master

Merged-by: Michael Niedermayer <michaelni@gmx.at>
7 years agofate: Add Canopus Lossless YUY2 test
Derek Buitenhuis [Mon, 24 Jun 2013 22:38:54 +0000 (18:38 -0400)]
fate: Add Canopus Lossless YUY2 test

Signed-off-by: Derek Buitenhuis <derek.buitenhuis@gmail.com>
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
7 years agoMerge commit 'd9c89ef86b9400e50c2486f9406fad15c85bab22'
Michael Niedermayer [Tue, 25 Jun 2013 08:51:19 +0000 (10:51 +0200)]
Merge commit 'd9c89ef86b9400e50c2486f9406fad15c85bab22'

* commit 'd9c89ef86b9400e50c2486f9406fad15c85bab22':
  cllc: Use outbuf in RGB and ARGB functions
  cllc: Implement YUV support

Conflicts:
libavcodec/cllc.c

Merged-by: Michael Niedermayer <michaelni@gmx.at>
7 years agoMerge commit 'b0ce601c160c87349d093d7e542b5c752754f598'
Michael Niedermayer [Tue, 25 Jun 2013 08:46:52 +0000 (10:46 +0200)]
Merge commit 'b0ce601c160c87349d093d7e542b5c752754f598'

* commit 'b0ce601c160c87349d093d7e542b5c752754f598':
  doc/platform: Add info about ICL

Conflicts:
doc/platform.texi

Merged-by: Michael Niedermayer <michaelni@gmx.at>
7 years agoyuv4mpeg: correctly handle chroma for odd luma sizes.
Ronald S. Bultje [Mon, 24 Jun 2013 23:13:58 +0000 (19:13 -0400)]
yuv4mpeg: correctly handle chroma for odd luma sizes.

Signed-off-by: Derek Buitenhuis <derek.buitenhuis@gmail.com>
7 years agoconfigure: Do not omit frame pointers for msvc/icl debug builds
Alex Smith [Mon, 24 Jun 2013 21:10:12 +0000 (21:10 +0000)]
configure: Do not omit frame pointers for msvc/icl debug builds

Because O1 or O2 are required to build libav with msvc/icl, this must be
explicitly set instead of just omitting Oy.

Signed-off-by: Derek Buitenhuis <derek.buitenhuis@gmail.com>
7 years agoconfigure: Do not explicitly set Oy for msvc/icl
Alex Smith [Mon, 24 Jun 2013 21:10:11 +0000 (21:10 +0000)]
configure: Do not explicitly set Oy for msvc/icl

It is implied by O1 or O2, both of which are required to build libav
with msvc/icl.  Silences warnings when targeting x64 with icl.

Signed-off-by: Derek Buitenhuis <derek.buitenhuis@gmail.com>
7 years agofate: Add Canopus Lossless YUY2 test
Derek Buitenhuis [Mon, 24 Jun 2013 22:26:08 +0000 (18:26 -0400)]
fate: Add Canopus Lossless YUY2 test

Signed-off-by: Derek Buitenhuis <derek.buitenhuis@gmail.com>
7 years agolavf/webvttdec: use private option to specify WebVTT kind
Matthew Heaney [Mon, 24 Jun 2013 18:20:32 +0000 (11:20 -0700)]
lavf/webvttdec: use private option to specify WebVTT kind

WebVTT subtitle tracks have four kinds. Certain downstream muxers
(such as for WebM) need to know which WebVTT kind this is, in order to
specify the codec id of the output track.

A new private input option, "-kind", has been added to the WebVTT
demuxer.  It accepts as a value any of "subtitles" (the default),
"captions", "descriptions", and "metadata".  The kind option value is
used to assign a value to the stream disposition flag, to which four
new values have been added, corresponding the four WebVTT kinds.

Signed-off-by: Matthew Heaney <matthewjheaney@google.com>
Signed-off-by: Clément Bœsch <ubitux@gmail.com>
7 years agolavf: add AV_DISPOSITION flags for WebVTT text track kinds
Matthew Heaney [Mon, 24 Jun 2013 18:18:05 +0000 (11:18 -0700)]
lavf: add AV_DISPOSITION flags for WebVTT text track kinds

There are 4 separate WebVTT text track kinds: subtitles (the default
if not otherwise specified), captions, descriptions, and metadata.
The WebM muxer needs to know which WebVTT text track kind this is, in
order to synthesize the correct track type and codec id.

To allow a demuxer to indicate the text track kind of the input, a new
set of AV_DISPOSITION flag values has been added, corresponding to
each of the non-default text track kind values.

7 years agocllc: Use outbuf in RGB and ARGB functions
Derek Buitenhuis [Mon, 24 Jun 2013 18:12:16 +0000 (14:12 -0400)]
cllc: Use outbuf in RGB and ARGB functions

Signed-off-by: Derek Buitenhuis <derek.buitenhuis@gmail.com>
7 years agocllc: Implement YUV support
Derek Buitenhuis [Sun, 23 Jun 2013 23:29:38 +0000 (19:29 -0400)]
cllc: Implement YUV support

Fixes ticket #1910.

Signed-off-by: Derek Buitenhuis <derek.buitenhuis@gmail.com>
7 years agoavfilter/vsrc_testsrc: fix artifacts with odd height
Michael Niedermayer [Mon, 24 Jun 2013 21:21:17 +0000 (23:21 +0200)]
avfilter/vsrc_testsrc: fix artifacts with odd height

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
7 years agocllc: Use outbuf in RGB and ARGB functions
Derek Buitenhuis [Mon, 24 Jun 2013 18:12:16 +0000 (14:12 -0400)]
cllc: Use outbuf in RGB and ARGB functions

Signed-off-by: Derek Buitenhuis <derek.buitenhuis@gmail.com>
7 years agocllc: Implement YUV support
Derek Buitenhuis [Sun, 23 Jun 2013 23:29:38 +0000 (19:29 -0400)]
cllc: Implement YUV support

Signed-off-by: Derek Buitenhuis <derek.buitenhuis@gmail.com>
7 years agodoc/platform: Add info about ICL
Derek Buitenhuis [Sun, 23 Jun 2013 23:49:28 +0000 (19:49 -0400)]
doc/platform: Add info about ICL

Signed-off-by: Derek Buitenhuis <derek.buitenhuis@gmail.com>
7 years agoh264: Fix null pointer dereference with disabled error concealment
Michael Niedermayer [Mon, 24 Jun 2013 14:05:19 +0000 (16:05 +0200)]
h264: Fix null pointer dereference with disabled error concealment

Fixes Ticket2551

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
7 years agoavformat/avio: Fix EOF handiling of ffurl_read_complete()
Michael Niedermayer [Mon, 24 Jun 2013 12:23:44 +0000 (14:23 +0200)]
avformat/avio: Fix EOF handiling of ffurl_read_complete()

Fixes Ticket2537

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
7 years agoMerge remote-tracking branch 'qatar/master'
Michael Niedermayer [Mon, 24 Jun 2013 09:42:42 +0000 (11:42 +0200)]
Merge remote-tracking branch 'qatar/master'

* qatar/master:
  lavf: don't abort if both encoder and muxer aspect ratios are not set

Conflicts:
libavformat/mux.c

Merged-by: Michael Niedermayer <michaelni@gmx.at>
7 years agoMerge commit 'c3e58f8fb75d8467161a65b85eb88281547ebab1'
Michael Niedermayer [Mon, 24 Jun 2013 09:11:27 +0000 (11:11 +0200)]
Merge commit 'c3e58f8fb75d8467161a65b85eb88281547ebab1'

* commit 'c3e58f8fb75d8467161a65b85eb88281547ebab1':
  matroskaenc: restore compatibility with non referenced AVPacket

Merged-by: Michael Niedermayer <michaelni@gmx.at>
7 years agoMerge commit '95d52464542f532061290192518d5fe1c1930e8d'
Michael Niedermayer [Mon, 24 Jun 2013 08:57:04 +0000 (10:57 +0200)]
Merge commit '95d52464542f532061290192518d5fe1c1930e8d'

* commit '95d52464542f532061290192518d5fe1c1930e8d':
  lavc: Add option to encode MPEG-2 AAC with libfdk-aac

Conflicts:
doc/APIchanges
libavcodec/version.h

Merged-by: Michael Niedermayer <michaelni@gmx.at>
7 years agoMerge commit 'ace87c19ed4c4882d7b9b3ce512c4c195e39a203'
Michael Niedermayer [Mon, 24 Jun 2013 08:40:15 +0000 (10:40 +0200)]
Merge commit 'ace87c19ed4c4882d7b9b3ce512c4c195e39a203'

* commit 'ace87c19ed4c4882d7b9b3ce512c4c195e39a203':
  configure: whitespace cosmetics

Conflicts:
configure

Merged-by: Michael Niedermayer <michaelni@gmx.at>
7 years agoMerge commit '6dc6598692da3b0ebda2d768681786343f26a4f4'
Michael Niedermayer [Mon, 24 Jun 2013 08:16:03 +0000 (10:16 +0200)]
Merge commit '6dc6598692da3b0ebda2d768681786343f26a4f4'

* commit '6dc6598692da3b0ebda2d768681786343f26a4f4':
  configure: Simplify an expression with enabled_all.

Merged-by: Michael Niedermayer <michaelni@gmx.at>
7 years agolavf: don't abort if both encoder and muxer aspect ratios are not set
Rafaël Carré [Sun, 23 Jun 2013 21:00:34 +0000 (23:00 +0200)]
lavf: don't abort if both encoder and muxer aspect ratios are not set

Signed-off-by: Anton Khirnov <anton@khirnov.net>
7 years agomatroskaenc: restore compatibility with non referenced AVPacket
Rafaël Carré [Sun, 23 Jun 2013 21:00:33 +0000 (23:00 +0200)]
matroskaenc: restore compatibility with non referenced AVPacket

Signed-off-by: Anton Khirnov <anton@khirnov.net>
7 years agolavc: Add option to encode MPEG-2 AAC with libfdk-aac
Kieran Kunhya [Sat, 22 Jun 2013 15:16:11 +0000 (10:16 -0500)]
lavc: Add option to encode MPEG-2 AAC with libfdk-aac

Signed-off-by: Anton Khirnov <anton@khirnov.net>
7 years agomsmpeg4: Fix ff_msmpeg4_pred_dc() so it works with lowres>0
Michael Niedermayer [Mon, 24 Jun 2013 01:44:30 +0000 (03:44 +0200)]
msmpeg4: Fix ff_msmpeg4_pred_dc() so it works with lowres>0

Fixes Ticket2532

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
7 years agocmdutils: dont change the log level for -report
Michael Niedermayer [Mon, 24 Jun 2013 00:58:28 +0000 (02:58 +0200)]
cmdutils: dont change the log level for -report

Fixes Ticket2476

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
7 years agosonic: use av_freep() as its safer than av_free()
Michael Niedermayer [Sun, 23 Jun 2013 17:45:39 +0000 (19:45 +0200)]
sonic: use av_freep() as its safer than av_free()

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
7 years agosonic: cleanup/simplify num_taps check
Michael Niedermayer [Sun, 23 Jun 2013 17:44:24 +0000 (19:44 +0200)]
sonic: cleanup/simplify num_taps check

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
7 years agosonic: replace divide() by ROUNDED_DIV()
Michael Niedermayer [Sun, 23 Jun 2013 17:42:24 +0000 (19:42 +0200)]
sonic: replace divide() by ROUNDED_DIV()

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
7 years agovp8: wait for prev_frame to parse segment_map before reading it.
Ronald S. Bultje [Sun, 23 Jun 2013 04:16:11 +0000 (21:16 -0700)]
vp8: wait for prev_frame to parse segment_map before reading it.

This fixes occasional failures of vp8-test-vector-010 with frame-level
multithreading enabled.

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
7 years agoMerge remote-tracking branch 'qatar/master'
Michael Niedermayer [Sun, 23 Jun 2013 11:45:39 +0000 (13:45 +0200)]
Merge remote-tracking branch 'qatar/master'

* qatar/master:
  configure: More msvc/icl combining

Merged-by: Michael Niedermayer <michaelni@gmx.at>
7 years agoMerge commit 'f963f701d90bd7bb03e39aab4e59bd137084e082'
Michael Niedermayer [Sun, 23 Jun 2013 11:21:21 +0000 (13:21 +0200)]
Merge commit 'f963f701d90bd7bb03e39aab4e59bd137084e082'

* commit 'f963f701d90bd7bb03e39aab4e59bd137084e082':
  ogg: relax demuxer conformance checks

Conflicts:
libavformat/oggdec.c

Merged-by: Michael Niedermayer <michaelni@gmx.at>
7 years agoMerge commit '42cc6cefd315c1556e2a52f7ebe2f766ec82b790'
Michael Niedermayer [Sun, 23 Jun 2013 10:56:48 +0000 (12:56 +0200)]
Merge commit '42cc6cefd315c1556e2a52f7ebe2f766ec82b790'

* commit '42cc6cefd315c1556e2a52f7ebe2f766ec82b790':
  avconv: report the error for codec open failure

Merged-by: Michael Niedermayer <michaelni@gmx.at>
7 years agoMerge commit '1e340af8d6a97cc013a2ad8ba77c77129625a34f'
Michael Niedermayer [Sun, 23 Jun 2013 10:45:15 +0000 (12:45 +0200)]
Merge commit '1e340af8d6a97cc013a2ad8ba77c77129625a34f'

* commit '1e340af8d6a97cc013a2ad8ba77c77129625a34f':
  avconv: drop additional strerror fallback

Merged-by: Michael Niedermayer <michaelni@gmx.at>
7 years agoconfigure: whitespace cosmetics
Diego Biurrun [Thu, 20 Jun 2013 11:42:21 +0000 (13:42 +0200)]
configure: whitespace cosmetics

7 years agoconfigure: Simplify an expression with enabled_all.
Diego Biurrun [Thu, 20 Jun 2013 11:42:20 +0000 (13:42 +0200)]
configure: Simplify an expression with enabled_all.

7 years agosonic: avoid float sqrt() for integer input & output
Michael Niedermayer [Sat, 22 Jun 2013 23:25:55 +0000 (01:25 +0200)]
sonic: avoid float sqrt() for integer input & output

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
7 years agosonic: simplify quant cliping
Michael Niedermayer [Sat, 22 Jun 2013 23:22:26 +0000 (01:22 +0200)]
sonic: simplify quant cliping

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
7 years agosonic: use av_calloc()
Michael Niedermayer [Sat, 22 Jun 2013 20:34:32 +0000 (22:34 +0200)]
sonic: use av_calloc()

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
7 years agoconfigure: More msvc/icl combining
Alex Smith [Wed, 19 Jun 2013 21:07:49 +0000 (21:07 +0000)]
configure: More msvc/icl combining

Signed-off-by: Derek Buitenhuis <derek.buitenhuis@gmail.com>
7 years agoavisynth: Make sure the filename passed to Avisynth is in the right code page
Oka Motofumi [Fri, 21 Jun 2013 13:57:03 +0000 (22:57 +0900)]
avisynth: Make sure the filename passed to Avisynth is in the right code page

Avisynth is a non-unicode application and cannot accept UTF-8
characters. Therefore, the input filename should be converted to
the code page that it expects.

Signed-off-by: Derek Buitenhuis <derek.buitenhuis@gmail.com>
7 years agoconfigure: Enable MinGW-w64's implementation of vsnprintf and pals
Derek Buitenhuis [Sat, 20 Apr 2013 21:54:51 +0000 (17:54 -0400)]
configure: Enable MinGW-w64's implementation of vsnprintf and pals

As of r5799 in MinGW-w64's trunk, which is he upcoming major version 3,
the POSIX-compliant vsnprintf implementation is disabled by default.
Enable it for this version. Keep using out own implementation for
prior versions, because it is broken in them.

Relevant Reference Thread: http://article.gmane.org/gmane.comp.gnu.mingw.w64.general/7133

Signed-off-by: Derek Buitenhuis <derek.buitenhuis@gmail.com>
7 years agosonic: replace literal numbers by sizeof()
Michael Niedermayer [Sat, 22 Jun 2013 20:04:00 +0000 (22:04 +0200)]
sonic: replace literal numbers by sizeof()

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
7 years agosonic: replace some float by integers to improve platform independance
Michael Niedermayer [Sat, 22 Jun 2013 19:58:13 +0000 (21:58 +0200)]
sonic: replace some float by integers to improve platform independance

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
7 years agosonic: Improve error codes
Michael Niedermayer [Sat, 22 Jun 2013 19:42:04 +0000 (21:42 +0200)]
sonic: Improve error codes

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
7 years agosonic: simplify shift_down()
Michael Niedermayer [Sat, 22 Jun 2013 19:34:11 +0000 (21:34 +0200)]
sonic: simplify shift_down()

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
7 years agoogg: relax demuxer conformance checks
Luca Barbato [Thu, 20 Jun 2013 09:36:04 +0000 (11:36 +0200)]
ogg: relax demuxer conformance checks

Some samples in the wild are missing headers that are expected by the
specification but in practice do not affect decoding.

7 years agoavconv: report the error for codec open failure
Luca Barbato [Wed, 19 Jun 2013 22:06:08 +0000 (00:06 +0200)]
avconv: report the error for codec open failure

External codec may have corner case reason to fail at init, better
report them instead having the user wonder.

7 years agoavconv: drop additional strerror fallback
Luca Barbato [Fri, 21 Jun 2013 10:47:01 +0000 (12:47 +0200)]
avconv: drop additional strerror fallback

strerror_r is called by av_strerror already.

7 years agoavutil/ripemd: adjust loop condition to silence CID1035716
Michael Niedermayer [Sat, 22 Jun 2013 12:50:37 +0000 (14:50 +0200)]
avutil/ripemd: adjust loop condition to silence CID1035716

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
7 years agosmvjpeg: use refcounted frames to avoid mem leaks
Hendrik Leppkes [Fri, 21 Jun 2013 19:56:18 +0000 (21:56 +0200)]
smvjpeg: use refcounted frames to avoid mem leaks

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
7 years agosmvjpeg: remove redundant frame init code
Hendrik Leppkes [Fri, 21 Jun 2013 17:51:39 +0000 (19:51 +0200)]
smvjpeg: remove redundant frame init code

avctx->coded_frame is not used for decoders anymore,
and av_frame_alloc does all the frame initialization required.

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
7 years agoswscale: fix filter alignment reduction without inline asm
Hendrik Leppkes [Fri, 21 Jun 2013 16:10:38 +0000 (18:10 +0200)]
swscale: fix filter alignment reduction without inline asm

Fixes scaling in MSVC/ICL, where inline asm is not present, but the
YASM scaling code is.

Reviewed-by: Derek Buitenhuis <derek.buitenhuis@gmail.com>
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
7 years agoh264: fix size of arrays in ff_h264_check_intra_pred_mode()
Michael Niedermayer [Fri, 21 Jun 2013 17:39:45 +0000 (19:39 +0200)]
h264: fix size of arrays in ff_h264_check_intra_pred_mode()

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
7 years agoh264/ff_h264_check_intra_pred_mode: fix input value check
Michael Niedermayer [Fri, 21 Jun 2013 17:51:30 +0000 (19:51 +0200)]
h264/ff_h264_check_intra_pred_mode: fix input value check

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
7 years agodoc/decoders,decoders: add various missing final dots
Stefano Sabatini [Fri, 21 Jun 2013 16:20:05 +0000 (18:20 +0200)]
doc/decoders,decoders: add various missing final dots

Enhance consistency.

7 years agodoc/decoders: Add libopencore-amrwb decoder doc
Timothy Gu [Fri, 21 Jun 2013 16:17:21 +0000 (18:17 +0200)]
doc/decoders: Add libopencore-amrwb decoder doc

Signed-off-by: Stefano Sabatini <stefasab@gmail.com>
7 years agodoc/protocols: apply very minor consistency fixes
Stefano Sabatini [Fri, 21 Jun 2013 15:40:54 +0000 (17:40 +0200)]
doc/protocols: apply very minor consistency fixes

7 years agodoc/protocols: document "srtp" protocol
Andrey Utkin [Wed, 19 Jun 2013 05:21:00 +0000 (08:21 +0300)]
doc/protocols: document "srtp" protocol

Signed-off-by: Stefano Sabatini <stefasab@gmail.com>
7 years agomathops/x86: work around inline asm miscompilation with GCC 4.8.1
Hendrik Leppkes [Sat, 15 Jun 2013 20:46:01 +0000 (22:46 +0200)]
mathops/x86: work around inline asm miscompilation with GCC 4.8.1

The volatile is not required here, and prevents a miscompilation with GCC
4.8.1 when building on x86 with --cpu=i686

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
7 years agodoc/decoders: Document libopencore-amrnb decoder
Timothy Gu [Fri, 21 Jun 2013 03:08:35 +0000 (20:08 -0700)]
doc/decoders: Document libopencore-amrnb decoder

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
7 years agoavdevice/x11grab: allocate just one Cursor
Michael Niedermayer [Thu, 20 Jun 2013 18:20:56 +0000 (20:20 +0200)]
avdevice/x11grab: allocate just one Cursor

Fixes resource leak and Ticket2450

Reviewed-by: Carl Eugen Hoyos <cehoyos@ag.or.at>
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
7 years agoMerge remote-tracking branch 'qatar/master'
Michael Niedermayer [Fri, 21 Jun 2013 08:49:42 +0000 (10:49 +0200)]
Merge remote-tracking branch 'qatar/master'

* qatar/master:
  lavc: free the padded last frame during audio encoding properly

See: 7fff3df6b277d4f1ebc504e950c9de56cdc14ddd

Merged-by: Michael Niedermayer <michaelni@gmx.at>
7 years agoMerge commit 'eeeb5c291d3f78eaade5b99c2614c7cab0e9be79'
Michael Niedermayer [Fri, 21 Jun 2013 08:41:41 +0000 (10:41 +0200)]
Merge commit 'eeeb5c291d3f78eaade5b99c2614c7cab0e9be79'

* commit 'eeeb5c291d3f78eaade5b99c2614c7cab0e9be79':
  vsrc_movie: do not free avoption variables in uninit()

Conflicts:
libavfilter/src_movie.c

Merged-by: Michael Niedermayer <michaelni@gmx.at>
7 years agodoc/decoders: Document libilbc decoder
Timothy Gu [Thu, 20 Jun 2013 23:33:49 +0000 (16:33 -0700)]
doc/decoders: Document libilbc decoder

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
7 years agoavcodec/utvideodec: Fix vlc len
Michael Niedermayer [Fri, 21 Jun 2013 01:22:02 +0000 (03:22 +0200)]
avcodec/utvideodec: Fix vlc len

Fixes regression / Ticket2661

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
7 years agobytestream2_init: assert that buf_size is valid
Michael Niedermayer [Thu, 20 Jun 2013 22:32:00 +0000 (00:32 +0200)]
bytestream2_init: assert that buf_size is valid

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
7 years agoavcodec/jpeg2000dec: check that tp_end is after the start
Michael Niedermayer [Thu, 20 Jun 2013 22:31:00 +0000 (00:31 +0200)]
avcodec/jpeg2000dec: check that tp_end is after the start

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