OSDN Git Service

android-x86/external-ffmpeg.git
12 years agomatroskadec: move lace_size check up so it catches all code pathes
Michael Niedermayer [Thu, 14 Jun 2012 23:28:40 +0000 (01:28 +0200)]
matroskadec: move lace_size check up so it catches all code pathes

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
12 years agomatroskadec: change assert to av_assert0()
Michael Niedermayer [Thu, 14 Jun 2012 23:27:56 +0000 (01:27 +0200)]
matroskadec: change assert to av_assert0()

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
12 years agoFix incorrect unsigned->signed conversion.
Dale Curtis [Thu, 14 Jun 2012 22:22:25 +0000 (15:22 -0700)]
Fix incorrect unsigned->signed conversion.

Signed-off-by: Dale Curtis <dalecurtis@chromium.org>
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
12 years agoMerge remote-tracking branch 'qatar/master'
Michael Niedermayer [Thu, 14 Jun 2012 22:09:39 +0000 (00:09 +0200)]
Merge remote-tracking branch 'qatar/master'

* qatar/master:
  Avoid C99 variable declarations within for statements.
  rtmp: Read and handle incoming packets while writing data
  doc: document THREAD_TYPE fate variable
  rtpdec: Don't require frames to start with a Mode A packet
  avconv: don't try to free threads that were not initialized.

Conflicts:
doc/fate.texi
ffplay.c
libavdevice/dv1394.h

Merged-by: Michael Niedermayer <michaelni@gmx.at>
12 years agoriff: use av_assert
Michael Niedermayer [Thu, 14 Jun 2012 21:52:56 +0000 (23:52 +0200)]
riff: use av_assert

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
12 years agorawdec: use av_assert()
Michael Niedermayer [Thu, 14 Jun 2012 21:52:40 +0000 (23:52 +0200)]
rawdec: use av_assert()

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
12 years agopcmdec: use av_assert()
Michael Niedermayer [Thu, 14 Jun 2012 21:52:23 +0000 (23:52 +0200)]
pcmdec: use av_assert()

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
12 years agoAvoid C99 variable declarations within for statements.
Diego Biurrun [Thu, 14 Jun 2012 08:19:06 +0000 (10:19 +0200)]
Avoid C99 variable declarations within for statements.

We generally do not declare variables within for statements and
there are compilers that choke on such constructs.

12 years agomjpegenc: support slice multithreading
Michael Niedermayer [Thu, 14 Jun 2012 14:26:15 +0000 (16:26 +0200)]
mjpegenc: support slice multithreading

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
12 years agortmp: Read and handle incoming packets while writing data
Samuel Pitoiset [Thu, 14 Jun 2012 13:28:40 +0000 (15:28 +0200)]
rtmp: Read and handle incoming packets while writing data

This makes sure all incoming packets are read and handled (and reacted
to) while sending an FLV stream over RTMP to a server. If there were
enough incoming data to fill the TCP buffers, this could potentially
make things block at unexpected places. For the upcoming RTMPT support,
we need to consume all incoming data before we can send the next
request.

Signed-off-by: Martin Storsjö <martin@martin.st>
12 years agodoc: document THREAD_TYPE fate variable
Luca Barbato [Thu, 14 Jun 2012 18:27:31 +0000 (20:27 +0200)]
doc: document THREAD_TYPE fate variable

12 years agortpdec: Don't require frames to start with a Mode A packet
Martin Storsjö [Thu, 14 Jun 2012 12:13:14 +0000 (15:13 +0300)]
rtpdec: Don't require frames to start with a Mode A packet

While there is no reason for starting a frame with anything else
than a Mode A packet, some senders seem to consistently use Mode B
packets for everything. This fixes depacketization of such streams.

Signed-off-by: Martin Storsjö <martin@martin.st>
12 years agopng_parser: use designated initializers
Paul B Mahol [Thu, 14 Jun 2012 17:04:00 +0000 (17:04 +0000)]
png_parser: use designated initializers

