wtv: detect ole date overflow
swscale: implement Nbit->non native endian 16bit. Fixes v210.Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
fate: add 9/10 BE pixdesc checksumsSigned-off-by: Michael Niedermayer <michaelni@gmx.at>
pnmdec: reindent after the previous commit
pnmdec: add support for mono images with non-space-separated pixel digits
When the file to decode contains a sequence of binary values like"1101110...", decode_frame() was reading the sequence of digits like aunique integer value, which was resulting in integer overflows....
ffv1enc: support PIX_FMT_YUV420P10 & PIX_FMT_YUV422P10Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
v210enc:clip values according to specificationsSigned-off-by: Michael Niedermayer <michaelni@gmx.at>
v210enc: switch to PIX_FMT_422P10Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
v210dec: switch to PIX_FMT_422P10Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
ffv1: set internal frame defaults
Another fix missed before the vsrc_buffer changes.
swscale: 9,10 bits pixel format output supportSigned-off-by: Michael Niedermayer <michaelni@gmx.at>
PIX_FMT_422P10 supportSigned-off-by: Michael Niedermayer <michaelni@gmx.at>
adpcmenc:Optimize adpcm_ima_qt_compress_sample()Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
adpcmenc: fix QT IMA ADPCM encoderSigned-off-by: Michael Niedermayer <michaelni@gmx.at>
adpcmdec: Fix QT IMA ADPCM decoderSigned-off-by: Michael Niedermayer <michaelni@gmx.at>
Merge remote branch 'qatar/master'
svq1dec: simpify mean calculation.Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
svq1dec: replace /2 by >>1Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
pnm: Fix spurious error message.Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
libopenjpeg: set internal frame defaults
Fix ffmpeg decoding, which was broken after the recent changes invsrc_buffer.
Fix function pointer type to match function it is assigned.
Store pointers in a less messy way in SWSContext.
Remove unused variable.
Replace deprecated url_fseek by avio_seek.
Move ifdef to avoid unused variable warnings.
Remove unused variables.
Fix printf format string, fixes a warning.
riffenc/ffmpeg: Fix stream copySigned-off-by: Michael Niedermayer <michaelni@gmx.at>
ffplay: fix null pointer read when codec unavilable.Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
aacdec: add decode_channel_map overread check
All decode_channel_map calls together can easily readmore data than the amount of padding available.Thus below patch adds an input length check before reading them.Fixes some invalid reads with sample from...
Increase TS packet size detection buffer.
Fixes warning message with ticket #68.
Assume some TS packet size instead of failing completely.
Fixes ticket #68.
oggdec:Correct durationBased on a patch by Reimar Döffinger.Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
Only add 1 byte to av_malloc(0) when it actually returned NULLSigned-off-by: Michael Niedermayer <michaelni@gmx.at>
Make av_realloc(0) behave like our av_malloc(0)Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
vsrc_buffer: during init, print information about timebase and sample aspect ratio
vsrc_buffer: simplify av_vsrc_buffer_add_frame*() interface
Now that pix_fmt, width, and height are directly embedded in the AVFrame,there is no need to pass these values as separate arguments.
lavc: set defaults in internal codec frames
This is required specifically for setting frame->format to -1,otherwise it will be set to 0 = PIX_FMT_YUV420P and code readingthe format from the output decoded frame will get misled.
In particular fix regressions occurring with the pending vsrc_buffer...
ffmpeg: rename ost->pict_tmp to ost->resample_frame
The new name is more consistent with the employed naming scheme, andmore meaningful.
ffmpeg: prefer dec/enc over ost/ist->st->codec in do_video_out()
Compact code, improve readability.
ffmpeg: move resample_changed check within the #if !CONFIG_AVFILTER
The check and the corresponding message in do_video_out() areunnecessary in the libavfilter path, as a similar check and messageare performed within the buffer source.
ffmpeg: remove useless intermediary variable resample_dst in do_video_out()
ffmpeg: simplify mid-stream reconfiguration when libavfilter is disabled
Implement lazy initialization of the image resample context, so thatthe initialization code does not need to be duplicated.
Also manage the case in which resample/size change mid-stream. For...
lavfi: add libavfilter/avcodec.h and avfilter_copy_frame_props()
avfilter_copy_frame_props() avoids code duplication and increasesrobustness.
The added files libavfilter/avcodec.[ch] are used for containingutilities useful for gluing togheter libavfilter and libavcodec.
lavc: add format field to AVFrame
The format is a per-frame property, having it in AVFrame simplify theoperation of extraction of that information, since avoids the need toaccess the codec/stream context.
lavc: add width and height fields to AVFrame
width and height are per-frame properties, setting these values inAVFrame simplify the operation of extraction of that information,since avoids the need to check the codec/stream context.
Use MAP_FAILED to check for mmap failure instead of manuallyrecreating the value.
drawtext: add documentation for the shadow parameters
Signed-off-by: Anton Khirnov <anton@khirnov.net>
drawtext: add shadow support.
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>Signed-off-by: Anton Khirnov <anton@khirnov.net>
drawtext: factor draw_glyphs.
drawtext: fix and optimize yuv blend.
drawtext: get rid of divisions in the inner loop.
drawtext: simplify chroma blend and fix chroma alpha.
lavfi: Port drawtext filter by Hemanth from the libavfilter soc repo
Use av_fast_malloc instead of av_fast_realloc.
Avoids a memleak, is less code and might be faster.
Simplify condition.
msvideo1enc: minor cosmetic cleanup, use FFALIGN, avoid calculating valuetwice and add a missing "const".
mp3enc:simplifySigned-off-by: Michael Niedermayer <michaelni@gmx.at>
mp3enc:better variable name for the frames field file postion.Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
mp3enc: drop nested structsSigned-off-by: Michael Niedermayer <michaelni@gmx.at>
mp3enc:use FFMINSigned-off-by: Michael Niedermayer <michaelni@gmx.at>
mp3enc:Drop unneeded floating point math.Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
mp3enc: drop sum and count bytes instead of bitrates from decoded headers.Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
mp3enc: remove unneeded ifdefSigned-off-by: Michael Niedermayer <michaelni@gmx.at>
mp3enc: remove unneeded static const variables.Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
mp3enc: mux a XING header
The patch below provides exactly that to the MP3 muxer. A XING headercontaining
is generated.
It's based on an idea by Anton Khirnov (restricted to the number offrames) found at...
avfilter: dont use AVFilterLink as priv for pictures as its freed too early.Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
avfilter: Fix ticket82 / fix initial buffer values.Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
AVFilter: use picture pool to avoid malloc().Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
avfilter_unref_buffer: favor av_freep()Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
mpegvideo: fix 422 lowresSigned-off-by: Michael Niedermayer <michaelni@gmx.at>
aiffdec:Rewrite get_meta()Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
Allow encodiing empty subtitles.
swscale: Dither for unscaled 10->8bit per channelSigned-off-by: Michael Niedermayer <michaelni@gmx.at>
swscale: dont reshuffle bytesSigned-off-by: Michael Niedermayer <michaelni@gmx.at>
mov: fix composition timestamps on movie fragments.
This fixes, for instance, the case that there is a track that has some samples with composition time offset and has a track run without sample-composition-time-offsets-present.
wmavoice: Use proper size in memeset().
sizeof(array_functrion_argument) gives the size of the pointer type notthe size of the array to which it points.
Merged-by: Michael Niedermayer <michaelni@gmx.at>
avidec: correct frame_offset for seekingSigned-off-by: Michael Niedermayer <michaelni@gmx.at>
Silence a warning if pkg_config is not installed.
Makefile:Put lost tab back.Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
avidec: detect mpeg4 keyframes in indexless aviSigned-off-by: Michael Niedermayer <michaelni@gmx.at>
In svq3 decoder, check negative mb_type, fix potential crash.
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
fate: mention fate documentation in the error message
Signed-off-by: Francesco Cosoleto <cosoleto@gmail.com>Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
MPEG: support 4:4:4 lowresSigned-off-by: Michael Niedermayer <michaelni@gmx.at>
MPEG: support 4:4:4 intra lowresSigned-off-by: Michael Niedermayer <michaelni@gmx.at>
configure: warn if pkg-config is missing
Signed-off-by: Mans Rullgard <mans@mansr.com>
lavfi-regression: provide filter arguments to showfiltfmts
In do_lavfi_pixfmts(), provide the filter arguments to showfiltfmts,since some filter may require non-null or non-empty argument stringfor working properly.
eval: add sqrt function for computing the square root
configure: add strong dependencies for movie source and mp filter
SVQ3: do not modify const input bufferSigned-off-by: Michael Niedermayer <michaelni@gmx.at>
SVQ3: Check that things match up after a frame.Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
SVQ3: Move svq3 specific fields to their own context.Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
ffplay: set CODEC_FLAG_EMU_EDGE earlierSigned-off-by: Michael Niedermayer <michaelni@gmx.at>
rgb24toyv12: break out in the middle before out of array reads.Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
ffplay: fix memleak if avfilter is disabled
file: Fix mmap error check.Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
configure: jack currently needs sem_timedwait()Should fix ticket99 and ticket43 by disabling jack.Signed-off-by: Michael Niedermayer <michaelni@gmx.at>