ffmpeg.git
7 years agotools: add ffescape utility
Stefano Sabatini [Mon, 15 Oct 2012 10:17:15 +0000 (12:17 +0200)]
tools: add ffescape utility

7 years agofraps: use meaningful error codes
Paul B Mahol [Thu, 25 Oct 2012 19:47:54 +0000 (19:47 +0000)]
fraps: use meaningful error codes

Signed-off-by: Paul B Mahol <onemda@gmail.com>
7 years agolvfdec: cosmetics: fix identation
Paul B Mahol [Thu, 25 Oct 2012 20:56:20 +0000 (20:56 +0000)]
lvfdec: cosmetics: fix identation

Signed-off-by: Paul B Mahol <onemda@gmail.com>
7 years agolavfi/showspectrum: add sliding mode.
Clément Bœsch [Sun, 21 Oct 2012 19:01:18 +0000 (21:01 +0200)]
lavfi/showspectrum: add sliding mode.

7 years agolavd/lavfi: fix leak in case of failure
Stefano Sabatini [Thu, 25 Oct 2012 19:33:45 +0000 (21:33 +0200)]
lavd/lavfi: fix leak in case of failure

Jump to the common release code in case of failure.

7 years agolavfi/af_volumedetect: print stats in uninit().
Nicolas George [Wed, 17 Oct 2012 17:42:20 +0000 (19:42 +0200)]
lavfi/af_volumedetect: print stats in uninit().

If the stats are printed when request_frame on the input
returns EOF, then they are never printed if the filter is
not flushed, in particular when using the -t ffmpeg option.

Fix trac ticket #1727.

7 years agoRestore installation of libavutil/lzo.h after 2a91ada8282f18d2807abee5188225bba1b19bda
Alexis Ballier [Thu, 25 Oct 2012 12:54:45 +0000 (09:54 -0300)]
Restore installation of libavutil/lzo.h after 2a91ada8282f18d2807abee5188225bba1b19bda

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
7 years agolavfi/vf_fps: allow to set the rounding method.
Nicolas George [Thu, 25 Oct 2012 15:58:08 +0000 (17:58 +0200)]
lavfi/vf_fps: allow to set the rounding method.

By default, fps selects frames near PTS 0, 0.5, 1.5, 2.5, etc.
With round=down, it selects the frames near PTS 0, 1, 2, 3, etc.

7 years agoffserver: fix printf argument type
Martin Ettl [Thu, 25 Oct 2012 16:34:32 +0000 (16:34 +0000)]
ffserver: fix printf argument type

7 years agodsicinav: return proper error code in case of malloc failure
Paul B Mahol [Thu, 25 Oct 2012 13:46:19 +0000 (13:46 +0000)]
dsicinav: return proper error code in case of malloc failure

Fixes null pointer dereference.

Signed-off-by: Paul B Mahol <onemda@gmail.com>
7 years agodsicinav: return meaningful error code
Paul B Mahol [Thu, 25 Oct 2012 12:59:34 +0000 (12:59 +0000)]
dsicinav: return meaningful error code

While here remove redundant references in error message.

Signed-off-by: Paul B Mahol <onemda@gmail.com>
7 years agomxfenc: Write MultipleDescriptor ref in Preface
Tomas Härdin [Thu, 25 Oct 2012 08:23:59 +0000 (10:23 +0200)]
mxfenc: Write MultipleDescriptor ref in Preface

Reviewed-by: Matthieu Bouron <matthieu.bouron@gmail.com>
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
7 years agoaacdec: reorder multiuplications to make code safer against too large input values.
Michael Niedermayer [Thu, 25 Oct 2012 11:42:02 +0000 (13:42 +0200)]
aacdec: reorder multiuplications to make code safer against too large input values.

Fixes CID700697
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
7 years agoMerge remote-tracking branch 'qatar/master'
Michael Niedermayer [Thu, 25 Oct 2012 11:15:58 +0000 (13:15 +0200)]
Merge remote-tracking branch 'qatar/master'

* qatar/master:
  avutil: Make LZO decoder code configure-time selectable
  avutil: Move memcpy_backptr() to mem.c
  configure: detect parisc64 automatically
  configure: detect ppc64 automatically
  configure: detect mips64 automatically
  configure: generalise 64-bit test
  smoothstreamingenc: Don't assume streams start from timestamp 0

