summaryrefslogtreecommitdiffstats
path: root/libavcodec
Commit message (Collapse)AuthorAgeFilesLines
...
| * x86: clean up ff_dsputil_init_mmx()Mans Rullgard2012-03-051-417/+475
| | | | | | | | | | | | | | | | This splits ff_dsputil_init_mmx() into multiple functions, one for each MMX/SSE level, somewhat simplifying the nested conditions. Signed-off-by: Mans Rullgard <[email protected]> Signed-off-by: Diego Biurrun <[email protected]>
* | libutvideo: Add Ut Video encoder wrapperDerek Buitenhuis2012-03-055-3/+245
| | | | | | | | | | | | | | | | | | All colorspaces are supported. Renamed libutvideo.cpp to libutvideodec.cpp. Signed-off-by: Derek Buitenhuis <[email protected]> Signed-off-by: Michael Niedermayer <[email protected]>
* | libutvideo: Move structs and includes to headerDerek Buitenhuis2012-03-052-25/+51
| | | | | | | | | | | | | | | | This is so the forthcoming encoder wrapper can share them. Signed-off-by: Derek Buitenhuis <[email protected]> Signed-off-by: Michael Niedermayer <[email protected]>
* | Remove AV_LOG_DEBUG from av_dlog() calls.Carl Eugen Hoyos2012-03-051-8/+8
| | | | | | | | AV_LOG_DEBUG is forced by the av_dlog definition.
* | cook: fix return statements.Michael Niedermayer2012-03-051-1/+2
| | | | | | | | | | Found-by: cbsrobot Signed-off-by: Michael Niedermayer <[email protected]>
* | wmaenc: change some asserts to av_assert0.Michael Niedermayer2012-03-051-2/+2
| | | | | | | | | | | | This ensures they are always checked Signed-off-by: Michael Niedermayer <[email protected]>
* | wmaenc: add assert to check encode_superframe() return.Michael Niedermayer2012-03-051-0/+2
| | | | | | | | Signed-off-by: Michael Niedermayer <[email protected]>
* | Revert "wmaenc: check final frame size against output packet size"Michael Niedermayer2012-03-051-6/+4
| | | | | | | | | | | | | | | | This condition cannot happen, if it can it is a bug that MUST be fixed. And i very happily volunteer to fix it if someone reports a case to me that fails. This reverts commit 5d652e063bd3a180f9de8915e5137aa4f938846d.
* | smc: Fix overread.Michael Niedermayer2012-03-051-1/+1
| | | | | | | | | | Found-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind Signed-off-by: Michael Niedermayer <[email protected]>
* | bit_depth_template: use av_clip_uint8 over crop_tab.Michael Niedermayer2012-03-051-2/+2
| | | | | | | | | | | | | | | | | | | | This fixes some global out of array reads and wrong cliping. No speed difference meassurable under clang on i5 also all important code paths on all important platforms should use SIMD. Found-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind Signed-off-by: Michael Niedermayer <[email protected]>
* | indeo3: move MV check up.Michael Niedermayer2012-03-051-7/+13
| | | | | | | | | | | | | | This adds checking for modes >= 10. Found-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind Signed-off-by: Michael Niedermayer <[email protected]>
* | cook: check decouple values.Michael Niedermayer2012-03-051-4/+12
| | | | | | | | | | | | | | This fixes a out of global array read in the cplscale* tables. Found-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind Signed-off-by: Michael Niedermayer <[email protected]>
* | Merge remote-tracking branch 'qatar/master'Michael Niedermayer2012-03-0520-905/+1037
|\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * qatar/master: (27 commits) cmdutils: use new avcodec_is_decoder/encoder() functions. lavc: make codec_is_decoder/encoder() public. lavc: deprecate AVCodecContext.sub_id. libcdio: add a forgotten AVClass to the private context. swscale: remove "cpu flags" from -sws_flags description. proresenc: give user a possibility to alter some encoding parameters vorbisenc: add output buffer overwrite protection libopencore-amrnbenc: fix end-of-stream handling ra144enc: fix end-of-stream handling nellymoserenc: zero any leftover packet bytes nellymoserenc: use proper MDCT overlap delay qpeg: Use bytestream2 functions to prevent buffer overreads. swscale: make %rep unconditional. vp8: convert simple loopfilter x86 assembly to use named arguments. vp8: convert idct x86 assembly to use named arguments. vp8: convert mc x86 assembly to use named arguments. vp8: convert loopfilter x86 assembly to use cpuflags(). vp8: convert idct/mc x86 assembly to use cpuflags(). swscale: remove now unnecessary hack. x86inc: don't "bake" stack_offset in named arguments. ... Conflicts: cmdutils.c doc/APIchanges libavcodec/mpeg12.c libavcodec/options.c libavcodec/qpeg.c libavcodec/utils.c libavcodec/version.h libavdevice/libcdio.c tests/lavf-regression.sh Merged-by: Michael Niedermayer <[email protected]>
| * lavc: make codec_is_decoder/encoder() public.Anton Khirnov2012-03-043-10/+20
| |
| * lavc: deprecate AVCodecContext.sub_id.Anton Khirnov2012-03-049-32/+32
| | | | | | | | | | | | | | In most places where it's used, it's as a pointless write-only field. Only rv10 decoder actually reads from it, but it stores some internal version info in it. There is no reason for it to be in a public field.
| * proresenc: give user a possibility to alter some encoding parametersKostya Shishkov2012-03-041-56/+122
| | | | | | | | | | This allows user to select quantisation matrix from different profile, stamp frames with custom vendor string and change target bitrate.
| * vorbisenc: add output buffer overwrite protectionJustin Ruggles2012-03-041-16/+43
| |
| * libopencore-amrnbenc: fix end-of-stream handlingJustin Ruggles2012-03-041-1/+27
| | | | | | | | | | | | Use CODEC_CAP_DELAY and CODEC_CAP_SMALL_LAST_FRAME to properly pad and flush the encoder at the end of encoding. This is needed in order to have all input samples decoded.
| * ra144enc: fix end-of-stream handlingJustin Ruggles2012-03-042-8/+26
| | | | | | | | | | | | Use CODEC_CAP_DELAY and CODEC_CAP_SMALL_LAST_FRAME to properly pad and flush the encoder at the end of encoding. This is needed in order to have all input samples decoded.
| * nellymoserenc: zero any leftover packet bytesJustin Ruggles2012-03-041-0/+1
| | | | | | | | fixes writing of uninitialized packet data
| * nellymoserenc: use proper MDCT overlap delayJustin Ruggles2012-03-041-27/+21
| |
| * qpeg: Use bytestream2 functions to prevent buffer overreads.Aneesh Dogra2012-03-031-43/+44
| | | | | | | | Signed-off-by: Ronald S. Bultje <[email protected]>
| * vp8: convert simple loopfilter x86 assembly to use named arguments.Ronald S. Bultje2012-03-031-25/+30
| |
| * vp8: convert idct x86 assembly to use named arguments.Ronald S. Bultje2012-03-031-97/+103
| |
| * vp8: convert mc x86 assembly to use named arguments.Ronald S. Bultje2012-03-031-272/+272
| |
| * vp8: convert loopfilter x86 assembly to use cpuflags().Ronald S. Bultje2012-03-031-201/+158
| |
| * vp8: convert idct/mc x86 assembly to use cpuflags().Ronald S. Bultje2012-03-032-116/+124
| |
| * wmaenc: fix m/s stereo encoding for the first frameJustin Ruggles2012-03-031-1/+3
| | | | | | | | | | | | | | | | We need to set ms_stereo in encode_init() in order to avoid incorrectly encoding the first frame as non-m/s while flagging it as m/s. Fixes an uncomfortable pop in the left channel at the start of playback. CC:[email protected]
| * wmaenc: return s->block_align instead of recalculating itJustin Ruggles2012-03-031-1/+1
| |
| * wmaenc: check final frame size against output packet sizeJustin Ruggles2012-03-031-4/+6
| | | | | | | | | | | | | | Currently we have an assert() that prevents the frame from being too large, but it is more user-friendly to give an error message instead of aborting on assert(). This condition is quite unlikely due to the minimum bit rate check in encode_init(), but it is still worth having.
| * wmaenc: require a large enough output buffer to prevent overwritesJustin Ruggles2012-03-031-0/+5
| | | | | | | | | | | | | | | | The maximum theoretical frame size is around 17000 bytes. Although in practice it will generally be much smaller, we require a larger buffer just to be safe. CC: [email protected]
| * wmaenc: limit allowed sample rate to 48kHzJustin Ruggles2012-03-031-0/+6
| | | | | | | | | | | | | | | | | | ff_wma_init() allows up to 50kHz, but this generates an exponent band size table that requires 65 bands. The code assumes 25 bands in many places, and using sample rates higher than 48kHz will lead to buffer overwrites. CC:[email protected]
| * wmaenc: limit block_align to MAX_CODED_SUPERFRAME_SIZEJustin Ruggles2012-03-031-2/+6
| | | | | | | | | | | | | | | | | | | | This is near the theoretical limit for wma frame size and is the most that our decoder can handle. Allowing higher bit rates will just end up padding each frame with empty bytes. Fixes invalid writes for avconv when using very high bit rates. CC:[email protected]
* | indeo3: Fix overreading requant_tab.Michael Niedermayer2012-03-041-1/+1
| | | | | | | | | | Found-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind Signed-off-by: Michael Niedermayer <[email protected]>
* | indeo3: Check motion vectors.Michael Niedermayer2012-03-041-0/+7
| | | | | | | | | | | | | | Fixes overread of reference frame. Found-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind Signed-off-by: Michael Niedermayer <[email protected]>
* | dsicinav: fix 10l bug introduced in 999d38f3a94eb963c073512e5dad7940456eb634Michael Niedermayer2012-03-041-0/+1
| | | | | | | | Signed-off-by: Michael Niedermayer <[email protected]>
* | pcm-mpeg: fix 10l condition flipMichael Niedermayer2012-03-041-1/+1
| | | | | | | | | | | | Original issue Found-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind 10l bug Found-by: nevcairiel Signed-off-by: Michael Niedermayer <[email protected]>
* | mmvideo: fix overreads of the input buffer.Michael Niedermayer2012-03-041-4/+16
| | | | | | | | | | Found-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind Signed-off-by: Michael Niedermayer <[email protected]>
* | dsicinvideo: validate buffer offset before copying pixels.Ronald S. Bultje2012-03-041-15/+23
| | | | | | | | | | | | | | Found-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind CC: [email protected] Signed-off-by: Michael Niedermayer <[email protected]>
* | truemotion2: check motion vectors for validityMichael Niedermayer2012-03-041-0/+5
| | | | | | | | | | | | | | Fixes out of array read Found-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind Signed-off-by: Michael Niedermayer <[email protected]>
* | pngdec: validate length.Michael Niedermayer2012-03-041-1/+1
| | | | | | | | | | | | | | Fixes out of array reading. Found-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind Signed-off-by: Michael Niedermayer <[email protected]>
* | Merge remote-tracking branch 'qatar/master'Michael Niedermayer2012-03-049-11/+377
|\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * qatar/master: tiertexseq: set correct block_align for audio tiertexseq: set audio stream start time to 0 voc/avs: Do not change the sample rate mid-stream. segafilm: use the sample rate as the time base for audio streams ea: fix audio pts psx-str: fix audio pts vqf: set packet duration tta demuxer: set packet duration mpegaudio_parser: do not ignore information from the first parsed frame mpegaudio_parser: be less picky about the start position thp: set audio packet durations avcodec: add a Vorbis parser to get packet duration vorbisdec: read the previous window flag for long windows lavc: free the output packet when encoding failed or produced no output. lavc: preserve avpkt->destruct in ff_alloc_packet(). lavc: clarify the meaning of AVCodecContext.frame_number. mpegts: Pad the packet buffer in handle_packet(). mpegts: Do not call read_sl_header() when no bytes remain in the buffer. Conflicts: libavcodec/mpegaudio_parser.c libavcodec/version.h libavformat/mpegts.c tests/ref/fate/pva-demux Merged-by: Michael Niedermayer <[email protected]>
| * mpegaudio_parser: do not ignore information from the first parsed frameJustin Ruggles2012-03-031-1/+1
| | | | | | | | Update some demuxing and seeking fate tests.
| * mpegaudio_parser: be less picky about the start positionMichael Niedermayer2012-03-031-1/+2
| | | | | | | | | | Signed-off-by: Michael Niedermayer <[email protected]> Signed-off-by: Justin Ruggles <[email protected]>
| * avcodec: add a Vorbis parser to get packet durationJustin Ruggles2012-03-036-2/+341
| | | | | | | | This also allows for removing some of the Vorbis-related hacks.
| * vorbisdec: read the previous window flag for long windowsJustin Ruggles2012-03-031-2/+4
| | | | | | | | | | | | When reading sequentially, we are using the actual flag from the previous frame, but when seeking we do not know what the previous window flag was, so we need to read it from the bitstream.
| * lavc: free the output packet when encoding failed or produced no output.Anton Khirnov2012-03-032-0/+16
| |
| * lavc: preserve avpkt->destruct in ff_alloc_packet().Anton Khirnov2012-03-031-3/+2
| | | | | | | | | | Also, don't bother with saving/restoring data, av_init_packet doesn't touch it.
| * lavc: clarify the meaning of AVCodecContext.frame_number.Anton Khirnov2012-03-031-1/+11
| |
* | wc4: fix out of chroma LUT readsMichael Niedermayer2012-03-041-0/+6
| | | | | | | | | | Found-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind Signed-off-by: Michael Niedermayer <[email protected]>