Signed-off-by: Paul B Mahol <onemda@gmail.com>
12 years agoAdd truehd decoder line.
Paul B Mahol [Thu, 14 Jun 2012 15:47:59 +0000 (15:47 +0000)]
Add truehd decoder line.

Signed-off-by: Paul B Mahol <onemda@gmail.com>
12 years agoflashsv2enc: align codec declarations
Paul B Mahol [Thu, 14 Jun 2012 15:19:43 +0000 (15:19 +0000)]
flashsv2enc: align codec declarations

While here constify enums for .pix_fmts.

Signed-off-by: Paul B Mahol <onemda@gmail.com>
12 years agog729dec: align codec declarations
Paul B Mahol [Thu, 14 Jun 2012 15:12:02 +0000 (15:12 +0000)]
g729dec: align codec declarations

Signed-off-by: Paul B Mahol <onemda@gmail.com>
12 years agomjpegdec: remove superfluous "mjpeg "
Paul B Mahol [Mon, 11 Jun 2012 12:32:47 +0000 (12:32 +0000)]
mjpegdec: remove superfluous "mjpeg "

Signed-off-by: Paul B Mahol <onemda@gmail.com>
12 years agobprint: implement vsnprintf for win32.
Nicolas George [Thu, 14 Jun 2012 11:54:00 +0000 (13:54 +0200)]
bprint: implement vsnprintf for win32.

12 years agoavconv: don't try to free threads that were not initialized.
Anton Khirnov [Wed, 13 Jun 2012 11:33:42 +0000 (13:33 +0200)]
avconv: don't try to free threads that were not initialized.

12 years agovqavideo: pass context to remaining av_(d)log
Paul B Mahol [Thu, 14 Jun 2012 02:38:35 +0000 (02:38 +0000)]
vqavideo: pass context to remaining av_(d)log

Finally get rid of all superfluous strings from av_log messages.

Signed-off-by: Paul B Mahol <onemda@gmail.com>
12 years agoasfdec: fix returned error codes
Martin T. H. Sandsmark [Thu, 14 Jun 2012 00:30:55 +0000 (02:30 +0200)]
asfdec: fix returned error codes

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
12 years agoconfigure: support Bitrig OS
David Hill [Wed, 13 Jun 2012 23:56:29 +0000 (19:56 -0400)]
configure: support Bitrig OS

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
12 years agoconfigure: fix SLIBNAME_WITH_MAJOR for openbsd (and bitrig in the next commit)
David Hill [Thu, 14 Jun 2012 00:20:47 +0000 (02:20 +0200)]
configure: fix SLIBNAME_WITH_MAJOR for openbsd (and bitrig in the next commit)

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
12 years agofate.texi: fix typo in title
Michael Niedermayer [Wed, 13 Jun 2012 23:38:59 +0000 (01:38 +0200)]
fate.texi: fix typo in title

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
12 years agoMerge remote-tracking branch 'qatar/master'
Michael Niedermayer [Wed, 13 Jun 2012 19:04:06 +0000 (21:04 +0200)]
Merge remote-tracking branch 'qatar/master'

* qatar/master:
  rtmp: Add a new option 'rtmp_buffer', for setting the client buffer time
  rtmp: Set the client buffer time to 3s instead of 0.26s
  rtmp: Handle server bandwidth packets
  rtmp: Display a verbose message when an unknown packet type is received
  lavfi/audio: use av_samples_copy() instead of custom code.
  configure: add all filters hardcoded into avconv to avconv_deps
  avfiltergraph: remove a redundant call to avfilter_get_by_name().
  lavfi: allow building without swscale.
  build: Do not delete tests/vsynth2 directory, which is no longer created.
  lavfi: replace AVFilterContext.input/output_count with nb_inputs/outputs
  lavfi: make AVFilterPad opaque after two major bumps.
  lavfi: add avfilter_pad_get_type() and avfilter_pad_get_name().
  lavfi: make avfilter_get_video_buffer() private on next bump.
  jack: update to new latency range API as the old one has been deprecated
  rtmp: Tokenize the AMF connection parameters manually instead of using strtok_r
  ppc: Rename H.264 optimization template file for consistency.
  lavfi: add channelsplit audio filter.
  golomb: check remaining bits during unary decoding in get_ur_golomb_jpegls()
  sws: fix planar RGB input conversions for 9/10/16 bpp.

