ffmpeg.git
7 years agoDouble motion vector range for HPEL interlaced picture in proper place
Mashiat Sarker Shakkhar [Tue, 9 Oct 2012 19:38:19 +0000 (19:38 +0000)]
Double motion vector range for HPEL interlaced picture in proper place

The existing code is not in the right place and it should cover both
interlaced frame and field pictures.

Signed-off-by: Derek Buitenhuis <derek.buitenhuis@gmail.com>
7 years agovc1dec: Set opposite to the correct value for 1REF field pictures
Mashiat Sarker Shakkhar [Tue, 9 Oct 2012 19:38:18 +0000 (19:38 +0000)]
vc1dec: Set opposite to the correct value for 1REF field pictures

Signed-off-by: Derek Buitenhuis <derek.buitenhuis@gmail.com>
7 years agovc1dec: Invoke edge emulation regardless of MV precision for 1-MV chroma
Mashiat Sarker Shakkhar [Tue, 9 Oct 2012 19:38:16 +0000 (19:38 +0000)]
vc1dec: Invoke edge emulation regardless of MV precision for 1-MV chroma

This is required due to the way VC-1 handles chroma pull-back which may end
up causing negative chroma MV for zero luma MV. Edge emulation needs to be
invoked in such cases.

This only affects vertical component of chroma motion vector.

Signed-off-by: Derek Buitenhuis <derek.buitenhuis@gmail.com>
7 years agovc1dec: Set chroma reference field from REFFIELD for 1REF field pictures
Mashiat Sarker Shakkhar [Tue, 9 Oct 2012 19:38:15 +0000 (19:38 +0000)]
vc1dec: Set chroma reference field from REFFIELD for 1REF field pictures

Interlaced field pictures can have one or two reference pictures, signaled
by NUMREF syntax element. For single reference pictures, reference picture
is determined by REFFIELD syntax element.

Signed-off-by: Derek Buitenhuis <derek.buitenhuis@gmail.com>
7 years agosegment: support applehttp style list
Luca Barbato [Tue, 9 Oct 2012 00:49:42 +0000 (02:49 +0200)]
segment: support applehttp style list

7 years agoavio: introduce avio_closep
Luca Barbato [Tue, 9 Oct 2012 23:39:06 +0000 (01:39 +0200)]
avio: introduce avio_closep

7 years agompegtsenc: set muxing type notification to verbose
Luca Barbato [Tue, 9 Oct 2012 20:00:22 +0000 (22:00 +0200)]
mpegtsenc: set muxing type notification to verbose

7 years agovc1dec: Use correct spelling of "opposite"
Mashiat Sarker Shakkhar [Tue, 9 Oct 2012 20:38:17 +0000 (16:38 -0400)]
vc1dec: Use correct spelling of "opposite"

Signed-off-by: Diego Biurrun <diego@biurrun.de>
7 years agoa64multienc: change mc_frame_counter to unsigned
Janne Grunau [Thu, 20 Sep 2012 09:34:35 +0000 (09:34 +0000)]
a64multienc: change mc_frame_counter to unsigned

GCC cannot proof that c->mc_frame_counter is always >- 0, changing the
type from int to unsigned fixes following warning:

libavcodec/a64multienc.c: In function ‘a64multi_encode_frame’:
libavcodec/a64multienc.c:342:17: warning: ‘buf’ may be used uninitialized in this function[-Wuninitialized]

Signed-off-by: Janne Grunau <janne-libav@jannau.net>
7 years agoarm: call arm-specific rv34dsp init functions under if (ARCH_ARM)
Jean-Baptiste Kempf [Fri, 5 Oct 2012 09:12:04 +0000 (09:12 +0000)]
arm: call arm-specific rv34dsp init functions under if (ARCH_ARM)

Assign NEON specific function pointers after runtime check via
av_get_cpu_flags().

Signed-off-by: Janne Grunau <janne-libav@jannau.net>
7 years agosvq1: Drop a bunch of useless parentheses
Diego Biurrun [Wed, 10 Oct 2012 12:08:21 +0000 (14:08 +0200)]
svq1: Drop a bunch of useless parentheses

7 years agoparseutils-test: do not print numerical error codes
Mans Rullgard [Wed, 10 Oct 2012 11:51:04 +0000 (12:51 +0100)]
parseutils-test: do not print numerical error codes

