ffmpeg.git
7 years agoaudioconvert: implement av_bprint_channel_layout().
Nicolas George [Sun, 3 Jun 2012 19:09:16 +0000 (21:09 +0200)]
audioconvert: implement av_bprint_channel_layout().

And reimplement av_get_channel_layout_string() on top of it.

7 years agofate: add bprint test.
Nicolas George [Sun, 3 Jun 2012 17:00:22 +0000 (19:00 +0200)]
fate: add bprint test.

7 years agobprint: add av_bprint_init_for_buffer().
Nicolas George [Sun, 3 Jun 2012 17:48:33 +0000 (19:48 +0200)]
bprint: add av_bprint_init_for_buffer().

7 years agoopt: add test for IMAGE_SIZE and PIXEL_FMT.
Nicolas George [Tue, 5 Jun 2012 12:40:43 +0000 (14:40 +0200)]
opt: add test for IMAGE_SIZE and PIXEL_FMT.

7 years agoopt: free test_ctx.string at the end.
Nicolas George [Tue, 5 Jun 2012 12:32:51 +0000 (14:32 +0200)]
opt: free test_ctx.string at the end.

Makes valgrind happy.

7 years agoopt: init test_ctx to 0.
Nicolas George [Tue, 5 Jun 2012 12:31:29 +0000 (14:31 +0200)]
opt: init test_ctx to 0.

Otherwise, setting string will try to free a random address.

7 years agoopt: add AV_OPT_TYPE_PIXEL_FMT.
Nicolas George [Tue, 5 Jun 2012 10:32:19 +0000 (12:32 +0200)]
opt: add AV_OPT_TYPE_PIXEL_FMT.

7 years agoMerge remote-tracking branch 'cus/stable'
Michael Niedermayer [Thu, 7 Jun 2012 19:55:30 +0000 (21:55 +0200)]
Merge remote-tracking branch 'cus/stable'

* cus/stable:
  ffplay: fix build if avfilter is disabled
  ffplay: fix frame_delay calculation in new avfilter code
  ffplay: add support for changing pixel format
  ffplay: add missing filt_in assignment after video filter reconfigure
  ffplay: fix frame aspect ratio after qatar merge
  ffplay: fix use after free
  ffplay: use dummy video driver if display is disabled

Merged-by: Michael Niedermayer <michaelni@gmx.at>
7 years agoMerge remote-tracking branch 'qatar/master'
Michael Niedermayer [Thu, 7 Jun 2012 19:45:52 +0000 (21:45 +0200)]
Merge remote-tracking branch 'qatar/master'

* qatar/master:
  mpegts: Remove disabled extension matching probe.
  fate: avoid freopen(NULL) in videogen/rotozoom

Conflicts:
tests/rotozoom.c
tests/videogen.c

Merged-by: Michael Niedermayer <michaelni@gmx.at>
7 years agoh261enc: use av_assert
Michael Niedermayer [Thu, 7 Jun 2012 19:32:32 +0000 (21:32 +0200)]
h261enc: use av_assert

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
7 years agoh261dec: use av_assert
Michael Niedermayer [Thu, 7 Jun 2012 19:31:22 +0000 (21:31 +0200)]
h261dec: use av_assert

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
7 years agoswfenc: use av_assert
Michael Niedermayer [Thu, 7 Jun 2012 19:30:07 +0000 (21:30 +0200)]
swfenc: use av_assert

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
7 years agompegts: Remove disabled extension matching probe.
Alex Converse [Tue, 5 Jun 2012 18:16:06 +0000 (11:16 -0700)]
mpegts: Remove disabled extension matching probe.

7 years agoxmv: use av_assert
Michael Niedermayer [Thu, 7 Jun 2012 19:09:06 +0000 (21:09 +0200)]
xmv: use av_assert

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
7 years agoh264_mvpred: use av_assert
Michael Niedermayer [Thu, 7 Jun 2012 19:07:17 +0000 (21:07 +0200)]
h264_mvpred: use av_assert

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
7 years agolavc/rectangle: change assert to av_assert
Michael Niedermayer [Thu, 7 Jun 2012 18:51:07 +0000 (20:51 +0200)]
lavc/rectangle: change assert to av_assert

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
7 years agolavf: fix missing "parser not found" message
Michael Niedermayer [Thu, 7 Jun 2012 17:02:32 +0000 (19:02 +0200)]
lavf: fix missing "parser not found" message

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
7 years agoyuv2rgb: remove assert() the codepath is not invalid
Michael Niedermayer [Thu, 7 Jun 2012 15:45:16 +0000 (17:45 +0200)]
yuv2rgb: remove assert() the codepath is not invalid

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
7 years agosvq1enc: use av_assert
Michael Niedermayer [Thu, 7 Jun 2012 15:41:12 +0000 (17:41 +0200)]
svq1enc: use av_assert

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
7 years agoffmpeg: move keyboard interaction in a function.
Nicolas George [Wed, 6 Jun 2012 13:56:34 +0000 (15:56 +0200)]
ffmpeg: move keyboard interaction in a function.

