handle malloc failures in ff_get_wav_header
ff_get_wav_header is reading data from a WAVE file and then uses it(without validation) to malloc a buffer. It then proceeded to readdata into the buffer, without verifying that the allocation succeeded.
To address this, change ff_get_wav_header to return an error if...
add xWMA demuxer
Signed-off-by: Luca Barbato <email@example.com>
mpegts: force the default timebase
The mpegts muxer does not set the stream time base usingav_set_pts_info, but expects it to have the default value of 1/90000.If the calling code changes stream pts before writing the header,other muxers override the time base at that point (like mpegenc.c).
libavcodec: Bump micro after adding the dtx AVOptions
Signed-off-by: Martin Storsjö <firstname.lastname@example.org>
libopencore-amr, libvo-amrwbenc: Allow enabling DTX via private AVOptions
DTX, discontinuous transmission, allows emitting frames withcomfort noise when no voice is detected in the input audio.
libopencore-amr, libvo-amrwbenc: Only check the bitrate when changed
Also rename the incorrectly named enc_bitrate to enc_mode, use theenc_bitrate variable for storing the last chosen bitrate.
This avoids continuous warning log messages if not using an...
libopencore-amr, libvo-amrwbenc: Find the closest matching bitrate
Dynamically print the supported bitrates from the local table,instead of using a hardcoded log message.
libvo-*: Fix up the long codec names
Include VisualOn to clarify the codec name, but remove theactual library name from the user-friendly description.Also mention Android, to clarify which VisualOn implementationthis refers to, since they do sell other variants of the same...
libavcodec: Mark AVCodec->priv_class const
This avoids warnings of this kind, everywhere priv_classis initialized:
warning: initialization discards qualifiers from pointer target type
swscale: Factorize FAST_BGR2YV12 definition.
It is used only for x86 so it will eventually be moved with that codeinto the x86 arch subdirectory.
libvo-aacenc: Only produce extradata if the global header flag is set
lavf: postpone removal of public metadata conversion API
It's been deprecated only a few months ago, long after 0.6.
lavc: postpone removal of request_channels
No decoder uses the supposed replacement, request_channel_layout, yet.
lavc: postpone removal of audioconvert and sample_fmt wrappers
Those were moved to libavutil only recently.
lavf: postpone removal of deprecated avio functions
They've been deprecated very recently.
libopencore-amr: Cosmetics: Rewrap and align
libopencore-amr, libvo-amrbwenc: Rename variables and functions
Avoid camelCase names for functions and variables.
libopencore-amr: Convert commented out debug logging into av_dlog
Also add the avctx as logging context.
libopencore-amr: Remove an unused state variable
libvo-amrwbenc: Don't explicitly store bitrate modes in the bitrate table
The bitrate modes are equal to the array indices.
libopencore-amr: Remove a useless local variable
libopencore-amr, libvo-amrwbenc: Make the bitrate/mode mapping array static const
libopencore-amr, libvo-amrwbenc: Return proper error codes in most places
libopencore-amr: Don't print carriage returns in log messages
libopencore-amr: Remove an old workaround for libamr header weirdness
libopencore-amr: Make the opaque encoder pointer a void*
libopencore-amr: Remove unused code fragments
This parts are heritage from the encoder part from the oldlibamr code removed in SVN rev 19365.
applehttp: Only check the discard flags if v->ctx actually is initialized
This code could be executed if the demuxer reads more than onesegment before returning from av_open_input_stream.
doc: update developer guide
Refer to the current submission policy and refer to FATE in theRegression Test section.
lavf: bump minor and add an APIChanges entry for the last avio changes
avio: deprecate url_exist in favor of avio_check.
file: implement url_check() callback in the file and pipe protocols
Signed-off-by: Anton Khirnov <email@example.com>
avio: add avio_check()
The new function is more flexible than url_exist(), as it allows tospecify which access flags to check, and does not require an explicitopen of the checked resource.
avio: left-shift AVIO_ flags on next bump
Now AVIO_RDONLY is defined as 0, so it's not usable as a flag.
Check for successful h263 init in msmpeg4 init
Signed-off-by: Ronald S. Bultje <firstname.lastname@example.org>
lavf/utils.c: Order packets with identical PTS by stream index.
This allows for more reproducible results when using multi-threading.
flvdec: Allow parsing keyframes metadata without seeking in most cases
Stop the avio input at a point where amf_parse_object cancontinue parsing the end of the object seamlessly, when alldata is available.
If unsupported data is encountered within the keyframes object,...
Error out if vaapi is not found
Make the behaviour consistent with the other external deps.
avio: undeprecate av_url_read_fseek/fpause under nicer names
It seems their replacements won't be ready anytime soon.
libvo-*: Don't use deprecated sample format names and enum names
flvdec: Fix support for flvtool2 "keyframes based" generated index
Current keyframes data parser unconditionally rewind metadata tothe end at the end of function. As result ALL metadata locatedafter keyframes index not parsed, and as metadata object can have...
libavcodec: Use "const enum AVSampleFormat" in AVCodec initialization
Fix the conversion of AV_SAMPLE_FMT_FLT and _DBL to AV_SAMPLE_FMT_S32.
(1<<31) is undefined and seems to be evaluated by gcc to -2^31 whenthese formulae require 2^31.
These conversions still need fate tests.
Convert some undefined 1<<31 shifts into 1U<<31.
According to ISO 9899:1999 S 6.5.7/4:
The result of E1 << E2 is E1 left-shifted E2 bit positions; vacated bitsare filled with zeros. If E1 has an unsigned type, the value of theresult is E1× 2^E2, reduced modulo one more than the maximum value...
Add unconditional return statement to yuva420_rgb32_MMX() / yuva420_bgr32_MMX().
When HAVE_7REGS was not defined these functions had an empty bodycausing the following warnings during compilation.In file included from libswscale/x86/yuv2rgb_mmx.c:58:libswscale/x86/yuv2rgb_template.c: In function ‘yuva420_rgb32_MMX’:...
Fix compilation of timefilter test program.
The printf function is forbidden in library code, but not in test programs,so #undefine the printf macro that disables the system printf function.
Signed-off-by: Diego Biurrun <email@example.com>
Add support for AMR-WB encoding via libvo-amrwbenc
The wrapper code is based on the libamr wrapper removed in SVN rev 19365.
Add an AAC encoder by using the libvo-aacenc library
g722: Return 8 bits per sample for g722 in av_get_bits_per_sample
This fixes a failing assert in ff_raw_read_header (infate-g722dec-1), where bits_per_coded_sample is set using thisfunction and is required to have a positive value.
avio: add more documentation for AVIOContext.
Parse sprite data for WMVP and WVP2, and decode sprites for the latter
Replace outdated info on the FAQ
FAQ could use some work. This updates a few little details.
Signed-off-by: Michael Niedermayer <firstname.lastname@example.org>Signed-off-by: Anton Khirnov <email@example.com>
I think the documentation of sameq is causing confusion and misuse ofthis option.
pad: fix example explanation
"row" and "column" term positions in the explanation were inverted.
Signed-off-by: Stefano Sabatini <firstname.lastname@example.org>Signed-off-by: Anton Khirnov <email@example.com>
gradfun: add notice from the MPlayer manual
Add notice telling that the filter is designed for playback only.
eval: add support for trunc, ceil, and floor functions
documentation: add setdar and setsar description to filters.texi
avio: document some members of AVIOContext.
avio: document avio_close().
avio: cosmetics, vertically align comments.
avio: cosmetics, group the reading functions.
avio: cosmetics, merge all the FF_API_OLD_AVIO blocks.
avio: cosmetics, move AVIOContext to start of the file.
avio: update file header.
os: fix OpenBSD/PowerPC compilation
When attempting to re-enable the AltiVec support it was noticedthat we need to undefine _POSIX_C_SOURCE to appease the headersfor ff_get_cpu_flags_ppc() to be able to compile.
pixfmt: add PIX_FMT_BGR48LE and PIX_FMT_BGR48BE
PIX_FMT_BGR48LE is used by PhantomCINE demuxer.
oggdec: fix demuxing chained audio streams
Chained ogg served by icecast and mpd should demuxproperly now.
daud: Don't write packets that are too large to have their size expressed in the bytestream.
pthread: validate_thread_parameters() ignored slice-threading being intentionally off
The thread_type API allows you to request only FF_THREAD_FRAME (instead ofFRAME | SLICE), but it was being ignored.We don't implement both of them at the same time, so there isn't an effect...
Use consistent condition for whether to run slice-threading execute function.
avformat.h: fix a misplaced #endif
vaapi: cope with VA-API 0.32, i.e. fix VC-1 decoding on Sandy Bridge.
(cherry picked from commit a18e7b4fb77d3799cf21110b5e6dda4691a295b3)
Signed-off-by: Reinhard Tartler <firstname.lastname@example.org>
vaapi: filter out DELAYED_PIC_REF flag to determine field.
This fixes ticket #23.
(cherry picked from commit 621f4c98df4ee9fd604a614f31e09eef9dd7d3ca)
lavf: bump minor and add an APIChanges entry for avformat cleanup
lavf: get rid of ffm-specific stuff in avformat.h
avio: deprecate av_protocol_next().
avio: add a function for iterating though protocol names.
lavf: rename a parameter of av_sdp_create from buff->buf
This is more consistent with the rest of the API.
lavf: rename avf_sdp_create to av_sdp_create.
The new name is more consistent with the rest of the API.
lavf: make av_guess_image2_codec internal
It doesn't look very useful as a public function.
avio: make URLProtocol internal.
avio: make URLContext internal.
lavf: mark av_pkt_dump(_log) for remove on $next+1 bump.
lavf: use designated initializers for all protocols
This is more readable and makes it easier to reorder URLProtocolmembers.
applehttp: don't use deprecated url_ functions.
avio: move two ff_udp_* functions from avio_internal to url.h
asfdec: remove a forgotten declaration of nonexistent function
avio: deprecate the typedef for URLInterruptCB
There's no particular reason to pollute the namespace with a typedef forit.
proto: include os_support.h in network.h
Fix compilation on systems without poll()
matroskaenc: don't write an empty Cues element.
lavc: add a FF_API_REQUEST_CHANNELS deprecation macro
And hide request_channels AVOption under it.
avio: move extern url_interrupt_cb declaration from avio.h to url.h
avio: make av_register_protocol2 internal.
avio: avio_ prefix for url_set_interrupt_cb.
avio: AVIO_ prefixes for URL_ open flags.
proto: introduce listen option in tcp
This way is possible to have simple micro-server act like
ffmpeg -i file.nut -vcodec copy -acodec copy -f nut tcp://foo:1234?listen
doc: clarify configure features
This way people will not get surprises regarding the current configurebehaviour and contributors will have a guideline on what is expected.
proto: factor ff_network_wait_fd and use it on udp
Support the URL_FLAG_NONBLOCK semantic and uniform the protocol.The quick retry loop is already part of retry_transfer_wrapper.
The polling routine is common to the network protocols:udp, tcp and, once merged, sctp.
Fix parser: mark av_parser_parse() for removal on next major bump
Fix the breakage introduced with 9073ca6c6ebb9e3e9b60d968b7aa16cc8b6d558d