The error codes differ between systems so printing the value makes
the fate test fail on some systems.

Signed-off-by: Mans Rullgard <mans@mansr.com>
7 years agosvq1: K&R formatting cosmetics
Diego Biurrun [Sun, 19 Aug 2012 20:56:02 +0000 (22:56 +0200)]
svq1: K&R formatting cosmetics

7 years agobuild: sanitize linking of tools and test programs
Mans Rullgard [Wed, 10 Oct 2012 02:24:50 +0000 (03:24 +0100)]
build: sanitize linking of tools and test programs

This makes sure proper linker arguments are used for the tools and
test programs when shared libraries are enabled.  The tools are
linked using the usual -l flag while for test programs the full
name of the static library is used.

Signed-off-by: Mans Rullgard <mans@mansr.com>
7 years agofate: Refactor setting of environment variables for groups of tests
Diego Biurrun [Fri, 5 Oct 2012 12:27:44 +0000 (14:27 +0200)]
fate: Refactor setting of environment variables for groups of tests

7 years agoswscale: Do not make ff_ symbols globally visible.
Diego Biurrun [Thu, 4 Oct 2012 17:22:27 +0000 (19:22 +0200)]
swscale: Do not make ff_ symbols globally visible.

7 years agortspdec: use av_strlcpy for writing into fixed size buffer
Janne Grunau [Tue, 9 Oct 2012 19:03:40 +0000 (21:03 +0200)]
rtspdec: use av_strlcpy for writing into fixed size buffer

Fixes CID231347.

7 years agog722enc: fix size argument in memset
Janne Grunau [Tue, 9 Oct 2012 18:56:58 +0000 (20:56 +0200)]
g722enc: fix size argument in memset

Fixes CID700725.

7 years agohttp: use av_strlcpy instead of strcpy() without size checks
Janne Grunau [Tue, 9 Oct 2012 18:50:50 +0000 (20:50 +0200)]
http: use av_strlcpy instead of strcpy() without size checks

Fixes CID700730.

7 years agoavfilter: correct memcpy size avfilter_copy_buf_props()
Janne Grunau [Tue, 9 Oct 2012 18:38:47 +0000 (20:38 +0200)]
avfilter: correct memcpy size avfilter_copy_buf_props()

Does not make a difference in this case since sizeof(uint8_t*) ==
sizeof(uint8_t**). Fixes CID703814.

7 years agolavc: split asv12 encoder/decoder
Anton Khirnov [Mon, 8 Oct 2012 10:03:08 +0000 (12:03 +0200)]
lavc: split asv12 encoder/decoder

7 years agoavconv: remove -same_quant
Anton Khirnov [Tue, 9 Oct 2012 15:40:20 +0000 (17:40 +0200)]
avconv: remove -same_quant

It has not worked for anything other than fringe codecs (asv1/2, mdec,
mjpeg[b]) since about 2003 and nobody ever noticed or complained. This
sufficiently proves that there are no users of this option who have a
clue of what they are doing, so it is completely useless.

7 years agocmdutils_read_file: increment *size after writing the trailing \0
Janne Grunau [Tue, 9 Oct 2012 15:55:32 +0000 (17:55 +0200)]
cmdutils_read_file: increment *size after writing the trailing \0

Fixes CID732166.

7 years agoaf_resample: unref out_buf when avresample_convert returns 0
Janne Grunau [Tue, 9 Oct 2012 14:28:30 +0000 (16:28 +0200)]
af_resample: unref out_buf when avresample_convert returns 0

Fixes CID732273.

7 years agoaf_amix: prevent memory leak on error path
Janne Grunau [Tue, 9 Oct 2012 14:15:15 +0000 (16:15 +0200)]
af_amix: prevent memory leak on error path

Fixes CID732272.

7 years agovc1dec: prevent memory leak in error path
Janne Grunau [Tue, 9 Oct 2012 14:09:41 +0000 (16:09 +0200)]
vc1dec: prevent memory leak in error path

Fixes CID732271.

7 years agovc1dec: prevent memory leak on av_realloc error
Janne Grunau [Tue, 9 Oct 2012 14:07:12 +0000 (16:07 +0200)]
vc1dec: prevent memory leak on av_realloc error

