ffmpeg.git
8 years agoffplay: dont drop all frames if realtime decoding is impossible
Michael Niedermayer [Wed, 14 Sep 2011 12:56:59 +0000 (14:56 +0200)]
ffplay: dont drop all frames if realtime decoding is impossible

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
8 years agodvdsubdec: fix bad free in dvdsub_init
Kelly Anderson [Wed, 14 Sep 2011 05:14:37 +0000 (07:14 +0200)]
dvdsubdec: fix bad free in dvdsub_init

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
8 years agoMerge remote-tracking branch 'hexene/scratchpad'
Michael Niedermayer [Tue, 13 Sep 2011 23:23:16 +0000 (01:23 +0200)]
Merge remote-tracking branch 'hexene/scratchpad'

* hexene/scratchpad:
  Move & Rename buildscript, remove tabs
  Fix regular build
  Support (H/W accelerated) H.264 decoding on Android via Stagefright
  Add build-script for Android
  C++ Support ;)

Conflicts:
Changelog
Makefile
configure
libavcodec/Makefile
libavcodec/allcodecs.c
libavcodec/version.h

Merged-by: Michael Niedermayer <michaelni@gmx.at>
8 years agoMuxing WTV is supported.
Carl Eugen Hoyos [Tue, 13 Sep 2011 23:21:15 +0000 (01:21 +0200)]
Muxing WTV is supported.

8 years agowtvenc: add some asserts because iam paranoid
Michael Niedermayer [Tue, 13 Sep 2011 23:08:01 +0000 (01:08 +0200)]
wtvenc: add some asserts because iam paranoid

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
8 years agoWTV muxer (2_wtvenc.patch, 3_add_wtv_muxer.patch)
zhentan feng [Tue, 13 Sep 2011 09:54:44 +0000 (17:54 +0800)]
WTV muxer (2_wtvenc.patch, 3_add_wtv_muxer.patch)

8 years agoswscale: drop redundant code.
Michael Niedermayer [Tue, 13 Sep 2011 22:32:18 +0000 (00:32 +0200)]
swscale: drop redundant code.

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
8 years agoswscale: add 14bit support to the "MMX/SSE2/SSSE3/SSE4 versions for horizontal scaling"
Michael Niedermayer [Tue, 13 Sep 2011 22:18:16 +0000 (00:18 +0200)]
swscale: add 14bit support to the "MMX/SSE2/SSSE3/SSE4 versions for horizontal scaling"

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
8 years agoswscale: remove unused and forgotten file.
Michael Niedermayer [Tue, 13 Sep 2011 22:05:19 +0000 (00:05 +0200)]
swscale: remove unused and forgotten file.

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
8 years agoRevert "Check if dxva2api.h is recent enough to compile vc1_dxva2_hwaccel."
Michael Niedermayer [Tue, 13 Sep 2011 21:56:13 +0000 (23:56 +0200)]
Revert "Check if dxva2api.h is recent enough to compile vc1_dxva2_hwaccel."

This reverts commit 9104cd5161ec7cb31361f3dabd73a8a813d4f7d0.
Revert requested by ramiro

Conflicts:

configure

8 years agodoc/ffmpeg: s/avserver/ffserver/
Michael Niedermayer [Tue, 13 Sep 2011 21:52:43 +0000 (23:52 +0200)]
doc/ffmpeg: s/avserver/ffserver/
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
8 years agoMerge remote-tracking branch 'qatar/master'
Michael Niedermayer [Tue, 13 Sep 2011 21:31:17 +0000 (23:31 +0200)]
Merge remote-tracking branch 'qatar/master'

* qatar/master:
  sws: implement MMX/SSE2/SSSE3/SSE4 versions for horizontal scaling.
  include stdint.h in adpcm_data.h
  mpeg12: reorder functions to avoid ugly forward declarations
  Fixed off by one packet size allocation in the smacker demuxer.
  Check for invalid packet size in the smacker demuxer.
  ape demuxer: fix segfault on memory allocation failure.
  xan: Add some buffer checks
  xan: Remove extra trailing newline
  Fixed size given to init_get_bits() in xan decoder.