It makes the transcode loop easier to read (30% less code)
and the differences with avconv easier to spot.

7 years agolavfi/audio: fix size of copied samples.
Nicolas George [Wed, 6 Jun 2012 11:25:34 +0000 (13:25 +0200)]
lavfi/audio: fix size of copied samples.

Fixes sporadic segfaults with some filters.

7 years agofate: avoid freopen(NULL) in videogen/rotozoom
Mans Rullgard [Wed, 6 Jun 2012 16:12:29 +0000 (17:12 +0100)]
fate: avoid freopen(NULL) in videogen/rotozoom

A number of systems do not implement freopen() with a NULL filename
correctly.  This changes these programs to output individual images
if opening a named output argument as a file fails, in this case
assuming it is a directory.

Signed-off-by: Mans Rullgard <mans@mansr.com>
7 years agoffplay: fix build if avfilter is disabled
Marton Balint [Wed, 6 Jun 2012 21:16:29 +0000 (23:16 +0200)]
ffplay: fix build if avfilter is disabled

Signed-off-by: Marton Balint <cus@passwd.hu>
7 years agoffplay: fix frame_delay calculation in new avfilter code
Marton Balint [Wed, 6 Jun 2012 21:06:23 +0000 (23:06 +0200)]
ffplay: fix frame_delay calculation in new avfilter code

Signed-off-by: Marton Balint <cus@passwd.hu>
7 years agoffplay: add support for changing pixel format
Marton Balint [Wed, 6 Jun 2012 20:32:25 +0000 (22:32 +0200)]
ffplay: add support for changing pixel format

With the filtering code refactored, it was much easier to finally fix this.

Fixes ticket 123 and 238.

Signed-off-by: Marton Balint <cus@passwd.hu>
7 years agoffplay: add missing filt_in assignment after video filter reconfigure
Marton Balint [Wed, 6 Jun 2012 20:20:23 +0000 (22:20 +0200)]
ffplay: add missing filt_in assignment after video filter reconfigure

Fixes segfaults on changing resolution.

Signed-off-by: Marton Balint <cus@passwd.hu>
7 years agoffplay: fix frame aspect ratio after qatar merge
Marton Balint [Wed, 6 Jun 2012 20:09:41 +0000 (22:09 +0200)]
ffplay: fix frame aspect ratio after qatar merge

Signed-off-by: Marton Balint <cus@passwd.hu>
7 years agoffplay: fix use after free
Michael Niedermayer [Wed, 6 Jun 2012 21:17:29 +0000 (23:17 +0200)]
ffplay: fix use after free

reproduceable with:
ffmpeg -i tests/lena.pnm -pix_fmt pal8 -vcodec rawvideo -s 512x512 out.avi
valgrind ffplay_g out.avi

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
Signed-off-by: Marton Balint <cus@passwd.hu>
7 years agoffplay: use dummy video driver if display is disabled
Marton Balint [Sun, 3 Jun 2012 17:36:06 +0000 (19:36 +0200)]
ffplay: use dummy video driver if display is disabled

Fixes ticket 1402.

Signed-off-by: Marton Balint <cus@passwd.hu>
7 years agoffprobe: show packet duration in frame
Stefano Sabatini [Thu, 8 Mar 2012 14:26:57 +0000 (15:26 +0100)]
ffprobe: show packet duration in frame

7 years agoffprobe: honour special value for duration
Stefano Sabatini [Tue, 5 Jun 2012 17:15:58 +0000 (19:15 +0200)]
ffprobe: honour special value for duration

A duration value is undefined when is 0, take into consideration this
fact when printing optional fields.

