ffmpeg.git
7 years agoUse correct LOCAL_ALIGNED for stack variables instead of DECLARE_ALIGNED.
Reimar Döffinger [Mon, 19 Sep 2011 22:30:25 +0000 (00:30 +0200)]
Use correct LOCAL_ALIGNED for stack variables instead of DECLARE_ALIGNED.

LOCAL_ALIGNED should work for all compilers/systems whereas
DECLARE_ALIGNED does not work on some (do not remember which though).

Signed-off-by: Reimar Döffinger <Reimar.Doeffinger@gmx.de>
7 years agoRemove unused variable.
Reimar Döffinger [Mon, 19 Sep 2011 21:06:15 +0000 (23:06 +0200)]
Remove unused variable.

Signed-off-by: Reimar Döffinger <Reimar.Doeffinger@gmx.de>
7 years agoHack around gcc 4.6 breaking asm using call.
Reimar Döffinger [Sun, 28 Aug 2011 19:14:13 +0000 (21:14 +0200)]
Hack around gcc 4.6 breaking asm using call.

gcc 4.6 no longer decrements esp to account for local variables.
Thus using call will end up overwriting some local variable.
So add an extra one it can safely clobber.
This is a huge hack because it's basically pure chance it works,
no idea how this is supposed to be done.

Fixes trac ticket #397.

Signed-off-by: Reimar Döffinger <Reimar.Doeffinger@gmx.de>
7 years agomov: Fix grayscale Cinepak in mov
Michael Niedermayer [Tue, 20 Sep 2011 04:19:25 +0000 (06:19 +0200)]
mov: Fix grayscale Cinepak in mov
Fixes Ticket165

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
7 years agolibavfilter/libmpcodecs: add vf_stereo3d support
Michael Niedermayer [Tue, 20 Sep 2011 03:40:05 +0000 (05:40 +0200)]
libavfilter/libmpcodecs: add vf_stereo3d support
(code from mplayer see their svn for detailed authorship)
parameters must be integers as we do not have mplayers parser
also the stuff passed to it through non constant globals is not supported
this should be fixed in mplayer first.

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
7 years agolibmpcodecs: some hunks from mplayer HEAD
Michael Niedermayer [Tue, 20 Sep 2011 03:14:52 +0000 (05:14 +0200)]
libmpcodecs: some hunks from mplayer HEAD

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
7 years agolavf/utils: better dts wrap correction.
Michael Niedermayer [Tue, 20 Sep 2011 02:32:46 +0000 (04:32 +0200)]
lavf/utils: better dts wrap correction.
Fixes Ticket488

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
7 years agoh264: do not increase recovery frame which would lead to endless moving away of the...
Michael Niedermayer [Tue, 20 Sep 2011 00:37:46 +0000 (02:37 +0200)]
h264: do not increase recovery frame which would lead to endless moving away of the recovery point.

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
7 years agoh264: reset recovery frame on seeks.
Michael Niedermayer [Tue, 20 Sep 2011 00:37:37 +0000 (02:37 +0200)]
h264: reset recovery frame on seeks.

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
7 years agoCheck for invalid slice offsets in real decoder.
Laurent Aimar [Mon, 19 Sep 2011 20:48:53 +0000 (22:48 +0200)]
Check for invalid slice offsets in real decoder.

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
7 years agoregtests: add a flashsv2 decoder test limited to keyframes
Michael Niedermayer [Mon, 19 Sep 2011 23:12:42 +0000 (01:12 +0200)]
regtests: add a flashsv2 decoder test limited to keyframes

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
7 years agoMerge remote-tracking branch 'qatar/master'
Michael Niedermayer [Mon, 19 Sep 2011 20:45:34 +0000 (22:45 +0200)]
Merge remote-tracking branch 'qatar/master'

* qatar/master:
  movenc: fix NULL reference in mov_write_tkhd_tag
  rmdec: Reject invalid deinterleaving parameters
  rv34: Fix potential overreads
  rv34: Fix buffer size used for MC of B frames after a resolution change
  rv34: Avoid NULL dereference on corrupted bitstream
  rv10: Reject slices that does not have the same type as the first one
  vf_yadif: add an option to enable/disable deinterlacing based on src frame "interlaced" flag
  vsrc_color: set output pos values to -1
  vsrc_color: add @file doxy
  vsrc_buffer: remove duplicated file description
  eval: implement not() expression
  eval: add sqrt function for computing the square root
  rmdec: use the deinterleaving mode and not the codec when creating audio packets.
  lavf: Fix context pointer in av_open_input_stream when avformat_open_input fails