Conflicts:
libavcodec/mpeg12.c
libswscale/x86/swscale_template.c

Merged-by: Michael Niedermayer <michaelni@gmx.at>
8 years agoffprobe: rename print_{int,str}_f callbacks to print_{integer,string}.
Clément Bœsch [Tue, 13 Sep 2011 20:47:30 +0000 (22:47 +0200)]
ffprobe: rename print_{int,str}_f callbacks to print_{integer,string}.

Renamed for consistency. Also, since print_int() and print_str() are
already defined as macros, the long name version is preferred.

8 years agoffprobe: add JSON output printing format.
Clément Bœsch [Tue, 13 Sep 2011 20:37:54 +0000 (22:37 +0200)]
ffprobe: add JSON output printing format.

8 years agoffprobe: replace fmt callback with str callback.
Clément Bœsch [Mon, 12 Sep 2011 17:22:53 +0000 (19:22 +0200)]
ffprobe: replace fmt callback with str callback.

Having a string callback is much more simpler than a variable args
one for writers to deal with, especially when dealing with escaping.

This patch also introduces a local fast_asprintf() function which is
similar to av_asprintf() but avoids reallocating at each print (leading
to a performance issue).

8 years agoMerge avconv.texi in ffmpeg.texi
Michael Niedermayer [Tue, 13 Sep 2011 18:34:19 +0000 (20:34 +0200)]
Merge avconv.texi in ffmpeg.texi

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
8 years agosws: implement MMX/SSE2/SSSE3/SSE4 versions for horizontal scaling.
Ronald S. Bultje [Tue, 13 Sep 2011 16:53:42 +0000 (09:53 -0700)]
sws: implement MMX/SSE2/SSSE3/SSE4 versions for horizontal scaling.

Speed: from 3.9x to 9.6x speed improvement over C, and some small
(up to 15%) speed improvements over existing MMX code (particularly
for bigger filters).

8 years agoconfigure: slightly more robust looking check for math functions.
Michael Niedermayer [Tue, 13 Sep 2011 15:29:49 +0000 (17:29 +0200)]
configure: slightly more robust looking check for math functions.
I dont know on which system the prior check failed but an advanced
linker on some platform might have optimized func() out as unreachable.

Patch taken from http://floss.freebox.fr
Author: unknown

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
8 years agoffmpeg: fix video synchronization code to be exact on constant fps videos. Fixes...
Michael Niedermayer [Tue, 13 Sep 2011 03:13:34 +0000 (05:13 +0200)]
ffmpeg: fix video synchronization code to be exact on constant fps videos. Fixes Ticket137

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
8 years agoinclude stdint.h in adpcm_data.h
Justin Ruggles [Tue, 13 Sep 2011 14:59:47 +0000 (10:59 -0400)]
include stdint.h in adpcm_data.h

fixes make checkheaders

8 years agompeg12: reorder functions to avoid ugly forward declarations
Diego Biurrun [Thu, 8 Sep 2011 17:19:18 +0000 (19:19 +0200)]
mpeg12: reorder functions to avoid ugly forward declarations

8 years agoffplay: remove thread command line option code, it is unneeded for -threads X to...
Michael Niedermayer [Tue, 13 Sep 2011 13:03:59 +0000 (15:03 +0200)]
ffplay: remove thread command line option code, it is unneeded for -threads X to work.

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
8 years agoavcodec: move "thread emulation" warning to common code
Michael Niedermayer [Tue, 13 Sep 2011 12:40:13 +0000 (14:40 +0200)]
avcodec: move "thread emulation" warning  to common code

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
8 years agoFix false positive when detecting dxva2.
Carl Eugen Hoyos [Tue, 13 Sep 2011 08:11:16 +0000 (10:11 +0200)]
Fix false positive when detecting dxva2.