Conflicts:
Changelog
configure
doc/APIchanges
ffmpeg.c
libavcodec/golomb.h
libavcodec/v210dec.h
libavfilter/Makefile
libavfilter/allfilters.c
libavfilter/asrc_anullsrc.c
libavfilter/audio.c
libavfilter/avfilter.c
libavfilter/avfilter.h
libavfilter/avfiltergraph.c
libavfilter/buffersrc.c
libavfilter/formats.c
libavfilter/version.h
libavfilter/vf_frei0r.c
libavfilter/vf_pad.c
libavfilter/vf_scale.c
libavfilter/video.h
libavfilter/vsrc_color.c
libavformat/rtmpproto.c
libswscale/input.c
tests/Makefile

Merged-by: Michael Niedermayer <michaelni@gmx.at>
12 years agonutenc: use av_assert
Michael Niedermayer [Wed, 13 Jun 2012 16:51:50 +0000 (18:51 +0200)]
nutenc: use av_assert

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
12 years agompegtsenc: use av_assert
Michael Niedermayer [Wed, 13 Jun 2012 16:51:38 +0000 (18:51 +0200)]
mpegtsenc: use av_assert

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
12 years agortmp: Add a new option 'rtmp_buffer', for setting the client buffer time
Samuel Pitoiset [Wed, 13 Jun 2012 13:02:03 +0000 (15:02 +0200)]
rtmp: Add a new option 'rtmp_buffer', for setting the client buffer time

Signed-off-by: Martin Storsjö <martin@martin.st>
12 years agortmp: Set the client buffer time to 3s instead of 0.26s
Samuel Pitoiset [Wed, 13 Jun 2012 12:48:02 +0000 (14:48 +0200)]
rtmp: Set the client buffer time to 3s instead of 0.26s

This factorizes existing code into a new function gen_buffer_time(),
which generates the client buffer time message and sends it to the
server.

Signed-off-by: Martin Storsjö <martin@martin.st>
12 years agortmp: Handle server bandwidth packets
Samuel Pitoiset [Wed, 13 Jun 2012 12:47:26 +0000 (14:47 +0200)]
rtmp: Handle server bandwidth packets

Signed-off-by: Martin Storsjö <martin@martin.st>
12 years agortmp: Display a verbose message when an unknown packet type is received
Samuel Pitoiset [Wed, 13 Jun 2012 12:45:57 +0000 (14:45 +0200)]
rtmp: Display a verbose message when an unknown packet type is received

Signed-off-by: Martin Storsjö <martin@martin.st>
12 years agolavfi/audio: use av_samples_copy() instead of custom code.
Anton Khirnov [Wed, 13 Jun 2012 08:52:35 +0000 (10:52 +0200)]
lavfi/audio: use av_samples_copy() instead of custom code.

Fixes a possible invalid write, found by Nicolas George.

12 years agoconfigure: add all filters hardcoded into avconv to avconv_deps
Anton Khirnov [Wed, 13 Jun 2012 08:17:28 +0000 (10:17 +0200)]
configure: add all filters hardcoded into avconv to avconv_deps

12 years agoavfiltergraph: remove a redundant call to avfilter_get_by_name().
Anton Khirnov [Wed, 13 Jun 2012 08:12:08 +0000 (10:12 +0200)]
avfiltergraph: remove a redundant call to avfilter_get_by_name().

12 years agolavfi: allow building without swscale.
Anton Khirnov [Wed, 13 Jun 2012 08:10:31 +0000 (10:10 +0200)]
lavfi: allow building without swscale.

12 years agoswr: fix 10l use of uninitialized data
Michael Niedermayer [Wed, 13 Jun 2012 11:43:42 +0000 (13:43 +0200)]
swr: fix 10l use of uninitialized data

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
12 years agobuild: Do not delete tests/vsynth2 directory, which is no longer created.
Diego Biurrun [Wed, 13 Jun 2012 10:17:06 +0000 (12:17 +0200)]
build: Do not delete tests/vsynth2 directory, which is no longer created.