Conflicts:
doc/eval.texi
doc/filters.texi
libavcodec/rv10.c
libavfilter/vsrc_color.c
libavformat/rmdec.c
libavutil/avutil.h
libavutil/eval.c
tests/ref/fate/eval

Merged-by: Michael Niedermayer <michaelni@gmx.at>
7 years agoallcodecs: cosmetic
Michael Niedermayer [Mon, 19 Sep 2011 19:52:06 +0000 (21:52 +0200)]
allcodecs: cosmetic

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
7 years agogitignore: add libswresample*
Michael Niedermayer [Mon, 19 Sep 2011 15:39:01 +0000 (17:39 +0200)]
gitignore: add libswresample*

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
7 years agoMAINTAINERS: add my GPG fingerprint.
Gwenole Beauchesne [Mon, 19 Sep 2011 14:57:10 +0000 (16:57 +0200)]
MAINTAINERS: add my GPG fingerprint.

7 years agomovenc: fix NULL reference in mov_write_tkhd_tag
Anton Khirnov [Mon, 19 Sep 2011 13:15:56 +0000 (15:15 +0200)]
movenc: fix NULL reference in mov_write_tkhd_tag

st may be NULL when there are more mov streams than AVStreams, e.g. when
chapters are present.

7 years agormdec: Reject invalid deinterleaving parameters
Laurent Aimar [Fri, 16 Sep 2011 22:05:13 +0000 (00:05 +0200)]
rmdec: Reject invalid deinterleaving parameters

Signed-off-by: Martin Storsjö <martin@martin.st>
7 years agorv34: Fix potential overreads
Laurent Aimar [Sat, 17 Sep 2011 14:56:30 +0000 (16:56 +0200)]
rv34: Fix potential overreads

Signed-off-by: Martin Storsjö <martin@martin.st>
7 years agorv34: Fix buffer size used for MC of B frames after a resolution change
Laurent Aimar [Sat, 17 Sep 2011 14:56:36 +0000 (16:56 +0200)]
rv34: Fix buffer size used for MC of B frames after a resolution change

Signed-off-by: Martin Storsjö <martin@martin.st>
7 years agorv34: Avoid NULL dereference on corrupted bitstream
Laurent Aimar [Sat, 17 Sep 2011 21:43:58 +0000 (23:43 +0200)]
rv34: Avoid NULL dereference on corrupted bitstream

rv34_decode_slice() can return without allocating any pictures.

Signed-off-by: Martin Storsjö <martin@martin.st>
7 years agorv10: Reject slices that does not have the same type as the first one
Laurent Aimar [Sat, 17 Sep 2011 22:03:08 +0000 (00:03 +0200)]
rv10: Reject slices that does not have the same type as the first one

This prevents crashes with some corrupted bitstreams.

Signed-off-by: Martin Storsjö <martin@martin.st>
7 years agovf_yadif: add an option to enable/disable deinterlacing based on src frame "interlace...
Joakim Plate [Sun, 3 Jul 2011 11:19:44 +0000 (13:19 +0200)]
vf_yadif: add an option to enable/disable deinterlacing based on src frame "interlaced" flag

Signed-off-by: Joakim Plate <elupus@ecce.se>
Signed-off-by: Anton Khirnov <anton@khirnov.net>
7 years agovsrc_color: set output pos values to -1
Stefano Sabatini [Fri, 17 Jun 2011 23:47:37 +0000 (01:47 +0200)]
vsrc_color: set output pos values to -1

-1 is more correct than 0, as the position in the file is undefined.

Signed-off-by: Anton Khirnov <anton@khirnov.net>
7 years agovsrc_color: add @file doxy
Stefano Sabatini [Fri, 17 Jun 2011 23:46:27 +0000 (01:46 +0200)]
vsrc_color: add @file doxy

Also remove outdated reference to color in vf_pad.c.

Signed-off-by: Anton Khirnov <anton@khirnov.net>
7 years agovsrc_buffer: remove duplicated file description
Stefano Sabatini [Wed, 25 May 2011 07:37:25 +0000 (09:37 +0200)]
vsrc_buffer: remove duplicated file description