8 years agolibavformat/utils: print ts in the "invalid dts/pts combination" case.
Michael Niedermayer [Tue, 13 Sep 2011 02:27:41 +0000 (04:27 +0200)]
libavformat/utils: print ts in the "invalid dts/pts combination" case.

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
8 years agovf_remove_logo: domt access vf->next->query_format() directly but use the API.
Michael Niedermayer [Tue, 13 Sep 2011 01:52:30 +0000 (03:52 +0200)]
vf_remove_logo: domt access vf->next->query_format() directly but use the API.
This fixes a crash

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
8 years agosmacker: fix a few off by 1 errors
Michael Niedermayer [Mon, 12 Sep 2011 23:14:44 +0000 (01:14 +0200)]
smacker: fix a few off by 1 errors
stereo & 16bit is untested due to lack of samples

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
8 years agodvdsubdec: Move colormap and alpha to context
Joakim Plate [Mon, 12 Sep 2011 19:11:15 +0000 (21:11 +0200)]
dvdsubdec: Move colormap and alpha to context

This makes it rememember old values should the stream not
contain new values for these for each subtitle.

8 years agosmacker: add forgotten *
Michael Niedermayer [Mon, 12 Sep 2011 21:45:21 +0000 (23:45 +0200)]
smacker: add forgotten *
found by fenrir

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
8 years agoFixed off by one packet size allocation in the smacker demuxer.
Laurent Aimar [Mon, 12 Sep 2011 18:50:34 +0000 (20:50 +0200)]
Fixed off by one packet size allocation in the smacker demuxer.

Signed-off-by: Martin Storsjö <martin@martin.st>
8 years agoCheck for invalid packet size in the smacker demuxer.
Laurent Aimar [Mon, 12 Sep 2011 18:50:13 +0000 (20:50 +0200)]
Check for invalid packet size in the smacker demuxer.

Signed-off-by: Martin Storsjö <martin@martin.st>
8 years agolibx264: fix overwriting presets with flags2
Andrew Wason [Mon, 12 Sep 2011 19:55:34 +0000 (15:55 -0400)]
libx264: fix overwriting presets with flags2

This fixes overwriting x264 preset settings for flags2 based options.
See https://ffmpeg.org/trac/ffmpeg/ticket/448

8 years agoasf: only try to read asf index once
Joakim Plate [Mon, 12 Sep 2011 19:35:32 +0000 (21:35 +0200)]
asf: only try to read asf index once

This avoid retrying to read ASF index in files for every
attempt to seek. This makes a big difference to protocols
with slow seeking (for example http)

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
8 years agolavfi: bump minor and update APIchanges after recent updates
Stefano Sabatini [Mon, 12 Sep 2011 19:59:00 +0000 (21:59 +0200)]
lavfi: bump minor and update APIchanges after recent updates

These changes were forgotten in commits:
  lavfi: simplify signature for avfilter_get_audio_buffer() and friends
  (commit 2c0317419bc8c7f28496d5181d951bbe8837071f)
and
  lavfi: consistently use int for sample_rate in AVFilterLink and AVFilterBufferRefAudioProps
  (commit 4381bddc9f93da34a44e683bdc4c05c6f061244e)

8 years agosegafilm: Fix potential division by 0 on corrupted segafilm streams in the demuxer.
Laurent Aimar [Mon, 12 Sep 2011 19:09:57 +0000 (21:09 +0200)]
segafilm: Fix potential division by 0 on corrupted segafilm streams in the demuxer.

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
8 years agosegafilm: Check for memory allocation failures in segafilm demuxer.
Laurent Aimar [Mon, 12 Sep 2011 18:58:35 +0000 (20:58 +0200)]
segafilm: Check for memory allocation failures in segafilm demuxer.

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
8 years agolibx264: fix overwriting preset rc_lookahead
Andrew Wason [Mon, 12 Sep 2011 19:08:45 +0000 (15:08 -0400)]
libx264: fix overwriting preset rc_lookahead