7 years agoaf_channelmap: free old extended_data on reallocation
Janne Grunau [Tue, 9 Oct 2012 13:41:24 +0000 (15:41 +0200)]
af_channelmap: free old extended_data on reallocation

Prevents writes to freed memory and the leak of the old extended data.
Fixes CID732303.

7 years agoavconv: simplify memory allocation in copy_chapters
Janne Grunau [Tue, 9 Oct 2012 13:20:15 +0000 (15:20 +0200)]
avconv: simplify memory allocation in copy_chapters

Make just a single reallocation per call instead of one reallocation
per copied chapters. This fixes possible memory leaks on realloc
failures. Also correct the allocation since it needs multiples of
sizeof(AVChapter*) and not sizeof(AVChapter).

Fixes CID700633 and CID700719.

7 years agomatroskaenc: check cue point validity before reallocation
Janne Grunau [Tue, 9 Oct 2012 12:54:01 +0000 (14:54 +0200)]
matroskaenc: check cue point validity before reallocation

Prevents memory leak and possible access to freed memory.
Fixes CID605744.

7 years agoswfenc: error out for more than 1 audio or video stream
Janne Grunau [Tue, 9 Oct 2012 12:48:08 +0000 (14:48 +0200)]
swfenc: error out for more than 1 audio or video stream

Prevents CID602000.

7 years agobuild: link test programs only against static libs
Mans Rullgard [Mon, 8 Oct 2012 19:35:03 +0000 (20:35 +0100)]
build: link test programs only against static libs

The test programs use internal symbols so cannot be linked against the
shared libs.  Linking against both shared and static is pointless and
might do something strange depending on the linker.  This changes the
dependencies so the test programs are linked only against the static
library for the component they belong to.

Signed-off-by: Mans Rullgard <mans@mansr.com>
7 years agoadxdec: use planar sample format
Justin Ruggles [Fri, 21 Sep 2012 14:48:12 +0000 (10:48 -0400)]
adxdec: use planar sample format

7 years agoadpcmdec: use planar sample format for adpcm_thp
Justin Ruggles [Fri, 21 Sep 2012 14:32:21 +0000 (10:32 -0400)]
adpcmdec: use planar sample format for adpcm_thp

7 years agoadpcmdec: use planar sample format for adpcm_ea_xas
Justin Ruggles [Fri, 31 Aug 2012 16:42:37 +0000 (12:42 -0400)]
adpcmdec: use planar sample format for adpcm_ea_xas

7 years agoadpcmdec: use planar sample format for adpcm_ea_r1/r2/r3
Justin Ruggles [Fri, 31 Aug 2012 01:33:34 +0000 (21:33 -0400)]
adpcmdec: use planar sample format for adpcm_ea_r1/r2/r3

7 years agoadpcmdec: use planar sample format for adpcm_xa
Justin Ruggles [Thu, 30 Aug 2012 22:08:59 +0000 (18:08 -0400)]
adpcmdec: use planar sample format for adpcm_xa

7 years agoadpcmdec: use planar sample format for adpcm_ima_ws for vqa version 3
Justin Ruggles [Wed, 29 Aug 2012 19:54:39 +0000 (15:54 -0400)]
adpcmdec: use planar sample format for adpcm_ima_ws for vqa version 3

7 years agoadpcmdec: use planar sample format for adpcm_4xm
Justin Ruggles [Wed, 29 Aug 2012 19:40:26 +0000 (15:40 -0400)]
adpcmdec: use planar sample format for adpcm_4xm

7 years agoadpcmdec: use planar sample format for adpcm_ima_wav
Justin Ruggles [Wed, 29 Aug 2012 03:58:08 +0000 (23:58 -0400)]
adpcmdec: use planar sample format for adpcm_ima_wav

7 years agoadpcmdec: use planar sample format for adpcm_ima_qt
Justin Ruggles [Wed, 29 Aug 2012 03:39:53 +0000 (23:39 -0400)]
adpcmdec: use planar sample format for adpcm_ima_qt

7 years agopcmdec: use planar sample format for pcm_lxf
Justin Ruggles [Tue, 28 Aug 2012 15:45:39 +0000 (11:45 -0400)]
pcmdec: use planar sample format for pcm_lxf