Signed-off-by: Anton Khirnov <anton@khirnov.net>
7 years agoeval: implement not() expression
Stefano Sabatini [Mon, 23 May 2011 11:13:50 +0000 (13:13 +0200)]
eval: implement not() expression

7 years agoeval: add sqrt function for computing the square root
Stefano Sabatini [Tue, 3 May 2011 21:31:14 +0000 (23:31 +0200)]
eval: add sqrt function for computing the square root

7 years agormdec: use the deinterleaving mode and not the codec when creating audio packets.
Laurent Aimar [Sat, 17 Sep 2011 21:17:45 +0000 (21:17 +0000)]
rmdec: use the deinterleaving mode and not the codec when creating audio packets.

It prevents crashes due to non initialized fields.

Signed-off-by: Anton Khirnov <anton@khirnov.net>
7 years agoSupport 3IVD in isom, produced by 3ivx DivX Doctor.
Carl Eugen Hoyos [Mon, 19 Sep 2011 10:20:42 +0000 (12:20 +0200)]
Support 3IVD in isom, produced by 3ivx DivX Doctor.

Fixes ticket #486.

7 years agolavf: Fix context pointer in av_open_input_stream when avformat_open_input fails
David Goldwich [Sat, 17 Sep 2011 11:50:35 +0000 (13:50 +0200)]
lavf: Fix context pointer in av_open_input_stream when avformat_open_input fails

Signed-off-by: David Goldwich <david.goldwich@gmail.com>
Signed-off-by: Anton Khirnov <anton@khirnov.net>
7 years agorematrix: dont use floats for int16 code.
Michael Niedermayer [Mon, 19 Sep 2011 07:18:05 +0000 (09:18 +0200)]
rematrix: dont use floats for int16 code.

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
7 years agorematrix: use double during init.
Michael Niedermayer [Mon, 19 Sep 2011 06:44:49 +0000 (08:44 +0200)]
rematrix: use double during init.
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
7 years agoswr: replace sqrt(0.5) by M_SQRT1_2
Michael Niedermayer [Mon, 19 Sep 2011 06:44:24 +0000 (08:44 +0200)]
swr: replace sqrt(0.5) by M_SQRT1_2

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
7 years agoconfigure: swr pkgconfig
Michael Niedermayer [Mon, 19 Sep 2011 05:32:38 +0000 (07:32 +0200)]
configure: swr pkgconfig

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
7 years agoswr: fix shared lib build
Michael Niedermayer [Mon, 19 Sep 2011 05:26:42 +0000 (07:26 +0200)]
swr: fix shared lib build

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
7 years agoAdd libswresample.
Michael Niedermayer [Mon, 19 Sep 2011 04:13:30 +0000 (06:13 +0200)]
Add libswresample.
Similar to libswscale this does resampling and format convertion, just for audio
instead of video.
changing sampling rate, sample formats, channel layouts and sample packing all
in one with a very simple public interface.

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
7 years agocalculate frame_num for recovery point "keyframe"
John Stebbins [Sun, 18 Sep 2011 20:10:52 +0000 (13:10 -0700)]
calculate frame_num for recovery point "keyframe"

recovery points that have non-zero recovery_frame_cnt resulted in
flagging incomplete frames as keyframes. This delays setting the
keyframe flag till the frame has been fully constructed.

7 years agoMerge remote-tracking branch 'qatar/master'
Michael Niedermayer [Sun, 18 Sep 2011 20:26:46 +0000 (22:26 +0200)]
Merge remote-tracking branch 'qatar/master'

* qatar/master:
  doc/APIChanges: fill in missing hashes and dates.

Conflicts:
doc/APIchanges

Merged-by: Michael Niedermayer <michaelni@gmx.at>
7 years agoFix compilation with --disable-everything --enable-outdev=alsa.
Carl Eugen Hoyos [Sun, 18 Sep 2011 20:22:45 +0000 (22:22 +0200)]
Fix compilation with --disable-everything --enable-outdev=alsa.

Bug found and analysed by skierpage.

7 years agoh264dec: add forgotten copying of h->sync
Michael Niedermayer [Sun, 18 Sep 2011 17:02:37 +0000 (19:02 +0200)]
h264dec: add forgotten copying of h->sync

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
7 years agoFix compilation without --disable-swscale.
Carl Eugen Hoyos [Sun, 18 Sep 2011 17:06:49 +0000 (19:06 +0200)]
Fix compilation without --disable-swscale.