12 years agodoc/encoders: update libvpxenc mappings
James Zern [Wed, 13 Jun 2012 04:39:25 +0000 (21:39 -0700)]
doc/encoders: update libvpxenc mappings

max-intra-rate / force_key_frames, forgotten in 695e85fcb7f062.

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
12 years agolavc: fix support of unofficial pix_fmt extensions of jpeg
Michael Niedermayer [Wed, 13 Jun 2012 00:54:57 +0000 (02:54 +0200)]
lavc: fix support of unofficial pix_fmt extensions of jpeg

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
12 years agolavfi: replace AVFilterContext.input/output_count with nb_inputs/outputs
Anton Khirnov [Tue, 12 Jun 2012 19:25:10 +0000 (21:25 +0200)]
lavfi: replace AVFilterContext.input/output_count with nb_inputs/outputs

This is more consistent with naming in the rest of Libav.

12 years agolavfi: make AVFilterPad opaque after two major bumps.
Anton Khirnov [Tue, 12 Jun 2012 18:12:42 +0000 (20:12 +0200)]
lavfi: make AVFilterPad opaque after two major bumps.

It will allow adding new fields to it without ABI breaks.

12 years agolavfi: add avfilter_pad_get_type() and avfilter_pad_get_name().
Anton Khirnov [Tue, 12 Jun 2012 17:57:57 +0000 (19:57 +0200)]
lavfi: add avfilter_pad_get_type() and avfilter_pad_get_name().

This will allow making AVFilterPad opaque for the calling apps, since
those are the only two fields that can be useful to the users.

12 years agolavfi: make avfilter_get_video_buffer() private on next bump.
Anton Khirnov [Wed, 30 May 2012 08:31:48 +0000 (10:31 +0200)]
lavfi: make avfilter_get_video_buffer() private on next bump.

They are only useful inside filters and we don't allow user filters for
now.

12 years agojack: update to new latency range API as the old one has been deprecated
Sean McGovern [Mon, 11 Jun 2012 22:22:31 +0000 (18:22 -0400)]
jack: update to new latency range API as the old one has been deprecated

Fixes Bugzilla #279.

Signed-off-by: Diego Biurrun <diego@biurrun.de>
12 years agolavfi: move definition of avfilter_copy_buf_props() from buffer.c to avcodec.c
Stefano Sabatini [Sun, 10 Jun 2012 15:42:47 +0000 (17:42 +0200)]
lavfi: move definition of avfilter_copy_buf_props() from buffer.c to avcodec.c

avcodec.c is where it is defined the lavc/lavfi interface code, so seems
a more adequate location (and doesn't force the inclusion of
libavcodec/avcodec.h where it is not required).

12 years agolavfi: change name of tracing functions and of the macro which enables them
Stefano Sabatini [Tue, 5 Jun 2012 09:24:07 +0000 (11:24 +0200)]
lavfi: change name of tracing functions and of the macro which enables them

The enabling symbol is renamed FF_AVFILTER_TRACE. Avoid conflicts with
the DEBUG macro, which may be defined for different purposes.

12 years agortmp: Tokenize the AMF connection parameters manually instead of using strtok_r
Martin Storsjö [Wed, 13 Jun 2012 07:51:22 +0000 (10:51 +0300)]
rtmp: Tokenize the AMF connection parameters manually instead of using strtok_r

This fixes builds on platforms without strtok_r (windows).

Signed-off-by: Martin Storsjö <martin@martin.st>
12 years agolibvorbis: split encoder from decoder
Paul B Mahol [Tue, 12 Jun 2012 21:37:58 +0000 (21:37 +0000)]
libvorbis: split encoder from decoder

Also fix build dependencies while here.

Reviewed-by: Michael Niedermayer <michaelni@gmx.at>
Signed-off-by: Paul B Mahol <onemda@gmail.com>
12 years agoppc: Rename H.264 optimization template file for consistency.
Diego Biurrun [Sun, 3 Jun 2012 15:20:30 +0000 (17:20 +0200)]
ppc: Rename H.264 optimization template file for consistency.