7 years agomace: use planar sample format
Justin Ruggles [Mon, 27 Aug 2012 18:19:51 +0000 (14:19 -0400)]
mace: use planar sample format

7 years agoatrac1: use planar sample format
Justin Ruggles [Sun, 26 Aug 2012 05:10:51 +0000 (01:10 -0400)]
atrac1: use planar sample format

7 years agobuild: non-x86: Only compile mpegvideo optimizations when necessary
Diego Biurrun [Fri, 24 Aug 2012 00:10:20 +0000 (02:10 +0200)]
build: non-x86: Only compile mpegvideo optimizations when necessary

7 years agortpdec_mpeg4: au_headers is a single array, simple av_free is enough
Janne Grunau [Tue, 9 Oct 2012 12:24:36 +0000 (14:24 +0200)]
rtpdec_mpeg4: au_headers is a single array, simple av_free is enough

Fixes CID700204.

7 years agoavcodec: free extended_data instead address of it
Janne Grunau [Tue, 9 Oct 2012 12:04:46 +0000 (14:04 +0200)]
avcodec: free extended_data instead address of it

Fixes CID732173.

7 years agofate: Add tests of the ff_make_absolute_url function
Martin Storsjö [Fri, 5 Oct 2012 22:38:37 +0000 (01:38 +0300)]
fate: Add tests of the ff_make_absolute_url function

Signed-off-by: Martin Storsjö <martin@martin.st>
7 years agourl: Handle relative urls starting with two slashes
Duncan Salerno [Fri, 5 Oct 2012 23:02:18 +0000 (02:02 +0300)]
url: Handle relative urls starting with two slashes

This is defined by RFC 3986 section 5.4.1 to be handled this way.

Signed-off-by: Martin Storsjö <martin@martin.st>
7 years agourl: Handle relative urls being just a new query string
Duncan Salerno [Fri, 5 Oct 2012 22:58:48 +0000 (01:58 +0300)]
url: Handle relative urls being just a new query string

Signed-off-by: Martin Storsjö <martin@martin.st>
7 years agourl: Don't treat slashes in query parameters as directory separators
Duncan Salerno [Fri, 5 Oct 2012 22:57:32 +0000 (01:57 +0300)]
url: Don't treat slashes in query parameters as directory separators

Strip off query parameters from the original url before
applying the new relative path.

Signed-off-by: Martin Storsjö <martin@martin.st>
7 years agomingw/cygwin: Stop adding -fno-common to gcc CFLAGS
Diego Biurrun [Fri, 5 Oct 2012 22:16:41 +0000 (00:16 +0200)]
mingw/cygwin: Stop adding -fno-common to gcc CFLAGS

This was done to work around toolchain bugs that have long been fixed.

7 years agoRestructure av_log_missing_feature message
Diego Biurrun [Mon, 8 Oct 2012 17:08:03 +0000 (19:08 +0200)]
Restructure av_log_missing_feature message

Some invocations include a verb in the log message, others do not.  Yet
av_log_missing_feature expects callers to provide a verb.  Change the
function to include a verb instead and update the callers accordingly.
The result is a more natural function API and correct English in the
function invocations.

7 years agortp: Support packetization/depacketization of opus
Martin Storsjö [Mon, 8 Oct 2012 21:51:42 +0000 (00:51 +0300)]
rtp: Support packetization/depacketization of opus

Signed-off-by: Martin Storsjö <martin@martin.st>
7 years agofile: Set the return value type for lseek to int64_t.
Yusuke Nakamura [Tue, 9 Oct 2012 07:00:28 +0000 (16:00 +0900)]
file: Set the return value type for lseek to int64_t.

This fixes a regression in 4ed5ac5.

Signed-off-by: Martin Storsjö <martin@martin.st>
7 years agoppc: fix Altivec build with old compilers
Mans Rullgard [Mon, 8 Oct 2012 22:01:02 +0000 (23:01 +0100)]
ppc: fix Altivec build with old compilers

The vec_splat() intrinsic requires a constant argument for the
element number, and the code relies on the compiler unrolling
the loop to provide this.  Manually unrolling the loop avoids
this reliance and works with all compilers.