7 years agoFix compilation with --disable-swscale.
Carl Eugen Hoyos [Sun, 18 Sep 2011 16:57:35 +0000 (18:57 +0200)]
Fix compilation with --disable-swscale.

Fixes ticket #482.

7 years agoSet AV_PKT_FLAG_KEY based on nupplevideo header
Joakim Plate [Sun, 11 Sep 2011 15:59:32 +0000 (17:59 +0200)]
Set AV_PKT_FLAG_KEY based on nupplevideo header

Based from lipbmpdemux/nupplevideo.h and from myth NuppelVideoRecorder.cpp

7 years agoadd support for generic seeking by reading timestamps in nuv
Joakim Plate [Mon, 12 Sep 2011 17:33:31 +0000 (19:33 +0200)]
add support for generic seeking by reading timestamps in nuv

7 years agodoc/filters: fix numer/number typo.
Clément Bœsch [Sun, 18 Sep 2011 15:28:53 +0000 (17:28 +0200)]
doc/filters: fix numer/number typo.

7 years agolavfi: fix avfilter_get_audio_buffer() doxy to match reality.
Clément Bœsch [Sun, 18 Sep 2011 15:30:33 +0000 (17:30 +0200)]
lavfi: fix avfilter_get_audio_buffer() doxy to match reality.

7 years agolavc: better reference to AVOptions
Michael Niedermayer [Sun, 18 Sep 2011 13:41:28 +0000 (15:41 +0200)]
lavc: better reference to AVOptions

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
7 years agoh264dec: Support CODEC_FLAG2_SHOW_ALL.
Michael Niedermayer [Sun, 18 Sep 2011 13:25:19 +0000 (15:25 +0200)]
h264dec: Support CODEC_FLAG2_SHOW_ALL.

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
7 years agompeg2dec: support CODEC_FLAG2_SHOW_ALL.
Michael Niedermayer [Sun, 18 Sep 2011 13:20:36 +0000 (15:20 +0200)]
mpeg2dec: support CODEC_FLAG2_SHOW_ALL.

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
7 years agolavc: Document that AVOptions should be used.
Michael Niedermayer [Sun, 18 Sep 2011 13:20:05 +0000 (15:20 +0200)]
lavc: Document that AVOptions should be used.

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
7 years agolavc: add CODEC_FLAG2_SHOW_ALL
Michael Niedermayer [Sun, 18 Sep 2011 13:18:35 +0000 (15:18 +0200)]
lavc: add CODEC_FLAG2_SHOW_ALL

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
7 years agoasrc_anullsrc: amend description to reflect the recent changes
Stefano Sabatini [Sun, 18 Sep 2011 12:26:37 +0000 (14:26 +0200)]
asrc_anullsrc: amend description to reflect the recent changes

7 years agoasrc_anullsrc: globally prefer "null" over "priv" for indicating the filter context
Stefano Sabatini [Sat, 17 Sep 2011 10:52:54 +0000 (12:52 +0200)]
asrc_anullsrc: globally prefer "null" over "priv" for indicating the filter context

More locally and globally consistent.

7 years agoasrc_anullsrc: do not show the int64_t value for channel_layout
Stefano Sabatini [Sat, 17 Sep 2011 10:50:24 +0000 (12:50 +0200)]
asrc_anullsrc: do not show the int64_t value for channel_layout

That was clumsy and confusing, only show the descriptive channel
layout string.

7 years agoasrc_anullsrc: implement a request_frame callback for returning frames
Stefano Sabatini [Sat, 17 Sep 2011 01:17:06 +0000 (03:17 +0200)]
asrc_anullsrc: implement a request_frame callback for returning frames

This is mainly useful for filters (like the sox synth), which
overwrite the content of the passed data.

7 years agoasrc_anullsrc: extend syntax to make it accept a non positional list of arguments
Stefano Sabatini [Sat, 17 Sep 2011 10:31:21 +0000 (12:31 +0200)]
asrc_anullsrc: extend syntax to make it accept a non positional list of arguments

The new syntax is more extensible and more user-friendly.

This breaks the previous syntax, should not be an issue as possibly
no-one is already using anullsrc.

7 years agodoc/APIChanges: fill in missing hashes and dates.
Anton Khirnov [Sun, 18 Sep 2011 06:55:01 +0000 (08:55 +0200)]
doc/APIChanges: fill in missing hashes and dates.