Conflicts:
configure
libavutil/Makefile
libavutil/lzo.c
libavutil/lzo.h
libavutil/mem.c
libavutil/mem.h

Merged-by: Michael Niedermayer <michaelni@gmx.at>
7 years agoavutil: Make LZO decoder code configure-time selectable
Diego Biurrun [Thu, 18 Oct 2012 17:48:27 +0000 (19:48 +0200)]
avutil: Make LZO decoder code configure-time selectable

7 years agoavutil: Move memcpy_backptr() to mem.c
Diego Biurrun [Thu, 18 Oct 2012 17:27:51 +0000 (19:27 +0200)]
avutil: Move memcpy_backptr() to mem.c

The function is used elsewhere and does not belong with the LZO code.

7 years agompegvideo: fix lowres on field pictures
Michael Niedermayer [Thu, 25 Oct 2012 02:03:58 +0000 (04:03 +0200)]
mpegvideo: fix lowres on field pictures

Fixes Ticket1846

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
7 years agofate: reenable some recently lost audio tests
Michael Niedermayer [Thu, 25 Oct 2012 01:13:32 +0000 (03:13 +0200)]
fate: reenable some recently lost audio tests

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
7 years agoffmpeg: fix null ptr deref in psnr printing code
Michael Niedermayer [Wed, 24 Oct 2012 23:16:34 +0000 (01:16 +0200)]
ffmpeg: fix null ptr deref in psnr printing code

Fixes CID205005
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
7 years agoroqaudioenc: remove dead code
Michael Niedermayer [Wed, 24 Oct 2012 23:01:17 +0000 (01:01 +0200)]
roqaudioenc: remove dead code

Fixes CID703669
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
7 years agoqt-faststart: check return of ftello()
Michael Niedermayer [Wed, 24 Oct 2012 22:39:33 +0000 (00:39 +0200)]
qt-faststart: check return of ftello()

Fixes CID739863
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
7 years agoasfdec: fixed signedness in comparission
Michael Niedermayer [Wed, 24 Oct 2012 22:35:55 +0000 (00:35 +0200)]
asfdec: fixed signedness in comparission

Fixes CID739864
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
7 years agocmdutils: fix unclosed file on error
Michael Niedermayer [Wed, 24 Oct 2012 22:32:34 +0000 (00:32 +0200)]
cmdutils: fix unclosed file on error

Fixes CID739865
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
7 years agomov_probe: use correct variable
Michael Niedermayer [Wed, 24 Oct 2012 22:23:29 +0000 (00:23 +0200)]
mov_probe: use correct variable

Fixes CID739867
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
7 years agocmdutils: remove writes in never read variable
Michael Niedermayer [Wed, 24 Oct 2012 22:19:59 +0000 (00:19 +0200)]
cmdutils: remove writes in never read variable

Fixes CID739868
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
7 years agolavf/srtenc: set codec to subrip by default.
Clément Bœsch [Sun, 21 Oct 2012 01:12:04 +0000 (03:12 +0200)]
lavf/srtenc: set codec to subrip by default.

We don't have a text encoder yet, so this commit makes automatic
encoding working with srt output.

7 years agolavf/srtenc: simplify timing printing.
Clément Bœsch [Sun, 21 Oct 2012 00:49:01 +0000 (02:49 +0200)]
lavf/srtenc: simplify timing printing.

7 years agosrt: make the demuxer output SubRip packets.
Clément Bœsch [Wed, 24 Oct 2012 22:01:42 +0000 (00:01 +0200)]
srt: make the demuxer output SubRip packets.

The SRT format should never have outputted CODEC_ID_SRT packets in the
first place: SRT is a subtitle format containing SubRip text markup
events. The timing information is part of the format, not the codec, and
thus CODEC_ID_SRT should not exist.

Creating packets with the timing information within the payload only
leads to problem (such as remuxing with timing alteration not working),
especially when the SubRip markup is being used in container like
Matroska in addition to this standalone SRT format.

The main reason the timing line was included in those CODEC_ID_SRT
packets is likely because it contained extra information (the event
position) the codec actually needs. This issue is solved by using the
AV_PKT_DATA_SUBTITLE_POSITION side data type.