Signed-off-by: Mans Rullgard <mans@mansr.com>
7 years agobuild: add LTO support for PGI compiler
Mans Rullgard [Fri, 5 Oct 2012 02:42:12 +0000 (03:42 +0100)]
build: add LTO support for PGI compiler

Signed-off-by: Mans Rullgard <mans@mansr.com>
7 years agobuild: add -Mdse to PGI optimisation flags
Mans Rullgard [Fri, 5 Oct 2012 00:30:28 +0000 (01:30 +0100)]
build: add -Mdse to PGI optimisation flags

Enable dead store elimination.  The last few releases work no worse
with this flag than without.  Older versions failed to build some
source files when using this flag.

Signed-off-by: Mans Rullgard <mans@mansr.com>
7 years agortpenc_vp8: Update the packetizer to the latest spec version
Martin Storsjö [Mon, 8 Oct 2012 20:18:38 +0000 (23:18 +0300)]
rtpenc_vp8: Update the packetizer to the latest spec version

Tested to work with the gstreamer depacketizer.

Signed-off-by: Martin Storsjö <martin@martin.st>
7 years agortpdec_vp8: Make the depacketizer implement the latest spec draft
Martin Storsjö [Mon, 8 Oct 2012 19:25:55 +0000 (22:25 +0300)]
rtpdec_vp8: Make the depacketizer implement the latest spec draft

Not all details are implemented, but it's enough for proper
playback as long as there is no packet loss.

Tested to work with the packetizer in gstreamer (which although
uses a different codec name, to clarify that it is still a spec
draft).

Signed-off-by: Martin Storsjö <martin@martin.st>
7 years agodoc: allow building with old texi2html versions
Mans Rullgard [Mon, 8 Oct 2012 10:13:35 +0000 (11:13 +0100)]
doc: allow building with old texi2html versions

Signed-off-by: Mans Rullgard <mans@mansr.com>
7 years agoavutil: skip old_pix_fmts.h since it is just a list
Janne Grunau [Mon, 8 Oct 2012 10:09:16 +0000 (12:09 +0200)]
avutil: skip old_pix_fmts.h since it is just a list

7 years agox86: vc1: call ff_vc1dsp_init_x86() under if (ARCH_X86)
Janne Grunau [Sun, 7 Oct 2012 15:41:10 +0000 (17:41 +0200)]
x86: vc1: call ff_vc1dsp_init_x86() under if (ARCH_X86)

7 years agox86: cavs: call ff_cavsdsp_init_x86() under if (ARCH_X86)
Janne Grunau [Sun, 7 Oct 2012 15:23:54 +0000 (17:23 +0200)]
x86: cavs: call ff_cavsdsp_init_x86() under if (ARCH_X86)

7 years agox86: call most of the x86 dsp init functions under if (ARCH_X86)
Janne Grunau [Fri, 5 Oct 2012 17:54:10 +0000 (19:54 +0200)]
x86: call most of the x86 dsp init functions under if (ARCH_X86)

Rename the called dsp init functions to *_init_x86.

7 years agodoc: support the new website layout
Luca Barbato [Sun, 30 Sep 2012 04:02:34 +0000 (06:02 +0200)]
doc: support the new website layout

7 years agodoc: remove a warning from filters.texi
Luca Barbato [Sun, 7 Oct 2012 22:52:38 +0000 (00:52 +0200)]
doc: remove a warning from filters.texi

The tag @table expects @item to mark entries.

7 years agodoc: initial nut documentation
Luca Barbato [Tue, 13 Dec 2011 22:50:20 +0000 (23:50 +0100)]
doc: initial nut documentation

7 years agosegment: drop global headers setting
Luca Barbato [Fri, 5 Oct 2012 03:07:18 +0000 (05:07 +0200)]
segment: drop global headers setting

avconv provides an option to set it externally and there isn't a way for
the outer demuxer to report the inner demuxer flag.

Solves a bad interaction between mpegts and x264, but requires
additional setting for the user.

7 years agolavu: fix typo in Makefile
Anton Khirnov [Mon, 8 Oct 2012 06:10:23 +0000 (08:10 +0200)]
lavu: fix typo in Makefile