This fixes https://ffmpeg.org/trac/ffmpeg/ticket/448 - at least for
rc_lookahead. A similar problem still exists for the flags2 based
options.

8 years agodvdsubdec: Support palette information for vobsub's stored as text in extradata
Joakim Plate [Sun, 11 Sep 2011 17:02:09 +0000 (19:02 +0200)]
dvdsubdec: Support palette information for vobsub's stored as text in extradata

This is how mkv's store palette information for vobsubs

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
8 years agoape demuxer: fix segfault on memory allocation failure.
Laurent Aimar [Sun, 11 Sep 2011 17:17:40 +0000 (19:17 +0200)]
ape demuxer: fix segfault on memory allocation failure.

Signed-off-by: Anton Khirnov <anton@khirnov.net>
8 years agoMerge remote-tracking branch 'qatar/master'
Michael Niedermayer [Mon, 12 Sep 2011 18:49:20 +0000 (20:49 +0200)]
Merge remote-tracking branch 'qatar/master'

* qatar/master:
  adpcm: split ADPCM encoders and decoders into separate files.
  doc/avconv: fix typo.
  rv34: check that subsequent slices have the same type as first one.
  smacker demuxer: handle possible av_realloc() failure.
  lavfi: add split filter from soc.
  lavfi: add showinfo filter
  libxavs: add private options corresponding to deprecated global options

Conflicts:
Changelog
libavcodec/adpcm.c
libavfilter/avfilter.h
libavfilter/vf_showinfo.c
libavfilter/vf_split.c
libavformat/smacker.c

Merged-by: Michael Niedermayer <michaelni@gmx.at>
8 years agoxan: Add some buffer checks
Alex Converse [Fri, 9 Sep 2011 23:10:03 +0000 (16:10 -0700)]
xan: Add some buffer checks

8 years agoxan: Remove extra trailing newline
Alex Converse [Fri, 9 Sep 2011 23:13:52 +0000 (16:13 -0700)]
xan: Remove extra trailing newline

8 years agoFixed size given to init_get_bits() in xan decoder.
Laurent Aimar [Fri, 9 Sep 2011 22:32:12 +0000 (00:32 +0200)]
Fixed size given to init_get_bits() in xan decoder.

8 years agodshow: indent
Ramiro Polla [Fri, 9 Sep 2011 03:09:42 +0000 (00:09 -0300)]
dshow: indent

Signed-off-by: Stefano Sabatini <stefano.sabatini-lala@poste.it>
8 years agodshow: add option to list devices
Ramiro Polla [Fri, 9 Sep 2011 03:09:23 +0000 (00:09 -0300)]
dshow: add option to list devices

Signed-off-by: Stefano Sabatini <stefano.sabatini-lala@poste.it>
8 years agodshow: factorise cycling through devices
Ramiro Polla [Fri, 9 Sep 2011 03:08:43 +0000 (00:08 -0300)]
dshow: factorise cycling through devices

Signed-off-by: Stefano Sabatini <stefano.sabatini-lala@poste.it>
8 years agolavfi: consistently use int for sample_rate in AVFilterLink and AVFilterBufferRefAudi...
Stefano Sabatini [Sun, 21 Aug 2011 17:17:24 +0000 (19:17 +0200)]
lavfi: consistently use int for sample_rate in AVFilterLink and AVFilterBufferRefAudioProps

Also consistent with AVCodecContext.sample_rate. Simplify/avoid
pointless type checks and conversions.

Breaks audio API/ABI.

8 years agolavfi: simplify signature for avfilter_get_audio_buffer() and friends
Stefano Sabatini [Tue, 30 Aug 2011 21:22:29 +0000 (23:22 +0200)]
lavfi: simplify signature for avfilter_get_audio_buffer() and friends