7 years agolavc: add AV_PKT_DATA_SUBTITLE_POSITION side data type.
Clément Bœsch [Wed, 24 Oct 2012 21:58:15 +0000 (23:58 +0200)]
lavc: add AV_PKT_DATA_SUBTITLE_POSITION side data type.

This commit introduces a new packet side data type for the subtitle
position information. This is meant to be used by the SRT format where
that information is stored along with the timing, which is not part of
the subrip packets.

7 years agolavc/utils: make sub decode consistent with A/V.
Clément Bœsch [Sat, 20 Oct 2012 22:16:11 +0000 (00:16 +0200)]
lavc/utils: make sub decode consistent with A/V.

This allows side data to be transmitted properly with subtitles.

7 years agolavf/srtdec: simplify start/end computation.
Clément Bœsch [Sat, 20 Oct 2012 19:21:34 +0000 (21:21 +0200)]
lavf/srtdec: simplify start/end computation.

Also fix potential overflow (CID733778)

7 years agoffprobe: add an array of section print buffers to the WriterContext
Stefano Sabatini [Wed, 24 Oct 2012 10:06:21 +0000 (12:06 +0200)]
ffprobe: add an array of section print buffers to the WriterContext

Allow to factorize buffers initialization/release, for all the writers
which use it. Simplify.

7 years agoDoxyfile: update examples path and patterns
Stefano Sabatini [Wed, 24 Oct 2012 14:51:19 +0000 (16:51 +0200)]
Doxyfile: update examples path and patterns

7 years agodoc/texi2pod.pl: drop unnecessary rule, which was converting "\," to ","
Stefano Sabatini [Wed, 24 Oct 2012 14:39:32 +0000 (16:39 +0200)]
doc/texi2pod.pl: drop unnecessary rule, which was converting "\," to ","

I cannot find a reason for such a rule, which was resulting in badly
escaped filtergraph snippets.

Fix trac ticket #1610.

7 years agofourcc2pixfmt: fix compilation
Michael Niedermayer [Wed, 24 Oct 2012 20:19:46 +0000 (22:19 +0200)]
fourcc2pixfmt: fix compilation

If someone finds a cleaner fix, dont hesitate to revert this!

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
7 years agolibavfilter: include needed header for AVDictionary
Michael Niedermayer [Wed, 24 Oct 2012 19:54:24 +0000 (21:54 +0200)]
libavfilter: include needed header for AVDictionary

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
7 years agohttp: add -content_type user option.
Clément Bœsch [Tue, 23 Oct 2012 09:13:42 +0000 (11:13 +0200)]
http: add -content_type user option.

7 years agopgmyuvenc: do not create files which are not supported
Paul B Mahol [Wed, 24 Oct 2012 18:38:31 +0000 (18:38 +0000)]
pgmyuvenc: do not create files which are not supported

It is possible to support files with odd width and/or height
if real width and height are stored in header.

Signed-off-by: Paul B Mahol <onemda@gmail.com>
7 years agolavf: const correctness for avformat_new_stream
Paul B Mahol [Wed, 24 Oct 2012 14:29:05 +0000 (14:29 +0000)]
lavf: const correctness for avformat_new_stream

Signed-off-by: Paul B Mahol <onemda@gmail.com>
7 years agomxfenc: Fix possible integer overflows
Tomas Härdin [Wed, 24 Oct 2012 15:06:49 +0000 (17:06 +0200)]
mxfenc: Fix possible integer overflows

None of these are likely unless the user is writing a file with two billion
streams or a duration of around two months.

This fixes CIDs 700568, 700569, 700570, 700571, 700572 and 700573.

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
7 years agomxfdec: Fix potential leak in mxf_read_local_tags()
Tomas Härdin [Wed, 24 Oct 2012 14:54:25 +0000 (16:54 +0200)]
mxfdec: Fix potential leak in mxf_read_local_tags()

This fixes CID 733800.

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
7 years agomxfdec: Fix a potential DoS vector in mxf_read_pixel_layout()
Tomas Härdin [Wed, 24 Oct 2012 14:51:41 +0000 (16:51 +0200)]
mxfdec: Fix a potential DoS vector in mxf_read_pixel_layout()