7 years agoReplace PIX_FMT_* -> AV_PIX_FMT_*, PixelFormat -> AVPixelFormat
Anton Khirnov [Sat, 6 Oct 2012 10:10:34 +0000 (12:10 +0200)]
Replace PIX_FMT_* -> AV_PIX_FMT_*, PixelFormat -> AVPixelFormat

7 years agopixfmt: add AV_ prefixes to PIX_FMT_*
Anton Khirnov [Sat, 6 Oct 2012 09:18:06 +0000 (11:18 +0200)]
pixfmt: add AV_ prefixes to PIX_FMT_*

7 years agoaf_resample: avoid conversion of identical sample formats for 1 channel
Justin Ruggles [Thu, 20 Sep 2012 17:28:34 +0000 (13:28 -0400)]
af_resample: avoid conversion of identical sample formats for 1 channel

When there is only 1 channel, the planar and interleaved formats of the same
data type should be treated as identical.

7 years agoavcodec: allow either planar or interleaved sample format when encoding mono
Justin Ruggles [Thu, 20 Sep 2012 05:04:15 +0000 (01:04 -0400)]
avcodec: allow either planar or interleaved sample format when encoding mono

When there is only 1 channel, the planar and interleaved formats of the same
data type should be treated as identical.

7 years agoadpcmenc: ensure calls to adpcm_ima_compress_sample() are in the right order
Justin Ruggles [Sun, 7 Oct 2012 03:58:03 +0000 (23:58 -0400)]
adpcmenc: ensure calls to adpcm_ima_compress_sample() are in the right order

Should fix fate-acodec-adpcm-ima_wav with several compilers.

7 years agotimefilter: De-doxygenize normal code comments and drop silly ones
Diego Biurrun [Fri, 5 Oct 2012 17:29:18 +0000 (19:29 +0200)]
timefilter: De-doxygenize normal code comments and drop silly ones

7 years agogxf: Include the right header for the avpriv_frame_rate_tab declaration
Martin Storsjö [Sun, 7 Oct 2012 09:42:54 +0000 (12:42 +0300)]
gxf: Include the right header for the avpriv_frame_rate_tab declaration

Signed-off-by: Martin Storsjö <martin@martin.st>
7 years agowmaenc: use float planar sample format
Justin Ruggles [Sat, 25 Aug 2012 17:44:30 +0000 (13:44 -0400)]
wmaenc: use float planar sample format

7 years ago(e)ac3enc: use planar sample format
Justin Ruggles [Sat, 25 Aug 2012 17:11:10 +0000 (13:11 -0400)]
(e)ac3enc: use planar sample format

7 years agoaacenc: use planar sample format
Justin Ruggles [Sat, 25 Aug 2012 17:04:33 +0000 (13:04 -0400)]
aacenc: use planar sample format

7 years agoadpcmenc: use planar sample format for adpcm_ima_wav and adpcm_ima_qt
Justin Ruggles [Sat, 25 Aug 2012 13:13:50 +0000 (09:13 -0400)]
adpcmenc: use planar sample format for adpcm_ima_wav and adpcm_ima_qt

7 years agoadpcmenc: move 'ch' variable to higher scope
Justin Ruggles [Sat, 25 Aug 2012 13:00:50 +0000 (09:00 -0400)]
adpcmenc: move 'ch' variable to higher scope

It is used for multiple codecs.

7 years agoadpcmenc: fix 3 instances of variable shadowing
Justin Ruggles [Sat, 25 Aug 2012 04:40:37 +0000 (00:40 -0400)]
adpcmenc: fix 3 instances of variable shadowing

7 years agoadpcm_ima_wav: simplify encoding
Justin Ruggles [Sat, 25 Aug 2012 04:39:17 +0000 (00:39 -0400)]
adpcm_ima_wav: simplify encoding

7 years agolibvorbis: use planar sample format
Justin Ruggles [Thu, 23 Aug 2012 17:47:09 +0000 (13:47 -0400)]
libvorbis: use planar sample format

7 years agolibmp3lame: use planar sample formats
Justin Ruggles [Wed, 22 Aug 2012 16:23:21 +0000 (12:23 -0400)]
libmp3lame: use planar sample formats

7 years agovorbisenc: use float planar sample format
Justin Ruggles [Mon, 20 Aug 2012 17:25:27 +0000 (13:25 -0400)]
vorbisenc: use float planar sample format