7 years agortmpproto.c: Fixed RTMP Stream output issue
Chiranjeevi Melam [Sun, 18 Sep 2011 03:39:53 +0000 (05:39 +0200)]
rtmpproto.c: Fixed RTMP Stream output issue

Original code had the assumption of only one FLV packet per RTMP packet. But that assumption is incorrect for higher bit rates. Made changes to the code to accommodate more than one FLV packet per RTMP
+packet.

7 years agompegpsdec: fix reading first mpegps packet
Arne de Bruijn [Sat, 17 Sep 2011 12:59:00 +0000 (14:59 +0200)]
mpegpsdec: fix reading first mpegps packet

7 years agoAvoid NULL dereference on corrupted bitstream with real decoder.
Laurent Aimar [Sat, 17 Sep 2011 21:43:58 +0000 (23:43 +0200)]
Avoid NULL dereference on corrupted bitstream with real decoder.

rv34_decode_slice() can return without allocating any pictures.

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
7 years agoReject slices that does not have the same type than the first one in RV10/RV20 decoder.
Laurent Aimar [Sat, 17 Sep 2011 22:17:44 +0000 (00:17 +0200)]
Reject slices that does not have the same type than the first one in RV10/RV20 decoder.

This prevents crashes with some corrupted bitstreams.

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
7 years agotimecode: relicense to LGPLv2+ with permission of Baptiste and ubitux.
Michael Niedermayer [Sat, 17 Sep 2011 22:29:32 +0000 (00:29 +0200)]
timecode: relicense to LGPLv2+ with permission of Baptiste and ubitux.

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
7 years agoMerge remote-tracking branch 'qatar/master'
Michael Niedermayer [Sat, 17 Sep 2011 20:25:13 +0000 (22:25 +0200)]
Merge remote-tracking branch 'qatar/master'

* qatar/master:
  lavfi: add select filter
  oggdec: fix out of bound write in the ogg demuxer
  movenc: create an alternate group for each media type
  lavd: add libcdio-paranoia input device for audio CD grabbing
  rawdec: refactor private option for raw video demuxers
  pcmdec: use unique classes for all pcm demuxers.
  rawdec: g722 is always 1 channel/16kHz

Conflicts:
Changelog
configure
doc/filters.texi
libavdevice/avdevice.h
libavfilter/avfilter.h
libavfilter/vf_select.c
tests/ref/lavf/mov

Merged-by: Michael Niedermayer <michaelni@gmx.at>
7 years agocheck all svq3_get_ue_golomb() returns.
Michael Niedermayer [Sat, 17 Sep 2011 19:53:21 +0000 (21:53 +0200)]
check all svq3_get_ue_golomb() returns.

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
7 years agoh264dec: Dont display trash before a keyframe.
Michael Niedermayer [Sat, 17 Sep 2011 17:59:48 +0000 (19:59 +0200)]
h264dec: Dont display trash before a keyframe.
Fixes Ticket472
This may (or may not) cause problems with files that have no keyframes.
Plese open a bugreport or mail me if you have a file for which this fails.

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
7 years agorv34: check for size mismatch
Michael Niedermayer [Sat, 17 Sep 2011 17:40:25 +0000 (19:40 +0200)]
rv34: check for size mismatch

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
7 years agolavfi: add select filter
Stefano Sabatini [Sat, 7 May 2011 00:06:25 +0000 (02:06 +0200)]
lavfi: add select filter

Signed-off-by: Anton Khirnov <anton@khirnov.net>
7 years agoFix buffer size used for MC of B frames after a resolution change in the real decoder.
Laurent Aimar [Sat, 17 Sep 2011 14:56:36 +0000 (16:56 +0200)]
Fix buffer size used for MC of B frames after a resolution change in the real decoder.

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
7 years agooggdec: fix out of bound write in the ogg demuxer
Laurent Aimar [Sun, 11 Sep 2011 21:26:12 +0000 (23:26 +0200)]
oggdec: fix out of bound write in the ogg demuxer

Between ogg_save() and ogg_restore() calls, the number of streams
could have been reduced.