12 years agoarm/intmath: disable av_clip_uintp2_arm with config_small
Michael Niedermayer [Tue, 12 Jun 2012 21:04:16 +0000 (23:04 +0200)]
arm/intmath: disable av_clip_uintp2_arm with config_small

The code otherwise breaks compilation (gcc 4.5 tested but probably any compiler)

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
12 years agocosmetics: align more codecs declarations
Paul B Mahol [Tue, 12 Jun 2012 20:41:18 +0000 (20:41 +0000)]
cosmetics: align more codecs declarations

Signed-off-by: Paul B Mahol <onemda@gmail.com>
12 years agolavfi: add channelsplit audio filter.
Anton Khirnov [Wed, 30 May 2012 11:59:30 +0000 (13:59 +0200)]
lavfi: add channelsplit audio filter.

12 years agogolomb: check remaining bits during unary decoding in get_ur_golomb_jpegls()
Justin Ruggles [Mon, 11 Jun 2012 14:29:57 +0000 (10:29 -0400)]
golomb: check remaining bits during unary decoding in get_ur_golomb_jpegls()

Fixes infinite loop in FLAC decoding in case of a truncated bitstream due to
the safe bitstream reader returning 0's at the end.

Fixes Bug 310.

CC:libav-stable@libav.org

12 years agosws: fix planar RGB input conversions for 9/10/16 bpp.
Ronald S. Bultje [Sat, 12 May 2012 14:21:32 +0000 (07:21 -0700)]
sws: fix planar RGB input conversions for 9/10/16 bpp.

Fixes bug 282.

Signed-off-by: Anton Khirnov <anton@khirnov.net>
12 years agoavfilter: Log an error if avfilter fails to configure a link.
Alex Converse [Fri, 8 Jun 2012 19:02:04 +0000 (12:02 -0700)]
avfilter: Log an error if avfilter fails to configure a link.

12 years agoavconv: support only native pthreads.
Anton Khirnov [Mon, 11 Jun 2012 13:34:12 +0000 (15:34 +0200)]
avconv: support only native pthreads.

Our w32pthreads wrapper has various issues and is only supposed to be
used in libavcodec.

12 years agortmp: Fix a possible access to invalid memory location when the playpath is too short.
Samuel Pitoiset [Mon, 11 Jun 2012 12:21:32 +0000 (14:21 +0200)]
rtmp: Fix a possible access to invalid memory location when the playpath is too short.

Signed-off-by: Martin Storsjö <martin@martin.st>
12 years agolibvorbis: cosmetics: remove empty line at EOF
Paul B Mahol [Tue, 12 Jun 2012 03:19:08 +0000 (03:19 +0000)]
libvorbis: cosmetics: remove empty line at EOF

Signed-off-by: Paul B Mahol <onemda@gmail.com>
12 years agoMerge remote-tracking branch 'qatar/master'
Michael Niedermayer [Tue, 12 Jun 2012 18:44:57 +0000 (20:44 +0200)]
Merge remote-tracking branch 'qatar/master'

* qatar/master:
  avfilter: Log an error if avfilter fails to configure a link.
  avconv: support only native pthreads.
  rtmp: Fix a possible access to invalid memory location when the playpath is too short.

Conflicts:
ffmpeg.c

Merged-by: Michael Niedermayer <michaelni@gmx.at>
12 years agolavf: add a "warning" when discarding a oddly backward subtitle or data starttime
Michael Niedermayer [Tue, 12 Jun 2012 17:28:08 +0000 (19:28 +0200)]
lavf: add a "warning" when discarding a oddly backward subtitle or data starttime

Idea-by: ohsix
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
12 years agolavf: handle data like subtitles in start time calculation.
Michael Niedermayer [Tue, 12 Jun 2012 17:07:25 +0000 (19:07 +0200)]
lavf: handle data like subtitles in start time calculation.

This fixes an issue with a crazy data track starting with a large
negative timestamp.