The additional parameters were never used and are complicating the
function interface. Also, they were inconsistent with the way the
video API works.

So this assumes that a requested samples buffer will have *always* the
format specified in the requested link.

This breaks audio filtering API and ABI.

8 years agomxfdec: skip to end of structural sets This fixes reading of partition packs. The...
Philip de Nier [Mon, 12 Sep 2011 10:13:44 +0000 (11:13 +0100)]
mxfdec: skip to end of structural sets This fixes reading of partition packs. The code stops reading after the operational pattern and should skip the array of essence container labels that follow

8 years agogitignore: ignore .exp files, as generated by the MS linker on win32
Hendrik Leppkes [Mon, 12 Sep 2011 15:45:25 +0000 (17:45 +0200)]
gitignore: ignore .exp files, as generated by the MS linker on win32

Ignore another filetype, as generated by Microsofts lib.exe when creating the import libraries.

8 years agoadpcm: split ADPCM encoders and decoders into separate files.
Justin Ruggles [Wed, 7 Sep 2011 22:34:09 +0000 (18:34 -0400)]
adpcm: split ADPCM encoders and decoders into separate files.

Move shared tables to a separate file as well.

8 years agodoc/avconv: fix typo.
Anton Khirnov [Mon, 12 Sep 2011 08:40:43 +0000 (10:40 +0200)]
doc/avconv: fix typo.

8 years agorv34: check that subsequent slices have the same type as first one.
Kostya Shishkov [Mon, 12 Sep 2011 09:39:53 +0000 (11:39 +0200)]
rv34: check that subsequent slices have the same type as first one.

This prevents some crashes when corrupted bitstream reports e.g. P-type
slice in I-frame. Official RealVideo decoder demands all slices to be
of the same type too.

Signed-off-by: Anton Khirnov <anton@khirnov.net>
8 years agosmacker demuxer: handle possible av_realloc() failure.
Kostya Shishkov [Mon, 12 Sep 2011 07:40:42 +0000 (09:40 +0200)]
smacker demuxer: handle possible av_realloc() failure.

Signed-off-by: Anton Khirnov <anton@khirnov.net>
8 years agoffmpeg: remove unused data_codec_name.
Clément Bœsch [Mon, 12 Sep 2011 10:05:15 +0000 (12:05 +0200)]
ffmpeg: remove unused data_codec_name.

8 years agoffmpeg: set {audio,video,subtitle}_codec_name const.
Clément Bœsch [Mon, 12 Sep 2011 10:02:41 +0000 (12:02 +0200)]
ffmpeg: set {audio,video,subtitle}_codec_name const.

This fixes "assignment discards ‘const’ qualifier from pointer target
type." warnings.

8 years agoffmpeg: a bit more consistent prototypes.
Clément Bœsch [Mon, 12 Sep 2011 09:44:14 +0000 (11:44 +0200)]
ffmpeg: a bit more consistent prototypes.

8 years agolavfi: add split filter from soc.
Bobby Bingham [Sat, 21 May 2011 14:46:11 +0000 (16:46 +0200)]
lavfi: add split filter from soc.

Some fixes by Stefano.
For detailed authorship see SOC repo

Signed-off-by: Anton Khirnov <anton@khirnov.net>
8 years agolavfi: add showinfo filter
Stefano Sabatini [Sat, 23 Apr 2011 18:55:34 +0000 (20:55 +0200)]
lavfi: add showinfo filter

Signed-off-by: Anton Khirnov <anton@khirnov.net>
8 years agolibxavs: add private options corresponding to deprecated global options
Anton Khirnov [Sun, 11 Sep 2011 06:14:43 +0000 (08:14 +0200)]
libxavs: add private options corresponding to deprecated global options

Code mostly copied from libx264 wrapper.