Signed-off-by: Luca Barbato <lu_zero@gentoo.org>
7 years agoReject audio tracks with invalid interleaver parameters in RM demuxer.
Laurent Aimar [Sat, 17 Sep 2011 14:56:33 +0000 (16:56 +0200)]
Reject audio tracks with invalid interleaver parameters in RM demuxer.

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
7 years agoFix js_vlc_bits value validation when joint stereo is used in cook decoder.
Laurent Aimar [Sat, 17 Sep 2011 14:56:35 +0000 (16:56 +0200)]
Fix js_vlc_bits value validation when joint stereo is used in cook decoder.

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
7 years agoFix potential overreads in rv34 decoder.
Laurent Aimar [Sat, 17 Sep 2011 14:56:30 +0000 (16:56 +0200)]
Fix potential overreads in rv34 decoder.

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
7 years agomovenc: create an alternate group for each media type
Anton Khirnov [Fri, 16 Sep 2011 14:06:45 +0000 (16:06 +0200)]
movenc: create an alternate group for each media type

Partially fixes bug 44.

7 years agolavd: add libcdio-paranoia input device for audio CD grabbing
Anton Khirnov [Tue, 13 Sep 2011 15:23:06 +0000 (17:23 +0200)]
lavd: add libcdio-paranoia input device for audio CD grabbing

7 years agorawdec: refactor private option for raw video demuxers
Anton Khirnov [Wed, 14 Sep 2011 12:03:55 +0000 (14:03 +0200)]
rawdec: refactor private option for raw video demuxers

pixel_format/video_size only apply to 'rawvideo' (==uncompressed) demuxer
and make no sense for the other raw (== containerless) demuxers. Keep
only the framerate option for those.

Also use unique classes for all raw video demuxers

7 years agopcmdec: use unique classes for all pcm demuxers.
Anton Khirnov [Wed, 14 Sep 2011 07:54:29 +0000 (09:54 +0200)]
pcmdec: use unique classes for all pcm demuxers.

7 years agorawdec: g722 is always 1 channel/16kHz
Anton Khirnov [Wed, 14 Sep 2011 06:55:27 +0000 (08:55 +0200)]
rawdec: g722 is always 1 channel/16kHz

7 years agomjpegdec: print nb_components too in pict debug info
Michael Niedermayer [Fri, 16 Sep 2011 23:38:20 +0000 (01:38 +0200)]
mjpegdec: print nb_components too in pict debug info

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
7 years agomjpegdec: make sure we dont interpret things after the bitstream buffer as resync...
Michael Niedermayer [Fri, 16 Sep 2011 23:32:08 +0000 (01:32 +0200)]
mjpegdec: make sure we dont interpret things after the bitstream buffer as resync marker
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
7 years agograph2dot: show timebase information for audio links
Stefano Sabatini [Fri, 16 Sep 2011 23:16:09 +0000 (01:16 +0200)]
graph2dot: show timebase information for audio links

7 years agoaf_aresample: do not request a buffer with AV_PERM_REUSE2 permissions in filter_samples()
Stefano Sabatini [Fri, 16 Sep 2011 23:18:53 +0000 (01:18 +0200)]
af_aresample: do not request a buffer with AV_PERM_REUSE2 permissions in filter_samples()

That was pointless. Simplify.

7 years agomjpegdec: Remove buggy avid hacks, they dont do anything good with any file i found
Michael Niedermayer [Fri, 16 Sep 2011 21:06:47 +0000 (23:06 +0200)]
mjpegdec: Remove buggy avid hacks, they dont do anything good with any file i found
Fix multi plane jpeg
Fixes ticket471

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
7 years agoMerge remote-tracking branch 'qatar/master'
Michael Niedermayer [Fri, 16 Sep 2011 19:43:40 +0000 (21:43 +0200)]
Merge remote-tracking branch 'qatar/master'

* qatar/master:
  libx264: introduce slice-max-size option
  Fixed size given to init_get_bits().

Merged-by: Michael Niedermayer <michaelni@gmx.at>
7 years agolavf/utils: rewrite real fps calculation code.
Michael Niedermayer [Fri, 16 Sep 2011 18:40:08 +0000 (20:40 +0200)]
lavf/utils: rewrite real fps calculation code.
The new code is free of biasing to the first timestamps
Fixes fraps.fps.test.zip

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
7 years agolavdev/lavfi: reindent after the last commit
Stefano Sabatini [Mon, 29 Aug 2011 15:54:21 +0000 (17:54 +0200)]
lavdev/lavfi: reindent after the last commit

7 years agolavdev/lavfi: add audio support
Stefano Sabatini [Thu, 18 Aug 2011 13:39:24 +0000 (15:39 +0200)]
lavdev/lavfi: add audio support