7 years agoffm: do not write or read the audio sample format
Justin Ruggles [Mon, 1 Oct 2012 05:24:57 +0000 (01:24 -0400)]
ffm: do not write or read the audio sample format

7 years agoparseutils: fix parsing of invalid alpha values
Mans Rullgard [Sat, 6 Oct 2012 09:21:22 +0000 (10:21 +0100)]
parseutils: fix parsing of invalid alpha values

An alpha specifier outside the valid range results in a conversion from
double to long with undefined result.  Range-checking the double and
only converting it after it passes avoids this.

Fixes fate-parseutils errors on some systems.

Signed-off-by: Mans Rullgard <mans@mansr.com>
7 years agodoc/RELEASE_NOTES: update for the 9 release.
Anton Khirnov [Fri, 5 Oct 2012 05:27:33 +0000 (07:27 +0200)]
doc/RELEASE_NOTES: update for the 9 release.

Signed-off-by: Diego Biurrun <diego@biurrun.de>
7 years agosmoothstreamingenc: Add a more verbose error message
Martin Storsjö [Fri, 5 Oct 2012 23:39:21 +0000 (02:39 +0300)]
smoothstreamingenc: Add a more verbose error message

This helps tracking down the cause if this happens to be an issue.

Signed-off-by: Martin Storsjö <martin@martin.st>
7 years agosmoothstreamingenc: Ignore the return value from mkdir
Martin Storsjö [Fri, 5 Oct 2012 23:33:32 +0000 (02:33 +0300)]
smoothstreamingenc: Ignore the return value from mkdir

We don't need to return an error if the directory already existed.
We make sure that the directory actually is properly writeable later
within ism_write_header by writing a manifest anyway.

Signed-off-by: Martin Storsjö <martin@martin.st>
7 years agosmoothstreamingenc: Try writing a manifest when opening the muxer
Martin Storsjö [Fri, 5 Oct 2012 23:30:18 +0000 (02:30 +0300)]
smoothstreamingenc: Try writing a manifest when opening the muxer

This allows failing cleaner and earlier if unable to write to
the output directory.

Signed-off-by: Martin Storsjö <martin@martin.st>
7 years agosmoothstreamingenc: Move the output_chunk_list and write_manifest functions up
Martin Storsjö [Fri, 5 Oct 2012 23:27:49 +0000 (02:27 +0300)]
smoothstreamingenc: Move the output_chunk_list and write_manifest functions up

This allows calling write_manifest from ism_write_header without
a forward declaration.

Signed-off-by: Martin Storsjö <martin@martin.st>
7 years agosmoothstreamingenc: Properly return errors from ism_flush to the caller
Martin Storsjö [Fri, 5 Oct 2012 23:33:06 +0000 (02:33 +0300)]
smoothstreamingenc: Properly return errors from ism_flush to the caller

Signed-off-by: Martin Storsjö <martin@martin.st>
7 years agosmoothstreamingenc: Check the output UrlContext before accessing it
Martin Storsjö [Fri, 5 Oct 2012 23:24:07 +0000 (02:24 +0300)]
smoothstreamingenc: Check the output UrlContext before accessing it

This code can be called with a NULL UrlContext if writing of the
trailer involves seeking.

Signed-off-by: Martin Storsjö <martin@martin.st>
7 years agoyuv4mpeg: return proper error codes.
Anton Khirnov [Fri, 5 Oct 2012 13:53:32 +0000 (15:53 +0200)]
yuv4mpeg: return proper error codes.

Fixes Bug 373.

CC:libav-stable@libav.org

7 years agoGive all anonymously typedeffed structs in headers a name
Diego Biurrun [Thu, 27 Sep 2012 08:19:53 +0000 (10:19 +0200)]
Give all anonymously typedeffed structs in headers a name

Anonymous structs cannot be forward declared and have no benefit.

7 years agofate: Add parseutils test
Diego Biurrun [Fri, 5 Oct 2012 21:34:52 +0000 (23:34 +0200)]
fate: Add parseutils test

7 years agoparseutils-test: Drop random colors from parsing test
Diego Biurrun [Fri, 5 Oct 2012 21:33:02 +0000 (23:33 +0200)]
parseutils-test: Drop random colors from parsing test

This guarantees stable output for comparing test results.