7 years agolavfi: remove avfilter_default_item_name() from public API
Stefano Sabatini [Tue, 5 Jun 2012 16:58:51 +0000 (18:58 +0200)]
lavfi: remove avfilter_default_item_name() from public API

The function was introduced in 4d6a8a2bdb19 and is not used anymore
outside avfilter.c.

This avoids to pollute the public API with an apparently unnecessary
function. The function was introduced a few days ago, so removing it from
the public API should do no much harm.

7 years agolavfi/ocv: fix compilation after internalization of public functions
Stefano Sabatini [Wed, 6 Jun 2012 21:14:36 +0000 (23:14 +0200)]
lavfi/ocv: fix compilation after internalization of public functions

Include missing required internal headers.

7 years agotools/graph2dot: factorize code printing non-media specific link information
Stefano Sabatini [Wed, 6 Jun 2012 21:18:46 +0000 (23:18 +0200)]
tools/graph2dot: factorize code printing non-media specific link information

7 years agotools/graph2dot: show input and output pad names in the link label
Stefano Sabatini [Tue, 5 Jun 2012 16:39:09 +0000 (18:39 +0200)]
tools/graph2dot: show input and output pad names in the link label

7 years agowmv2enc: use av_assert
Michael Niedermayer [Wed, 6 Jun 2012 19:18:47 +0000 (21:18 +0200)]
wmv2enc: use av_assert

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
7 years agosinewin_tablegen: use av_assert
Michael Niedermayer [Wed, 6 Jun 2012 19:18:33 +0000 (21:18 +0200)]
sinewin_tablegen: use av_assert

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
7 years agoput_bits: use av_assert
Michael Niedermayer [Wed, 6 Jun 2012 19:18:14 +0000 (21:18 +0200)]
put_bits: use av_assert

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
7 years agogolomb: use av_assert
Michael Niedermayer [Wed, 6 Jun 2012 18:13:17 +0000 (20:13 +0200)]
golomb: use av_assert

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
7 years agoresample_template: use av_assert
Michael Niedermayer [Wed, 6 Jun 2012 18:08:57 +0000 (20:08 +0200)]
resample_template: use av_assert

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
7 years agolibavutil/integer: use av_assert
Michael Niedermayer [Wed, 6 Jun 2012 18:01:08 +0000 (20:01 +0200)]
libavutil/integer: use av_assert

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
7 years agolibavutil/mathematics: use av_assert()
Michael Niedermayer [Wed, 6 Jun 2012 18:00:35 +0000 (20:00 +0200)]
libavutil/mathematics: use av_assert()

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
7 years agompegvideo: fix out of heap array accesses
Michael Niedermayer [Wed, 6 Jun 2012 17:26:21 +0000 (19:26 +0200)]
mpegvideo: fix out of heap array accesses

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
7 years agoffmpeg: Set duration on encoded subtitle packets.
Philip Langdale [Thu, 31 May 2012 04:08:01 +0000 (21:08 -0700)]
ffmpeg: Set duration on encoded subtitle packets.

Currently, we don't set the duration on the packet of a newly
encoded subtitle. This information may be required by the
muxer.

Signed-off-by: Philip Langdale <philipl@overt.org>
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
7 years agosearch_for_quantizers_faac: fix curband
Michael Niedermayer [Wed, 6 Jun 2012 16:35:05 +0000 (18:35 +0200)]
search_for_quantizers_faac: fix curband

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
7 years agomxfenc: write optional field dominance flag in picture description
Matthieu Bouron [Sun, 27 May 2012 12:21:41 +0000 (14:21 +0200)]
mxfenc: write optional field dominance flag in picture description

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
7 years agoffmpeg: avoid a confusing and easy to break if().
Reimar Döffinger [Wed, 6 Jun 2012 10:39:07 +0000 (12:39 +0200)]
ffmpeg: avoid a confusing and easy to break if().

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
7 years agoFix maxband limit when decoding mpc8.
Carl Eugen Hoyos [Wed, 6 Jun 2012 11:09:02 +0000 (13:09 +0200)]
Fix maxband limit when decoding mpc8.

Fixes yesterday's merge of Kostya's fix for ticket #409.

7 years agoffmpeg: use isatty() before messing with the terminal state
Michael Niedermayer [Tue, 5 Jun 2012 17:58:03 +0000 (19:58 +0200)]
ffmpeg: use isatty() before messing with the terminal state