7 years agolavfi: refactor query_formats and auto-insert audio conversion filters
Mina Nagy Zaki [Wed, 13 Jul 2011 15:04:03 +0000 (18:04 +0300)]
lavfi: refactor query_formats and auto-insert audio conversion filters

Behaviour has been changed to fail negotiation if fields have been
left empty.

Patch was originally based on a patch by Hemanth.

Signed-off-by: Stefano Sabatini <stefasab@gmail.com>
7 years agolavfi: add audio convert filter
Stefano Sabatini [Mon, 4 Jul 2011 08:35:39 +0000 (11:35 +0300)]
lavfi: add audio convert filter

Add aconvert filter to perform sample format, channel layout, and
packing format conversion.

The aconvert code depends on audio conversion code in libavcodec, so
this requires a dependency on libavcodec.

Based on previous work by S.N. Hemanth Meenakshisundaram and Mina Nagy
Zaki, performed for the GSoC 2010 and 2011.

7 years agolavfi: add and use an inlink variable in avfilter_config_links()
Stefano Sabatini [Fri, 16 Sep 2011 16:46:09 +0000 (18:46 +0200)]
lavfi: add and use an inlink variable in avfilter_config_links()

Simplify expressions, improve readability.

7 years agolavfi: set link audio time_base if not set in avfilter_config_links()
Stefano Sabatini [Fri, 16 Sep 2011 10:38:31 +0000 (12:38 +0200)]
lavfi: set link audio time_base if not set in avfilter_config_links()

The set value depends on the input link, or on the sample_rate value.
Avoids the need to explicitely set the time_base value.

7 years agomxfenc: Add support for MPEG-2 MP@HL-14 in mxf container
Daniel Kristjansson [Fri, 16 Sep 2011 16:16:30 +0000 (18:16 +0200)]
mxfenc: Add support for MPEG-2 MP@HL-14 in mxf container

Support Main Profile at High 1440 Level in MXF container,
using essence coding label from SMPTE RDD 9, table 6.

7 years agolibx264: introduce slice-max-size option
Luca Barbato [Fri, 16 Sep 2011 02:30:10 +0000 (04:30 +0200)]
libx264: introduce slice-max-size option

Yet another option useful for low latency streaming.

7 years agoffprobe: fix crash with -h.
Clément Bœsch [Fri, 16 Sep 2011 12:31:42 +0000 (14:31 +0200)]
ffprobe: fix crash with -h.

7 years agodoc: fix x264_opts/x264opts typo.
Clément Bœsch [Fri, 16 Sep 2011 09:50:06 +0000 (11:50 +0200)]
doc: fix x264_opts/x264opts typo.

7 years agodshow: remove filters from graph before releasing them
Ramiro Polla [Tue, 13 Sep 2011 17:56:28 +0000 (14:56 -0300)]
dshow: remove filters from graph before releasing them

Signed-off-by: Stefano Sabatini <stefasab@gmail.com>
7 years agodshow: reset list for each filter removed
Ramiro Polla [Tue, 13 Sep 2011 17:55:08 +0000 (14:55 -0300)]
dshow: reset list for each filter removed

Signed-off-by: Stefano Sabatini <stefasab@gmail.com>
7 years agodshow: invert condition to avoid leaking objects
Ramiro Polla [Fri, 9 Sep 2011 03:16:17 +0000 (00:16 -0300)]
dshow: invert condition to avoid leaking objects

Signed-off-by: Stefano Sabatini <stefasab@gmail.com>
7 years agodshow: cleanup internal references on capture interface
Ramiro Polla [Fri, 9 Sep 2011 03:16:06 +0000 (00:16 -0300)]
dshow: cleanup internal references on capture interface

Signed-off-by: Stefano Sabatini <stefasab@gmail.com>
7 years agodshow: release pin on disconnect
Ramiro Polla [Fri, 9 Sep 2011 03:15:54 +0000 (00:15 -0300)]
dshow: release pin on disconnect

Signed-off-by: Stefano Sabatini <stefasab@gmail.com>
7 years agodoc: add documentation for dshow indev
Ramiro Polla [Fri, 9 Sep 2011 03:15:41 +0000 (00:15 -0300)]
doc: add documentation for dshow indev

Signed-off-by: Stefano Sabatini <stefasab@gmail.com>