8 years agoalsa: increase max buffer size
Michael Niedermayer [Mon, 12 Sep 2011 04:16:40 +0000 (06:16 +0200)]
alsa: increase max buffer size
Fixes Ticket373

Thanks to llogan for testing

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
8 years agoh264: improve MAX_SLICES too small check so it gives less false positives.
Michael Niedermayer [Mon, 12 Sep 2011 04:06:43 +0000 (06:06 +0200)]
h264: improve MAX_SLICES too small check so it gives less false positives.
Fixes Ticket273

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
8 years agodoc: replace avserver by ffserver as we have not done that rename
Michael Niedermayer [Mon, 12 Sep 2011 02:17:39 +0000 (04:17 +0200)]
doc: replace avserver by ffserver as we have not done that rename

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
8 years agormdec: Check return value of more avio_seek calls
Joakim Plate [Mon, 12 Sep 2011 02:08:06 +0000 (04:08 +0200)]
rmdec: Check return value of more avio_seek calls

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
8 years agoavidec: Check return value of more avio_seek calls
Joakim Plate [Mon, 12 Sep 2011 02:07:36 +0000 (04:07 +0200)]
avidec: Check return value of more avio_seek calls

The move of avio_seek in avi_read_seek is to avoiding modifying
state if the seek would fail.

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
8 years agoasf: Check return value of more avio_seek calls
Joakim Plate [Mon, 12 Sep 2011 02:06:55 +0000 (04:06 +0200)]
asf: Check return value of more avio_seek calls
This reduces problems when underlying protocol is not
seekable even if marked as such or if the file has been
cut short.

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
8 years agoFix writes out of bounds in the ogg demuxer.
Laurent Aimar [Sun, 11 Sep 2011 21:37:44 +0000 (23:37 +0200)]
Fix writes out of bounds in the ogg demuxer.

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

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
8 years agompeg12dec: if lavc's mpeg2 decoder was asked to drop a frame, it could still output...
Joakim Plate [Mon, 12 Sep 2011 02:03:40 +0000 (04:03 +0200)]
mpeg12dec: if lavc's mpeg2 decoder was asked to drop a frame, it could still output an old frame, and mess up timestamps

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
8 years agoMerge remote-tracking branch 'qatar/master'
Michael Niedermayer [Sun, 11 Sep 2011 21:35:35 +0000 (23:35 +0200)]
Merge remote-tracking branch 'qatar/master'

* qatar/master: (31 commits)
  audioconvert: add explanatory comments to channel_names array
  audioconvert: K&R whitespace cosmetics
  avconv: use correct index when selecting metadata to write to.
  avconv: fix inverted variable
  doc/avconv: document option types (input/output/per-stream/...)
  doc/avtools-common-opts: write a section about stream specifiers.
  doc/avconv: remove two pointless paragraphs.
  doc/avconv: document that global options should be specified first.
  doc/avconv: remove entries for nonexistent options
  doc/avconv: remove documentation for removed 'timestamp' option
  doc: cosmetics, rename fftools-common-opts to avtools-....
  avconv: move streamid_map to options context.
  avconv: extend -vf syntax
  avconv: move top_field_first to options context.
  avconv: move inter/intra matrix to options context.
  avconv: remove -psnr option.
  avconv: remove me_threshold option.
  avconv: move video_rc_override_string to options context.
  avconv: move frame pixel format to the options context.
  avconv: move frame aspect ratio to the options context.
  ...

Conflicts:
avconv.c
cmdutils_common_opts.h
doc/avconv.texi