This fixes terminal messup in case of crashes (like in make fate)

Reviewed-by: François Revol <revol@free.fr>
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
7 years agoMerge remote-tracking branch 'qatar/master'
Michael Niedermayer [Tue, 5 Jun 2012 20:43:44 +0000 (22:43 +0200)]
Merge remote-tracking branch 'qatar/master'

* qatar/master:
  vorbis: Validate that the floor 1 X values contain no duplicates.
  avprobe: Identify codec probe failures rather than calling them unsupported codecs.
  avformat: Probe codecs at score 0 on buffer exhaustion conditions.
  avformat: Factorize codec probing.
  Indeo Audio decoder
  imc: make IMDCT support stereo output
  imc: move channel-specific data into separate context
  lavfi: remove request/poll and drawing functions from public API on next bump
  lavfi: make avfilter_insert_pad and pals private on next bump.
  lavfi: make formats API private on next bump.
  avplay: use buffersrc instead of custom input filter.
  avtools: move buffer management code from avconv to cmdutils.
  avconv: don't use InputStream in the buffer management code.
  avconv: fix exiting when max frames is reached.
  mpc8: fix maximum bands handling
  aacdec: Turn PS off when switching to stereo and turn it to implicit when switching to mono.

Conflicts:
Changelog
cmdutils.h
ffmpeg.c
ffplay.c
ffprobe.c
libavcodec/avcodec.h
libavcodec/mpc8.c
libavcodec/v210dec.h
libavcodec/version.h
libavcodec/vorbisdec.c
libavfilter/avfilter.c
libavfilter/avfilter.h
libavfilter/buffersrc.c
libavfilter/formats.c
libavfilter/src_movie.c
libavfilter/vf_aspect.c
libavfilter/vf_blackframe.c
libavfilter/vf_boxblur.c
libavfilter/vf_crop.c
libavfilter/vf_cropdetect.c
libavfilter/vf_delogo.c
libavfilter/vf_drawbox.c
libavfilter/vf_drawtext.c
libavfilter/vf_fade.c
libavfilter/vf_fifo.c
libavfilter/vf_format.c
libavfilter/vf_frei0r.c
libavfilter/vf_gradfun.c
libavfilter/vf_hflip.c
libavfilter/vf_hqdn3d.c
libavfilter/vf_libopencv.c
libavfilter/vf_lut.c
libavfilter/vf_overlay.c
libavfilter/vf_pad.c
libavfilter/vf_scale.c
libavfilter/vf_select.c
libavfilter/vf_showinfo.c
libavfilter/vf_transpose.c
libavfilter/vf_unsharp.c
libavfilter/vf_yadif.c
libavfilter/vsrc_color.c
libavfilter/vsrc_testsrc.c
libavformat/utils.c

Merged-by: Michael Niedermayer <michaelni@gmx.at>
7 years agolavfi: remove more instances of avfilter_default_filter_name()
Stefano Sabatini [Tue, 5 Jun 2012 16:57:09 +0000 (18:57 +0200)]
lavfi: remove more instances of avfilter_default_filter_name()

They were discarded in 0f0f3bd1e0.

7 years agovorbis: Validate that the floor 1 X values contain no duplicates.
Alex Converse [Tue, 5 Jun 2012 01:27:03 +0000 (18:27 -0700)]
vorbis: Validate that the floor 1 X values contain no duplicates.

Duplicate values in this vector are explicitly banned by the Vorbis I spec
and cause divide-by-zero crashes later on.

7 years agoavprobe: Identify codec probe failures rather than calling them unsupported codecs.
Alex Converse [Tue, 5 Jun 2012 00:35:51 +0000 (17:35 -0700)]
avprobe: Identify codec probe failures rather than calling them unsupported codecs.

7 years agoavformat: Probe codecs at score 0 on buffer exhaustion conditions.
Alex Converse [Mon, 4 Jun 2012 23:58:48 +0000 (16:58 -0700)]
avformat: Probe codecs at score 0 on buffer exhaustion conditions.

7 years agoavformat: Factorize codec probing.
Alex Converse [Mon, 4 Jun 2012 23:07:48 +0000 (16:07 -0700)]
avformat: Factorize codec probing.

7 years agolavc: add pkt_duration field to AVFrame
Stefano Sabatini [Thu, 8 Mar 2012 14:22:53 +0000 (15:22 +0100)]
lavc: add pkt_duration field to AVFrame