There's a a potential DoS problem in this function. Say an MXF file is
created with a PixelLayout with a long run of non-zeroes. Such a file could be
sent quickly (packed) over the net and would unpack quite fast. mxfdec would
then read it byte-by-byte, which would take considerable time.

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
7 years agomxfdec: Fix CID 732262
Tomas Härdin [Wed, 24 Oct 2012 14:50:26 +0000 (16:50 +0200)]
mxfdec: Fix CID 732262

Coverity thinks ofs can end up 15, thus writing past the end of layout[]. This
is incorrect since it's always incremented by 2. Checking ofs <= 14 makes
Coverity happy and doesn't hurt.

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
7 years agoconfigure: detect parisc64 automatically
Mans Rullgard [Tue, 23 Oct 2012 23:21:15 +0000 (00:21 +0100)]
configure: detect parisc64 automatically

Signed-off-by: Mans Rullgard <mans@mansr.com>
7 years agoconfigure: detect ppc64 automatically
Mans Rullgard [Tue, 23 Oct 2012 22:39:40 +0000 (23:39 +0100)]
configure: detect ppc64 automatically

Signed-off-by: Mans Rullgard <mans@mansr.com>
7 years agoconfigure: detect mips64 automatically
Mans Rullgard [Tue, 23 Oct 2012 22:34:35 +0000 (23:34 +0100)]
configure: detect mips64 automatically

Signed-off-by: Mans Rullgard <mans@mansr.com>
7 years agoconfigure: generalise 64-bit test
Mans Rullgard [Tue, 23 Oct 2012 22:33:44 +0000 (23:33 +0100)]
configure: generalise 64-bit test

Signed-off-by: Mans Rullgard <mans@mansr.com>
7 years agodoc/filters: escape special Texinfo character @ in overlay example
Stefano Sabatini [Wed, 24 Oct 2012 14:50:16 +0000 (16:50 +0200)]
doc/filters: escape special Texinfo character @ in overlay example

7 years agodoc/filters: remove unnecessary and inconsistent double ',' escaping
Stefano Sabatini [Wed, 24 Oct 2012 14:38:53 +0000 (16:38 +0200)]
doc/filters: remove unnecessary and inconsistent double ',' escaping

7 years agodoxygen: disable header/footer/stylesheet
Michael Niedermayer [Wed, 24 Oct 2012 14:47:10 +0000 (16:47 +0200)]
doxygen: disable header/footer/stylesheet

They dont work at all and trash the output totally
also they are unmaintained -> that is if you want to maintain them
contact us !

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
7 years agoavio: detect implicit truncation by assert in avio_w*
Michael Niedermayer [Mon, 15 Oct 2012 14:02:14 +0000 (16:02 +0200)]
avio: detect implicit truncation by assert in avio_w*

This check is somewhat more lenient as would be ideal because we dont
know if the input is signed or unsigned

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
7 years agoavio: avoid implicit truncation in avio_w*
Michael Niedermayer [Mon, 15 Oct 2012 14:01:55 +0000 (16:01 +0200)]
avio: avoid implicit truncation in avio_w*

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
7 years agomatroskaenc: avoid implicit truncation in avio_w*
Michael Niedermayer [Mon, 15 Oct 2012 14:01:14 +0000 (16:01 +0200)]
matroskaenc: avoid implicit truncation in avio_w*

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
7 years agoMerge remote-tracking branch 'qatar/master'
Michael Niedermayer [Wed, 24 Oct 2012 12:26:13 +0000 (14:26 +0200)]
Merge remote-tracking branch 'qatar/master'

* qatar/master:
  asfdec: cosmetics, reformat ff_asf_parse_packet()
  g.723.1: add missing CODEC_CAP_DR1
  avconv: remove now unneeded calls to avcodec_get_frame_defaults().
  lavc: initialize output AVFrame before decoding.

Conflicts:
libavformat/asfdec.c

Merged-by: Michael Niedermayer <michaelni@gmx.at>
7 years agoMerge commit 'c68317ebbe4915035df0b08c23eea7a0b80ab881'
Michael Niedermayer [Wed, 24 Oct 2012 12:18:17 +0000 (14:18 +0200)]
Merge commit 'c68317ebbe4915035df0b08c23eea7a0b80ab881'