Merged-by: Michael Niedermayer <michaelni@gmx.at>
8 years agogitignore: add files to git ignore generated on a win32 build
Joakim Plate [Sun, 11 Sep 2011 19:23:53 +0000 (21:23 +0200)]
gitignore: add files to git ignore generated on a win32 build

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
8 years agoFixed invalid read access on extra data in cinepak decoder.
Laurent Aimar [Sun, 11 Sep 2011 17:17:43 +0000 (19:17 +0200)]
Fixed invalid read access on extra data in cinepak decoder.

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
8 years agoFixed segfault on corrupted smacker streams in the demuxer.
Laurent Aimar [Sun, 11 Sep 2011 16:51:52 +0000 (18:51 +0200)]
Fixed segfault on corrupted smacker streams in the demuxer.

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
8 years agoFixed segfaults on corruped smacker streams in the decoder.
Laurent Aimar [Sun, 11 Sep 2011 16:54:01 +0000 (18:54 +0200)]
Fixed segfaults on corruped smacker streams in the decoder.

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
8 years agoFixed segfault on memory allocation failure in ape demuxer.
Laurent Aimar [Sun, 11 Sep 2011 17:17:40 +0000 (19:17 +0200)]
Fixed segfault on memory allocation failure in ape demuxer.

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
8 years agompegts: When playing mpegts over rtp/rtsp/sdp, lavf must still read PAT/SDT to get...
Joakim Plate [Sun, 11 Sep 2011 18:10:22 +0000 (20:10 +0200)]
mpegts: When playing mpegts over rtp/rtsp/sdp, lavf must still read PAT/SDT to get available streams

The code path using for mpegts over rtp doesn't open the demuxer using
mpegts_read_header,
so it never starts listening for PAT/SDT, only uses auto_guess

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
8 years agoaudioconvert: add explanatory comments to channel_names array
Stefano Sabatini [Sat, 10 Sep 2011 23:07:08 +0000 (01:07 +0200)]
audioconvert: add explanatory comments to channel_names array

Signed-off-by: Diego Biurrun <diego@biurrun.de>
8 years agoaudioconvert: K&R whitespace cosmetics
Stefano Sabatini [Sat, 10 Sep 2011 23:06:57 +0000 (01:06 +0200)]
audioconvert: K&R whitespace cosmetics

Signed-off-by: Diego Biurrun <diego@biurrun.de>
8 years agoFix for some non interleaved avi files that gets played twice or won't end
Joakim Plate [Sun, 11 Sep 2011 16:21:07 +0000 (18:21 +0200)]
Fix for some non interleaved avi files that gets played twice or won't end
This changes so we assume EOF when we can't find the next
streams index entry for non interleaved file.

http://trac.xbmc.org/ticket/5585

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
8 years agoAllow reading of growing avi files (ie currently being written)
Joakim Plate [Mon, 28 Jun 2010 05:28:27 +0000 (01:28 -0400)]
Allow reading of growing avi files (ie currently being written)

This uses the RIFF header stored size to figure out the expected AVI file size, instead
of the actual file. To work fully it requires handling failed avio_seek() instead
of assuming they always succeed.

Some fate file has been cut off and contains half a frame at the end which previously
was not output during demuxing. This frame is now output to encoder, thus fate
diff update.

8 years agompeg4videodec: Fix new slice end detection for missing slices.
Michael Niedermayer [Sun, 11 Sep 2011 15:35:42 +0000 (17:35 +0200)]
mpeg4videodec: Fix new slice end detection for missing slices.

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
8 years agoavconv: use correct index when selecting metadata to write to.
Anton Khirnov [Mon, 5 Sep 2011 12:12:28 +0000 (14:12 +0200)]
avconv: use correct index when selecting metadata to write to.

8 years agoavconv: fix inverted variable
Anton Khirnov [Mon, 5 Sep 2011 12:11:13 +0000 (14:11 +0200)]
avconv: fix inverted variable

8 years agodoc/avconv: document option types (input/output/per-stream/...)
Anton Khirnov [Sat, 3 Sep 2011 13:02:52 +0000 (15:02 +0200)]
doc/avconv: document option types (input/output/per-stream/...)

Also trim some redundant stream specifiers descriptions.