It could as well be solved in all user apps, but this is looking
attractively simpler ...

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
12 years agoswr: mix_2_1_int16_mmx/sse
Michael Niedermayer [Tue, 12 Jun 2012 15:47:19 +0000 (17:47 +0200)]
swr: mix_2_1_int16_mmx/sse

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
12 years agoswr: mix_1_1_int16_sse
Michael Niedermayer [Tue, 12 Jun 2012 14:43:19 +0000 (16:43 +0200)]
swr: mix_1_1_int16_sse

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
12 years agoswr: mix_1_1 int16 MMX
Michael Niedermayer [Tue, 12 Jun 2012 14:27:00 +0000 (16:27 +0200)]
swr: mix_1_1 int16 MMX

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
12 years agoswr: mix_2_1_float SSE/AVX
Michael Niedermayer [Tue, 12 Jun 2012 14:24:49 +0000 (16:24 +0200)]
swr: mix_2_1_float SSE/AVX

Based-on code by Justin Ruggles
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
12 years agoswr: SIMD rematrixing and SSE/AVX mix_1_1 float
Michael Niedermayer [Tue, 12 Jun 2012 14:22:34 +0000 (16:22 +0200)]
swr: SIMD rematrixing and SSE/AVX mix_1_1 float

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
12 years agoswr: add native matrix for SIMD
Michael Niedermayer [Tue, 12 Jun 2012 14:16:15 +0000 (16:16 +0200)]
swr: add native matrix for SIMD

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
12 years agoswr: add function pointers for SIMD rematrixing
Michael Niedermayer [Tue, 12 Jun 2012 14:12:08 +0000 (16:12 +0200)]
swr: add function pointers for SIMD rematrixing

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
12 years agoswresample.c: update copyleft year
Michael Niedermayer [Tue, 12 Jun 2012 14:11:17 +0000 (16:11 +0200)]
swresample.c: update copyleft year

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
12 years agoswr: use &~15
Michael Niedermayer [Tue, 12 Jun 2012 08:28:40 +0000 (10:28 +0200)]
swr: use &~15

Idea-by: reimar (and ubitux on IRC)
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
12 years agoswr: replace /16 by >>4
Michael Niedermayer [Tue, 12 Jun 2012 01:08:02 +0000 (03:08 +0200)]
swr: replace /16 by >>4

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
12 years agolavu/error: add av_make_error_string() and av_err2str() convenience utilities
Stefano Sabatini [Sat, 9 Jun 2012 22:17:45 +0000 (00:17 +0200)]
lavu/error: add av_make_error_string() and av_err2str() convenience utilities

These functions are modeled after the corresponding utilities in
libavutil/timestamp.h.

12 years agolavu/error: fix sign error in av_sterror() error code
Stefano Sabatini [Fri, 1 Jun 2012 21:30:16 +0000 (23:30 +0200)]
lavu/error: fix sign error in av_sterror() error code

The value returned by strerror_r may be positive depending on the system,
so it is necessary to use AVERROR() in order to get a negative
number. This way the successive negative check will not fail, and the
function will print a meaningful error message on the buffer.

12 years agolavu/error: use a table to store error codes and strings, add test
Stefano Sabatini [Mon, 6 Feb 2012 13:16:33 +0000 (14:16 +0100)]
lavu/error: use a table to store error codes and strings, add test

The table is mostly useful to enumerate the available AVERROR* in the
test output.

12 years agotests/parseutils: change test to make it platform independent
Stefano Sabatini [Sun, 10 Jun 2012 13:56:23 +0000 (15:56 +0200)]
tests/parseutils: change test to make it platform independent

Make the test independent from the actual error string used to describe a
certain error code.

12 years agoffmpeg: disable threading on mingw, it doesnt work due to dependance on internal...
Michael Niedermayer [Mon, 11 Jun 2012 21:08:59 +0000 (23:08 +0200)]
ffmpeg: disable threading on mingw, it doesnt work due to dependance on internal code.

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
12 years agortmpproto: replace strtok_r by av_strtok its unavailable in mingw
Michael Niedermayer [Mon, 11 Jun 2012 21:03:01 +0000 (23:03 +0200)]
rtmpproto: replace strtok_r by av_strtok its unavailable in mingw

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
12 years agoMerge remote-tracking branch 'qatar/master'
Michael Niedermayer [Mon, 11 Jun 2012 19:55:27 +0000 (21:55 +0200)]
Merge remote-tracking branch 'qatar/master'