* commit 'c68317ebbe4915035df0b08c23eea7a0b80ab881':
  lavc: fix documentation for AVCodecContext.delay
  atrac3: return an error if extradata_size is not a specific known size
  lavc: use the correct API version guard macro for avcodec_encode_audio()
  Move Doxyfile into the doc/ subdirectory
  doxygen: Build Doxygen documentation in the doc/ subdirectory
  dfa: use av_memcpy_backptr() where previously impossible
  av_memcpy_backptr: Drop no longer necessary malloc padding

Conflicts:
.gitignore
libavcodec/avcodec.h

Merged-by: Michael Niedermayer <michaelni@gmx.at>
7 years agoMerge commit 'd82f188504410fdfa446c5682c128c31bb5851a4'
Michael Niedermayer [Wed, 24 Oct 2012 12:10:44 +0000 (14:10 +0200)]
Merge commit 'd82f188504410fdfa446c5682c128c31bb5851a4'

* commit 'd82f188504410fdfa446c5682c128c31bb5851a4':
  Remove need for padding in av_memcpy_backptr()

Conflicts:
libavutil/lzo.h

Merged-by: Michael Niedermayer <michaelni@gmx.at>
7 years agoMerge commit 'ceb754d041f5f6327fd9195a5f43575af9516daa'
Michael Niedermayer [Wed, 24 Oct 2012 12:01:29 +0000 (14:01 +0200)]
Merge commit 'ceb754d041f5f6327fd9195a5f43575af9516daa'

* commit 'ceb754d041f5f6327fd9195a5f43575af9516daa':
  lzo: Use AV_COPY*U macros where appropriate
  prepare 9_beta2 release
  dsputil: Replace AV_WNxx(AV_RNxx()) combinations by AV_COPYxxU
  intreadwrite: Add AV_COPYxxU macros for copying to/from unaligned addresses
  dxtory: Replace AV_WN16A(AV_RN16A()) combination by AV_COPY16
  mp3: properly forward mp_decode_frame errors

Conflicts:
RELEASE
libavcodec/mpegaudiodec.c

Merged-by: Michael Niedermayer <michaelni@gmx.at>
7 years agosmoothstreamingenc: Don't assume streams start from timestamp 0
Martin Storsjö [Tue, 23 Oct 2012 22:05:12 +0000 (01:05 +0300)]
smoothstreamingenc: Don't assume streams start from timestamp 0

Also use dts instead of pts for deciding where to split fragments.

Signed-off-by: Martin Storsjö <martin@martin.st>
7 years agoMerge commit '0c03cc68386443f1e96ab6fb358220faf67cd5ff'
Michael Niedermayer [Wed, 24 Oct 2012 11:31:46 +0000 (13:31 +0200)]
Merge commit '0c03cc68386443f1e96ab6fb358220faf67cd5ff'

* commit '0c03cc68386443f1e96ab6fb358220faf67cd5ff':
  mp3: exit on parsing error in mp_decode_frame
  rtmppkt: Avoid unescaped backslash in Doxygen comment
  fate-lavfi: replace sed/grep/cut combos with awk
  build: Plan 9 support

Conflicts:
configure
tests/lavfi-regression.sh

Merged-by: Michael Niedermayer <michaelni@gmx.at>
7 years agobuild: fix detection of math functions with 2 parameters.
Michael Niedermayer [Wed, 24 Oct 2012 11:15:42 +0000 (13:15 +0200)]
build: fix detection of math functions with 2 parameters.

The code from libav seems to have been entirely untested.

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
7 years agoMerge commit '80521c1997a23e148edf89e11b939ab8646297ca'
Michael Niedermayer [Wed, 24 Oct 2012 10:53:26 +0000 (12:53 +0200)]
Merge commit '80521c1997a23e148edf89e11b939ab8646297ca'

* commit '80521c1997a23e148edf89e11b939ab8646297ca':
  build: allow targets to specify extra objects to link with executables
  swscale: avoid pointless use of compound literals
  libm: add fallbacks for various single-precision functions
  network: use getservbyport() only if available
  network: add fallbacks for INADDR_LOOPBACK and INET_ADDRSTRLEN
  Include sys/time.h before sys/resource.h

Conflicts:
Makefile
configure
libavutil/libm.h