7 years agolavfi: move avfilter_copy_frame_props() definition from buffer.c to avcodec.c
Stefano Sabatini [Fri, 1 Jun 2012 09:05:44 +0000 (11:05 +0200)]
lavfi: move avfilter_copy_frame_props() definition from buffer.c to avcodec.c

The new location is more suited, as it is where the lavfi/lavc glue is
defined.

7 years agoIndeo Audio decoder
Kostya Shishkov [Sat, 2 Jun 2012 19:07:02 +0000 (21:07 +0200)]
Indeo Audio decoder

7 years agoimc: make IMDCT support stereo output
Kostya Shishkov [Sat, 2 Jun 2012 18:35:41 +0000 (20:35 +0200)]
imc: make IMDCT support stereo output

This will be useful for Indeo Audio decoder which is almost the same
but supports stereo.

7 years agoimc: move channel-specific data into separate context
Kostya Shishkov [Sat, 2 Jun 2012 18:30:23 +0000 (20:30 +0200)]
imc: move channel-specific data into separate context

This will be useful for Indeo Audio decoder which is almost the same
but supports stereo.

7 years agoaconvert filter needs to configure samplerates
Andrew Wason [Tue, 5 Jun 2012 15:02:43 +0000 (11:02 -0400)]
aconvert filter needs to configure samplerates

I changed the *_set_common_* functions to only set unset formats, then
added a wrapper that calls them after the filters query_formats.

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
7 years agoswr-test: support "--help"
Michael Niedermayer [Tue, 5 Jun 2012 15:12:50 +0000 (17:12 +0200)]
swr-test: support "--help"

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
7 years agobuildsys: fix rules for swresample-test
Michael Niedermayer [Tue, 5 Jun 2012 15:06:19 +0000 (17:06 +0200)]
buildsys: fix rules for swresample-test

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
7 years agolibswresample/Makefile: put each object on its own line
Michael Niedermayer [Tue, 5 Jun 2012 15:05:30 +0000 (17:05 +0200)]
libswresample/Makefile: put each object on its own line

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
7 years agoswscale: RGBA64LE <-> RGBA64BE support
Paul B Mahol [Tue, 5 Jun 2012 12:14:27 +0000 (12:14 +0000)]
swscale: RGBA64LE <-> RGBA64BE support

Signed-off-by: Paul B Mahol <onemda@gmail.com>
7 years agoavfiltergraph: call query_formats on inputs first.
Nicolas George [Sun, 3 Jun 2012 19:53:22 +0000 (21:53 +0200)]
avfiltergraph: call query_formats on inputs first.

This is a temporary workaround for amerge,
until format renegociation is implemented.

Should fix trac ticket #1400.

7 years agoavfiltergraph: check query_formats return value.
Nicolas George [Sun, 3 Jun 2012 19:48:59 +0000 (21:48 +0200)]
avfiltergraph: check query_formats return value.

7 years agoMake H264 reorder buffer size message less verbose.
Carl Eugen Hoyos [Tue, 5 Jun 2012 10:52:07 +0000 (12:52 +0200)]
Make H264 reorder buffer size message less verbose.

7 years agosnowdec: add new line to some error messages
Piotr Bandurski [Tue, 5 Jun 2012 10:15:18 +0000 (12:15 +0200)]
snowdec: add new line to some error messages

7 years agoisom: add Radius DV YUV FourCCs
Piotr Bandurski [Tue, 5 Jun 2012 10:13:39 +0000 (12:13 +0200)]
isom: add Radius DV YUV FourCCs

7 years agolavfi: move tracing utilities definition from video.c to avfilter.c
Stefano Sabatini [Fri, 1 Jun 2012 21:05:13 +0000 (23:05 +0200)]
lavfi: move tracing utilities definition from video.c to avfilter.c

These utilities are meant to be defined in avfilter.c, since they are
generic and thus contain both audio and video code.

7 years agoAdd missing CRLFs to avisynth error messages.
Carl Eugen Hoyos [Tue, 5 Jun 2012 09:13:30 +0000 (11:13 +0200)]
Add missing CRLFs to avisynth error messages.

7 years agoFix MP2 muxer Makefile dependencies.
Carl Eugen Hoyos [Tue, 5 Jun 2012 07:54:03 +0000 (09:54 +0200)]
Fix MP2 muxer Makefile dependencies.