* qatar/master:
  rtmp: Do not send extension for flv files
  rtmp: support connection parameters
  doc: Add documentation for the newly added rtmp_* options

Merged-by: Michael Niedermayer <michaelni@gmx.at>
12 years agopngenc: use av_assert
Michael Niedermayer [Mon, 11 Jun 2012 19:41:03 +0000 (21:41 +0200)]
pngenc: use av_assert

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
12 years ago4xm: use av_assert()
Michael Niedermayer [Mon, 11 Jun 2012 19:40:43 +0000 (21:40 +0200)]
4xm: use av_assert()

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
12 years agoOptimization of AMR NB and WB decoders for MIPS
Nedeljko Babic [Mon, 4 Jun 2012 16:02:56 +0000 (18:02 +0200)]
Optimization of AMR NB and WB decoders for MIPS

AMR NB and WB decoders are optimized for MIPS architecture.
Appropriate Makefiles are changed accordingly.

Cnfigure script is changed in order to support optimizations.
 Optimizations are enabled by default when compiling is done for
  mips architecture.
 Appropriate cflags are automatically set.
 Support for several mips CPUs is added in configure script.

New ffmpeg options are added for disabling optimizations.

The FFMPEG option --disable-mipsfpu disables MIPS floating point
 optimizations.
The FFMPEG option --disable-mips32r2 disables MIPS32R2
 optimizations.
The FFMPEG option --disable-mipsdspr1 disables MIPS DSP ASE R1
 optimizations.
The FFMPEG option --disable-mipsdspr2 disables MIPS DSP ASE R2
 optimizations.

Signed-off-by: Nedeljko Babic <nbabic@mips.com>
Reviewed-by: Vitor Sessak <vitor1001@gmail.com>
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
12 years agoRemove eightsvx_raw decoder line
Paul B Mahol [Mon, 11 Jun 2012 18:55:09 +0000 (18:55 +0000)]
Remove eightsvx_raw decoder line

Decoder have been renamed to pcm_s8_planar long ago.

Signed-off-by: Paul B Mahol <onemda@gmail.com>
12 years agoflvenc: use av_assert instead of assert
Michael Niedermayer [Mon, 11 Jun 2012 18:14:22 +0000 (20:14 +0200)]
flvenc: use av_assert instead of assert

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
12 years agorv20enc: use av_assert
Michael Niedermayer [Mon, 11 Jun 2012 18:13:31 +0000 (20:13 +0200)]
rv20enc: use av_assert

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
12 years agortmp: Do not send extension for flv files
Samuel Pitoiset [Thu, 7 Jun 2012 15:46:34 +0000 (17:46 +0200)]
rtmp: Do not send extension for flv files

This fixes bugzilla bug #304.

Signed-off-by: Martin Storsjö <martin@martin.st>
12 years agortmp: support connection parameters
Samuel Pitoiset [Fri, 8 Jun 2012 11:16:34 +0000 (13:16 +0200)]
rtmp: support connection parameters

Allow using connection parameters in order to append arbitrary
AMF data like "B:1 S:authMe O:1 NN:code:1.23 NS:flag:ok O:0" to the
Connect message. You can pass these parameters through the -rtmp_conn
option.

Signed-off-by: Martin Storsjö <martin@martin.st>
12 years agodoc: Add documentation for the newly added rtmp_* options
Samuel Pitoiset [Fri, 8 Jun 2012 11:15:21 +0000 (13:15 +0200)]
doc: Add documentation for the newly added rtmp_* options

Signed-off-by: Martin Storsjö <martin@martin.st>
12 years agorandom_seed: rewrite generic code.
Michael Niedermayer [Mon, 11 Jun 2012 09:47:59 +0000 (11:47 +0200)]
random_seed: rewrite generic code.