8 years agodoc/avtools-common-opts: write a section about stream specifiers.
Anton Khirnov [Sat, 3 Sep 2011 12:55:39 +0000 (14:55 +0200)]
doc/avtools-common-opts: write a section about stream specifiers.

8 years agodoc/avconv: remove two pointless paragraphs.
Anton Khirnov [Sat, 3 Sep 2011 11:02:20 +0000 (13:02 +0200)]
doc/avconv: remove two pointless paragraphs.

They are misleading and carry no useful information.

8 years agodoc/avconv: document that global options should be specified first.
Anton Khirnov [Sat, 3 Sep 2011 10:53:53 +0000 (12:53 +0200)]
doc/avconv: document that global options should be specified first.

8 years agodoc/avconv: remove entries for nonexistent options
Anton Khirnov [Sat, 3 Sep 2011 05:08:55 +0000 (07:08 +0200)]
doc/avconv: remove entries for nonexistent options

8 years agodoc/avconv: remove documentation for removed 'timestamp' option
Anton Khirnov [Fri, 2 Sep 2011 20:53:54 +0000 (22:53 +0200)]
doc/avconv: remove documentation for removed 'timestamp' option

8 years agodoc: cosmetics, rename fftools-common-opts to avtools-....
Anton Khirnov [Fri, 2 Sep 2011 20:17:38 +0000 (22:17 +0200)]
doc: cosmetics, rename fftools-common-opts to avtools-....

8 years agoavconv: move streamid_map to options context.
Anton Khirnov [Fri, 2 Sep 2011 20:07:30 +0000 (22:07 +0200)]
avconv: move streamid_map to options context.

8 years agoavconv: extend -vf syntax
Anton Khirnov [Fri, 2 Sep 2011 19:11:00 +0000 (21:11 +0200)]
avconv: extend -vf syntax

Add a per-stream -filter option, make -vf an alias for -filter:v. Move
vfilters to the options context.

8 years agoavconv: move top_field_first to options context.
Anton Khirnov [Fri, 2 Sep 2011 16:03:31 +0000 (18:03 +0200)]
avconv: move top_field_first to options context.

8 years agoavconv: move inter/intra matrix to options context.
Anton Khirnov [Fri, 2 Sep 2011 15:57:56 +0000 (17:57 +0200)]
avconv: move inter/intra matrix to options context.

8 years agoavconv: remove -psnr option.
Anton Khirnov [Fri, 2 Sep 2011 15:31:14 +0000 (17:31 +0200)]
avconv: remove -psnr option.

It's redundant -- -flags +psnr does the same thing.

8 years agoavconv: remove me_threshold option.
Anton Khirnov [Fri, 2 Sep 2011 15:06:30 +0000 (17:06 +0200)]
avconv: remove me_threshold option.

It's only shadowing the AVOption with the same name.

8 years agoavconv: move video_rc_override_string to options context.
Anton Khirnov [Fri, 2 Sep 2011 14:06:18 +0000 (16:06 +0200)]
avconv: move video_rc_override_string to options context.

8 years agoavconv: move frame pixel format to the options context.
Anton Khirnov [Thu, 1 Sep 2011 06:20:50 +0000 (08:20 +0200)]
avconv: move frame pixel format to the options context.

Also remove redundant -pix_fmt list syntax, it's inconsistent and  only
makes the code more complicated. -pix_fmts should be enough for
everyone.

8 years agoavconv: move frame aspect ratio to the options context.
Anton Khirnov [Thu, 1 Sep 2011 06:20:50 +0000 (08:20 +0200)]
avconv: move frame aspect ratio to the options context.

8 years agoavconv: move frame size to the options context.
Anton Khirnov [Thu, 1 Sep 2011 06:20:50 +0000 (08:20 +0200)]
avconv: move frame size to the options context.

8 years agoavconv: move frame_rate to the options context.
Anton Khirnov [Thu, 1 Sep 2011 06:20:50 +0000 (08:20 +0200)]
avconv: move frame_rate to the options context.