Found, analysed and tested by trac user Jamal.

Fixes ticket #1411

7 years agolavfi: remove request/poll and drawing functions from public API on next bump
Anton Khirnov [Wed, 30 May 2012 09:20:32 +0000 (11:20 +0200)]
lavfi: remove request/poll and drawing functions from public API on next bump

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

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

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

7 years agolavfi: make formats API private on next bump.
Anton Khirnov [Wed, 30 May 2012 08:12:55 +0000 (10:12 +0200)]
lavfi: make formats API private on next bump.

It is only useful inside filters and we don't allow user filters for
now.

7 years agoavplay: use buffersrc instead of custom input filter.
Anton Khirnov [Wed, 30 May 2012 06:53:08 +0000 (08:53 +0200)]
avplay: use buffersrc instead of custom input filter.

We do not allow user filters, so avtools shouldn't use them either.

It also allows to reuse buffer management code from avconv, thus
reducing duplication.

7 years agoavtools: move buffer management code from avconv to cmdutils.
Anton Khirnov [Wed, 30 May 2012 05:57:59 +0000 (07:57 +0200)]
avtools: move buffer management code from avconv to cmdutils.

It will be used by avplay.

7 years agoavconv: don't use InputStream in the buffer management code.
Anton Khirnov [Wed, 30 May 2012 05:32:43 +0000 (07:32 +0200)]
avconv: don't use InputStream in the buffer management code.

Use just the pointer to the head of the buffer pool.

This will allow sharing the code with avplay.

7 years agoavconv: fix exiting when max frames is reached.
Anton Khirnov [Mon, 4 Jun 2012 18:01:55 +0000 (20:01 +0200)]
avconv: fix exiting when max frames is reached.

frame number should never be strictly larger than max frames, so the
if() was never triggered.

7 years agolavfi/select: use exported dsputil_init function.
Clément Bœsch [Tue, 5 Jun 2012 05:27:41 +0000 (07:27 +0200)]
lavfi/select: use exported dsputil_init function.

This is the deprecated version of the function but it is exported, so it
should fix the shared FATE box.

7 years agompc8: fix maximum bands handling
Kostya Shishkov [Mon, 4 Jun 2012 06:01:34 +0000 (08:01 +0200)]
mpc8: fix maximum bands handling

In Musepack SV8 codec property tell the maximum nonzero band, but every
frame codes maximum band as a limit (i.e. strictly less than given value).
Synthesis also expects maximum nonzero band, so there's a need to convert
frame maximum band limit value.

7 years agoMANGLEd swscale x86 asm to save registers
Michael Bradshaw [Mon, 4 Jun 2012 19:15:58 +0000 (13:15 -0600)]
MANGLEd swscale x86 asm to save registers

register starvation caused gcc4.2 to fail building 32 bit shared libs
on 64 bit OS X

Signed-off-by: Michael Bradshaw <mbradshaw@sorensonmedia.com>
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
7 years agoupdate filtering_audio example
Andrew Wason [Mon, 4 Jun 2012 18:07:15 +0000 (14:07 -0400)]
update filtering_audio example

The filtering_audio.c example needs to be updated for the new
"abuffer" filter args.

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
7 years agolavfi/select: 10l: llabs -> fabs after switching types.
Clément Bœsch [Mon, 4 Jun 2012 22:17:38 +0000 (00:17 +0200)]
lavfi/select: 10l: llabs -> fabs after switching types.

7 years agoaacdec: Turn PS off when switching to stereo and turn it to implicit when switching...
Alex Converse [Tue, 22 May 2012 21:43:28 +0000 (14:43 -0700)]
aacdec: Turn PS off when switching to stereo and turn it to implicit when switching to mono.

7 years agoMerge remote-tracking branch 'cus/stable'
Michael Niedermayer [Mon, 4 Jun 2012 21:35:36 +0000 (23:35 +0200)]
Merge remote-tracking branch 'cus/stable'

* cus/stable:
  ffplay: calculate audio diff threshold based on the actual settings
  ffplay: try more channel count combinations for SDL_OpenAudio
  ffplay: simplify audio_open, rename parameters to more explanatory names
  ffplay: remove VideoState from audio_open
  ffplay: put audio parameters to their own struct
  ffplay: put audio_open into a seperate function