Merged-by: Michael Niedermayer <michaelni@gmx.at>
7 years agoasfdec: cosmetics, reformat ff_asf_parse_packet()
Anton Khirnov [Sat, 20 Oct 2012 15:15:57 +0000 (17:15 +0200)]
asfdec: cosmetics, reformat ff_asf_parse_packet()

7 years agog.723.1: add missing CODEC_CAP_DR1
Anton Khirnov [Wed, 17 Oct 2012 10:16:00 +0000 (12:16 +0200)]
g.723.1: add missing CODEC_CAP_DR1

7 years agoavconv: remove now unneeded calls to avcodec_get_frame_defaults().
Anton Khirnov [Tue, 23 Oct 2012 06:32:56 +0000 (08:32 +0200)]
avconv: remove now unneeded calls to avcodec_get_frame_defaults().

7 years agolavc: initialize output AVFrame before decoding.
Anton Khirnov [Tue, 23 Oct 2012 06:22:23 +0000 (08:22 +0200)]
lavc: initialize output AVFrame before decoding.

Avoids memleaks with audio when extended_data is nontrivial and the user
doesn't reset the frame.
Shouldn't have any effect for video for now, but might be useful in the
future.

7 years agoyuv2rgb: fix integer overflow in fill_gv_table()
Michael Niedermayer [Tue, 23 Oct 2012 23:24:26 +0000 (01:24 +0200)]
yuv2rgb: fix integer overflow in fill_gv_table()

Fixes CID703747
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
7 years agoyuv2rgb: fix integer overflow in fill_table
Michael Niedermayer [Tue, 23 Oct 2012 23:22:56 +0000 (01:22 +0200)]
yuv2rgb: fix integer overflow in fill_table

Fixes CID703748
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
7 years agoswscale_unscaled: remove unused variables
Michael Niedermayer [Tue, 23 Oct 2012 23:09:14 +0000 (01:09 +0200)]
swscale_unscaled: remove unused variables

Fixes CID739472
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
7 years agompegvideo enc: choose VBV buffer size for mpeg4 when none is specified instead of...
Michael Niedermayer [Tue, 23 Oct 2012 22:38:56 +0000 (00:38 +0200)]
mpegvideo enc: choose VBV buffer size for mpeg4 when none is specified instead of failing

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
7 years agompegvideo enc: choose VBV buffer size for mpeg1/2 when none is specified instead...
Michael Niedermayer [Tue, 23 Oct 2012 22:03:06 +0000 (00:03 +0200)]
mpegvideo enc: choose VBV buffer size for mpeg1/2 when none is specified instead of failing

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
7 years agoexamples/decoding_encoding: add and use the decode_write_frame function
Stefano Sabatini [Sat, 20 Oct 2012 09:26:05 +0000 (11:26 +0200)]
examples/decoding_encoding: add and use the decode_write_frame function

Allow to factorize code in video_decode_example(), simplify.

7 years agolavc/utils: fix a few grammar/style nits in log messages
Stefano Sabatini [Tue, 23 Oct 2012 21:34:38 +0000 (23:34 +0200)]
lavc/utils: fix a few grammar/style nits in log messages

In avcodec_open2(), apply consistent casing and avoid "or" conjunction at
the beginning of a sentence, in the messages issued in case of
experimental codec usage.

7 years agolavc/utils: propagate or return meaningful error codes in avcodec_open2()
Stefano Sabatini [Tue, 16 Oct 2012 11:30:52 +0000 (13:30 +0200)]
lavc/utils: propagate or return meaningful error codes in avcodec_open2()

7 years agoDo not detect mov with maximum score if the atom size is too small.
Carl Eugen Hoyos [Tue, 23 Oct 2012 20:41:15 +0000 (22:41 +0200)]
Do not detect mov with maximum score if the atom size is too small.

Fixes mpegts-in-mov, ticket #987 / issue 2223.

7 years agolavd/lavfi: add graph_file option
Stefano Sabatini [Mon, 22 Oct 2012 23:13:23 +0000 (01:13 +0200)]
lavd/lavfi: add graph_file option

Allow to specify a filename where to put the filtergraph description.

This is useful to override limitations or glitches of particular shell
environments, and allows a level of indirection for specifying
filtergraphs.