The new code is faster and reuses the previous state in case of
multiple calls. For testing the iterations are reduced and several
entropy sources are disabled.
Its based on SHA-1

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
12 years agoMake png-in-mov QuickTime-compatible for more colour-spaces.
Carl Eugen Hoyos [Mon, 11 Jun 2012 08:57:23 +0000 (10:57 +0200)]
Make png-in-mov QuickTime-compatible for more colour-spaces.

Reported and tested by ami_stuff.

See ticket #1191.

12 years agomov: export orphan tmcd track metadata to global format metadata.
Clément Bœsch [Mon, 4 Jun 2012 10:06:23 +0000 (12:06 +0200)]
mov: export orphan tmcd track metadata to global format metadata.

12 years agomov: copy timecode metadata from tmcd track to the related video stream.
Clément Bœsch [Mon, 4 Jun 2012 09:10:09 +0000 (11:10 +0200)]
mov: copy timecode metadata from tmcd track to the related video stream.

Apple softwares seem not to add a tref for the timecode (the next commit
fixes this issue), but at least FFmpeg does.

This can be used to generate a sample that demonstrates the feature:

    ./ffmpeg -f lavfi -i testsrc    \
             -f lavfi -i mptestsrc  \
             -f lavfi -i rgbtestsrc \
             -map 0 -map 1 -map 2   \
             -metadata:s:0 timecode=00:00:00:12 \
             -metadata:s:2 timecode=01:02:12:20 \
             -t 10 -y out.mov
    ./ffprobe out.mov

The timecode metadata being transmitted to the video streams, it can be
kept while transmuxed/transcoded.

12 years agomov: parse tref atom.
Clément Bœsch [Mon, 4 Jun 2012 09:09:31 +0000 (11:09 +0200)]
mov: parse tref atom.

12 years agomovenc: add timecode track support.
Clément Bœsch [Mon, 5 Mar 2012 07:51:08 +0000 (08:51 +0100)]
movenc: add timecode track support.

12 years agoriff: add ISMP/timecode tag.
Clément Bœsch [Thu, 31 May 2012 07:31:04 +0000 (09:31 +0200)]
riff: add ISMP/timecode tag.

12 years agoffmpeg: allow overriding framerate for stream copy
Michael Niedermayer [Mon, 11 Jun 2012 01:00:28 +0000 (03:00 +0200)]
ffmpeg: allow overriding framerate for stream copy

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
12 years agolibvpxenc: add support for forced key frames
James Zern [Sun, 10 Jun 2012 21:15:20 +0000 (14:15 -0700)]
libvpxenc: add support for forced key frames

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
12 years agorangecoder: use av_assert
Michael Niedermayer [Sun, 10 Jun 2012 21:36:22 +0000 (23:36 +0200)]
rangecoder: use av_assert

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
12 years agoamrnbdec: use av_assert
Michael Niedermayer [Sun, 10 Jun 2012 21:35:29 +0000 (23:35 +0200)]
amrnbdec: use av_assert

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
12 years agoj2k: remove unreachable assert()
Michael Niedermayer [Sun, 10 Jun 2012 21:27:17 +0000 (23:27 +0200)]
j2k: remove unreachable assert()

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
12 years agoMerge remote-tracking branch 'qatar/master'
Michael Niedermayer [Sun, 10 Jun 2012 19:34:15 +0000 (21:34 +0200)]
Merge remote-tracking branch 'qatar/master'

* qatar/master:
  libmp3lame: add missing layout terminator
  avconv: multithreaded demuxing.
  Bump lavu minor and add an APIChanges entry for audioconvert functions.
  audioconvert: add a function for extracting the channel with the given index
  audioconvert: add a function for getting the name of a single channel.
  audioconvert: add a function for getting channel's index in layout
  audioconvert: use av_popcount64 in av_get_channel_layout_nb_channels
  vf_libopencv: add missing headers.
  iac: add missing dependency

Conflicts:
configure
doc/APIchanges
ffmpeg.c
libavcodec/libmp3lame.c
libavutil/avutil.h

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