Merged-by: Michael Niedermayer <michaelni@gmx.at>
7 years agoMerge remote-tracking branch 'qatar/master'
Michael Niedermayer [Mon, 4 Jun 2012 20:54:15 +0000 (22:54 +0200)]
Merge remote-tracking branch 'qatar/master'

* qatar/master:
  movenc: Write chan atom for all audio tracks in mov mode movies.
  mpegtsenc: use avio_open_dyn_buf(), zero pointers after freeing
  doc/avconv: add some details about the transcoding process.
  avidec: make scale and rate unsigned.
  avconv: check output stream recording time before each frame returned from filters
  avconv: split selecting input file out of transcode().
  avconv: split checking for active outputs out of transcode().
  avfiltergraph: make some functions static.

Conflicts:
ffmpeg.c
libavfilter/avfiltergraph.c
libavfilter/internal.h
libavformat/mpegtsenc.c
tests/ref/fate/acodec-alac
tests/ref/fate/acodec-pcm-s16be
tests/ref/fate/acodec-pcm-s24be
tests/ref/fate/acodec-pcm-s32be
tests/ref/fate/acodec-pcm-s8
tests/ref/lavf/mov

Merged-by: Michael Niedermayer <michaelni@gmx.at>
7 years agoffmpeg: remove two unused variables.
Clément Bœsch [Mon, 4 Jun 2012 20:32:26 +0000 (22:32 +0200)]
ffmpeg: remove two unused variables.

7 years agoChangelog: add ffprobe flat output.
Clément Bœsch [Mon, 4 Jun 2012 19:46:24 +0000 (21:46 +0200)]
Changelog: add ffprobe flat output.

7 years agolavfi/select: add scene detection.
Clément Bœsch [Sat, 26 May 2012 10:38:59 +0000 (12:38 +0200)]
lavfi/select: add scene detection.

Based on the shotdetect algorithm (http://shotdetect.nonutc.fr/ by Johan
MATHE johan.mathe tremplin-utc.net).

7 years agoDo not try to encode DVCPRO HD, it produces broken files.
Carl Eugen Hoyos [Mon, 4 Jun 2012 18:42:00 +0000 (20:42 +0200)]
Do not try to encode DVCPRO HD, it produces broken files.

7 years agoAllow colour space autodetection when encoding ljpeg.
Carl Eugen Hoyos [Mon, 4 Jun 2012 18:01:39 +0000 (20:01 +0200)]
Allow colour space autodetection when encoding ljpeg.

This works as expected if the input stream is not yuv4xxp.

Reviewed-by: Paul B Mahol
7 years agoRemove misplaced comment.
Carl Eugen Hoyos [Mon, 4 Jun 2012 18:01:36 +0000 (20:01 +0200)]
Remove misplaced comment.

7 years agoffprobe/flat: add escape for '`' and '$'.
Clément Bœsch [Mon, 4 Jun 2012 17:14:51 +0000 (19:14 +0200)]
ffprobe/flat: add escape for '`' and '$'.

7 years agomovenc: Write chan atom for all audio tracks in mov mode movies.
Alex Converse [Thu, 31 May 2012 00:51:12 +0000 (17:51 -0700)]
movenc: Write chan atom for all audio tracks in mov mode movies.

7 years agoffmpeg: disable audio volume insertion on the output side.
Michael Niedermayer [Mon, 4 Jun 2012 13:46:59 +0000 (15:46 +0200)]
ffmpeg: disable audio volume insertion on the output side.

This fixes -vol leading to 2 inserted volume filters

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
7 years agompegtsenc: use avio_open_dyn_buf(), zero pointers after freeing
Jindřich Makovička [Sun, 3 Jun 2012 04:11:10 +0000 (06:11 +0200)]
mpegtsenc: use avio_open_dyn_buf(), zero pointers after freeing

Per suggestion by Michael Niedermayer.

Signed-off-by: Jindřich Makovička <makovick@gmail.com>
Signed-off-by: Martin Storsjö <martin@martin.st>
7 years agodoc/avconv: add some details about the transcoding process.
Anton Khirnov [Mon, 4 Jun 2012 09:00:34 +0000 (11:00 +0200)]
doc/avconv: add some details about the transcoding process.

7 years agoavidec: make scale and rate unsigned.
Anton Khirnov [Mon, 4 Jun 2012 09:36:51 +0000 (11:36 +0200)]
avidec: make scale and rate unsigned.

The specs say they are unsigned 32bit integers.