7 years agolavfi/sendcmd: move buf init() variable to internal scope where it is used
Stefano Sabatini [Tue, 23 Oct 2012 19:42:14 +0000 (21:42 +0200)]
lavfi/sendcmd: move buf init() variable to internal scope where it is used

7 years agolavfi/sendcmd: release file in case of failed allocation
Stefano Sabatini [Mon, 22 Oct 2012 23:42:24 +0000 (01:42 +0200)]
lavfi/sendcmd: release file in case of failed allocation

Avoid hanging file.

7 years agox11: Fix x11grab BadCursor
Isaac Dooley [Tue, 23 Oct 2012 19:39:56 +0000 (21:39 +0200)]
x11: Fix x11grab BadCursor

Fixes Ticket1738

Based-on: A fix found in a perl module (http://ffmpeg.org/pipermail/ffmpeg-user/2012-August/008804.html)
Reviewed-by: Clemens Fruhwirth <clemens@endorphin.org>
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
7 years agolavc: fix documentation for AVCodecContext.delay
Justin Ruggles [Tue, 2 Oct 2012 15:38:34 +0000 (11:38 -0400)]
lavc: fix documentation for AVCodecContext.delay

7 years agoatrac3: return an error if extradata_size is not a specific known size
Justin Ruggles [Mon, 22 Oct 2012 14:44:55 +0000 (10:44 -0400)]
atrac3: return an error if extradata_size is not a specific known size

Also fixes 3 compiler warnings about using uninitialized variables.

7 years agolavc: use the correct API version guard macro for avcodec_encode_audio()
Justin Ruggles [Tue, 23 Oct 2012 17:25:53 +0000 (13:25 -0400)]
lavc: use the correct API version guard macro for avcodec_encode_audio()

7 years agoMove Doxyfile into the doc/ subdirectory
Diego Biurrun [Mon, 22 Oct 2012 14:03:39 +0000 (16:03 +0200)]
Move Doxyfile into the doc/ subdirectory

7 years agodoxygen: Build Doxygen documentation in the doc/ subdirectory
Diego Biurrun [Mon, 22 Oct 2012 14:01:18 +0000 (16:01 +0200)]
doxygen: Build Doxygen documentation in the doc/ subdirectory

7 years agoRemove need for padding in av_memcpy_backptr()
Mans Rullgard [Tue, 23 Oct 2012 17:05:45 +0000 (18:05 +0100)]
Remove need for padding in av_memcpy_backptr()

Signed-off-by: Mans Rullgard <mans@mansr.com>
7 years agodfa: use av_memcpy_backptr() where previously impossible
Mans Rullgard [Tue, 23 Oct 2012 17:17:46 +0000 (18:17 +0100)]
dfa: use av_memcpy_backptr() where previously impossible

Since the requirement for output padding has been lifted, we can
use av_memcpy_backptr() here as well.

Signed-off-by: Mans Rullgard <mans@mansr.com>
7 years agoav_memcpy_backptr: Drop no longer necessary malloc padding
Diego Biurrun [Tue, 23 Oct 2012 17:22:52 +0000 (19:22 +0200)]
av_memcpy_backptr: Drop no longer necessary malloc padding

Signed-off-by: Mans Rullgard <mans@mansr.com>
7 years agopnmdec: use more meaningful error codes
Paul B Mahol [Mon, 22 Oct 2012 22:00:41 +0000 (22:00 +0000)]
pnmdec: use more meaningful error codes

Signed-off-by: Paul B Mahol <onemda@gmail.com>
7 years agolzo: Use AV_COPY*U macros where appropriate
Diego Biurrun [Mon, 22 Oct 2012 17:02:20 +0000 (19:02 +0200)]
lzo: Use AV_COPY*U macros where appropriate

7 years agoprepare 9_beta2 release
Reinhard Tartler [Tue, 23 Oct 2012 16:30:36 +0000 (18:30 +0200)]
prepare 9_beta2 release

7 years agolavf: fix duration estimation for multi program TS
Michael Niedermayer [Tue, 23 Oct 2012 16:11:26 +0000 (18:11 +0200)]
lavf: fix duration estimation for multi program TS

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
7 years agolavf: increase retries to guess duration from pts by 1
Michael Niedermayer [Tue, 23 Oct 2012 14:53:48 +0000 (16:53 +0200)]
lavf: increase retries to guess duration from pts by 1

This fixes finding the duration for one TS file

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
7 years agodsputil: Replace AV_WNxx(AV_RNxx()) combinations by AV_COPYxxU
Diego Biurrun [Tue, 23 Oct 2012 12:37:16 +0000 (14:37 +0200)]
dsputil: Replace AV_WNxx(AV_RNxx()) combinations by AV_COPYxxU

7 years agointreadwrite: Add AV_COPYxxU macros for copying to/from unaligned addresses
Diego Biurrun [Tue, 23 Oct 2012 11:27:05 +0000 (13:27 +0200)]
intreadwrite: Add AV_COPYxxU macros for copying to/from unaligned addresses

7 years agodxtory: Replace AV_WN16A(AV_RN16A()) combination by AV_COPY16
Diego Biurrun [Tue, 23 Oct 2012 11:03:10 +0000 (13:03 +0200)]
dxtory: Replace AV_WN16A(AV_RN16A()) combination by AV_COPY16

7 years agoasfdec: ignore stored duration for truncated files
Michael Niedermayer [Tue, 23 Oct 2012 14:11:38 +0000 (16:11 +0200)]
asfdec: ignore stored duration for truncated files

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
7 years agowtvdec: display warning for encrypted wtv files (instead of 'unsupported chunk' messages)
Peter Ross [Tue, 23 Oct 2012 10:06:28 +0000 (21:06 +1100)]
wtvdec: display warning for encrypted wtv files (instead of 'unsupported chunk' messages)

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
7 years agoMerge remote-tracking branch 'qatar/master'
Michael Niedermayer [Tue, 23 Oct 2012 13:12:09 +0000 (15:12 +0200)]
Merge remote-tracking branch 'qatar/master'

* qatar/master:
  fate: check that dependencies actually exist
  fate: fix ENCMUX macro

Merged-by: Michael Niedermayer <michaelni@gmx.at>
7 years agoMerge commit 'ec444c84cfd30ef34a4e7b4ec7ee77d7e5250d25'
Michael Niedermayer [Tue, 23 Oct 2012 13:08:55 +0000 (15:08 +0200)]
Merge commit 'ec444c84cfd30ef34a4e7b4ec7ee77d7e5250d25'

* commit 'ec444c84cfd30ef34a4e7b4ec7ee77d7e5250d25':
  mpegaudiodec: Fix buffer handling on random access
  mpegaudio: Refactor mp3on4 flush function
  fate: Add dependencies for audio tests
  fate: cosmetics: Group idct8x8 test together with all other libavcodec tests
  fate: More fine-grained dependencies for libavcodec test programs

Conflicts:
tests/fate/audio.mak

Merged-by: Michael Niedermayer <michaelni@gmx.at>
7 years agoMerge commit '8b8899ac3233b4f7af83ded0dc032fad8902d714'
Michael Niedermayer [Tue, 23 Oct 2012 13:00:27 +0000 (15:00 +0200)]
Merge commit '8b8899ac3233b4f7af83ded0dc032fad8902d714'

* commit '8b8899ac3233b4f7af83ded0dc032fad8902d714':
  fate: Declare avcodec/avformat deps in the respective Makefile snippets
  fate: Add dependencies for WMA and WavPack tests
  Improve wording and spelling of av_log_missing_feature messages.
  lavu: remove disabled FF_API_AV_FIFO_PEEK cruft

Conflicts:
libavcodec/aacsbr.c
libavutil/version.h

Merged-by: Michael Niedermayer <michaelni@gmx.at>
7 years agoMerge commit 'c692957c4edd119920cd7f2121628dd183589e6a'
Michael Niedermayer [Tue, 23 Oct 2012 12:50:31 +0000 (14:50 +0200)]
Merge commit 'c692957c4edd119920cd7f2121628dd183589e6a'

* commit 'c692957c4edd119920cd7f2121628dd183589e6a':
  lavu: remove disabled avoptions cruft
  lavu: remove disabled FF_API_GET_BITS_PER_SAMPLE_FMT cruft

Conflicts:
libavutil/opt.c
libavutil/opt.h
libavutil/version.h

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