summaryrefslogtreecommitdiffstats
path: root/libavcodec/rv10.c
Commit message (Collapse)AuthorAgeFilesLines
* cosmetics: Write NULL pointer inequality checks more compactlyGabriel Dume2014-08-151-2/+2
| | | | Signed-off-by: Diego Biurrun <diego@biurrun.de>
* cosmetics: Write NULL pointer equality checks more compactlyGabriel Dume2014-08-151-2/+2
| | | | Signed-off-by: Diego Biurrun <diego@biurrun.de>
* mpegvideo: cosmetics: Lowercase ugly uppercase MPV_ function name prefixesDiego Biurrun2014-08-151-9/+9
|
* idct: remove call to ff_idctdsp_init from ff_MPV_common_initJohn Stebbins2014-08-141-0/+1
| | | | | One step in untangling the mpegvideo code and fixing some problems in the order that initialization is being done in h263dec and h261dec.
* mpegencconetxt: Move rv10-specific orig_width/orig_height where they belongNidhi Makhijani2014-07-201-6/+7
| | | | Signed-off-by: Diego Biurrun <diego@biurrun.de>
* mpeg: Split error resilience bits off into a separate fileDiego Biurrun2014-06-221-0/+1
|
* mpegvideo: operate with pointers to AVFrames instead of whole structswm42014-04-091-3/+3
| | | | | | | | | | | | | The most interesting parts are initialization in ff_MPV_common_init() and uninitialization in ff_MPV_common_end(). ff_mpeg_unref_picture and ff_thread_release_buffer have additional NULL checks for Picture.f, because these functions can be called on uninitialized or partially initialized Pictures. NULL pointer checks are added to ff_thread_release_buffer() stub function. Signed-off-by: Vittorio Giovara <vittorio.giovara@gmail.com>
* lavc: drop ff_pixfmt_list_420Vittorio Giovara2014-03-231-2/+8
|
* avcodec: more correct printf specifiersDiego Biurrun2014-03-221-2/+3
|
* rv10: K&R formatting cosmeticsKeiji Costantini2014-03-081-44/+63
| | | | | | Also sort #includes into canonical order. Signed-off-by: Diego Biurrun <diego@biurrun.de>
* rv10: Forward error from rv10_decode_packetKeiji Costantini2014-03-081-1/+4
| | | | Signed-off-by: Diego Biurrun <diego@biurrun.de>
* mpegvideo: drop support for real (non-emulated) edgesAnton Khirnov2014-01-091-1/+0
| | | | | | | Several decoders disable those anyway and they are not measurably faster on x86. They might be somewhat faster on other platforms due to missing emu edge SIMD, but the gain is not large enough (and those decoders relevant enough) to justify the added complexity.
* dsputil: Split off H.263 bits into their own H263DSPContextDiego Biurrun2013-11-081-0/+1
|
* rv10: stop using deprecated avcodec_set_dimensionsAnton Khirnov2013-10-311-3/+6
|
* cosmetics: Group .name and .long_name together in codec/format declarationsDiego Biurrun2013-10-031-2/+2
|
* rv10: Validate the dimensions set from the containerMartin Storsjö2013-09-191-0/+3
| | | | | | Reported-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind CC: libav-stable@libav.org Signed-off-by: Martin Storsjö <martin@martin.st>
* Remove commented-out debug #define cruftDiego Biurrun2013-05-161-2/+0
|
* rv10: check that extradata is large enoughAnton Khirnov2013-04-171-0/+5
| | | | | Reported-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind CC:libav-stable@libav.org
* rv10: return meaningful error codes.Anton Khirnov2013-04-171-26/+26
| | | | Also improve some error messages.
* rv10: cosmetics, reformatAnton Khirnov2013-04-171-265/+273
|
* avcodec: av_log_missing_feature(1) ---> avpriv_request_sample()Diego Biurrun2013-03-131-1/+1
|
* lavc decoders: work with refcounted frames.Anton Khirnov2013-03-081-4/+7
|
* Add missing error_resilience includes to files that use ERDiego Biurrun2013-03-071-0/+1
|
* Remove unnecessary dsputil.h #includesDiego Biurrun2013-02-261-1/+0
|
* error_resilience: decouple ER from MpegEncContextAnton Khirnov2013-02-151-4/+4
|
* rv10: improve buffer size check.Anton Khirnov2013-02-061-2/+6
| | | | | Check slice count and input buffer size before constructing a possibly invalid pointer, not after.
* h263: remove an unused parameter from ff_h263_decode_init_vlcAnton Khirnov2013-02-061-1/+1
|
* miscellaneous typo fixesDiego Biurrun2012-12-211-1/+1
|
* lavc: fix decode_frame() third parameter semantics for video decodersAnton Khirnov2012-12-041-2/+2
| | | | It's got_frame, not data size
* Replace PIX_FMT_* -> AV_PIX_FMT_*, PixelFormat -> AVPixelFormatAnton Khirnov2012-10-081-1/+1
|
* avcodec: Drop some silly commented-out av_log() invocationsDiego Biurrun2012-10-011-6/+1
|
* Replace all CODEC_ID_* with AV_CODEC_ID_*Anton Khirnov2012-08-071-4/+4
|
* Remove lowres video decodingMans Rullgard2012-04-211-4/+1
| | | | | | | This feature is complex, of questionable utility, and slows down normal decoding. Signed-off-by: Mans Rullgard <mans@mansr.com>
* cosmetics: Align codec declarationsMartin Storsjö2012-04-061-7/+7
| | | | | | | Also break some long lines, remove codec function placeholder comments and add spaces in sample/pixel format lists. Signed-off-by: Martin Storsjö <martin@martin.st>
* lavc: deprecate AVCodecContext.sub_id.Anton Khirnov2012-03-041-15/+23
| | | | | | | 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.
* rv10/20: Fix slice overflow with checked bitstream reader.Alex Converse2012-03-021-7/+21
|
* rv10/20: Fix a buffer overread caused by losing track of the remaining ↵Alex Converse2012-03-021-1/+5
| | | | | | | buffer size. Found-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind CC: libav-stable@libav.org
* Replace AVFrame pointer type punning by proper struct member assignments.Diego Biurrun2012-03-011-2/+2
|
* mpegvideo: Add ff_ prefix to nonstatic functionsMartin Storsjö2012-02-151-9/+9
| | | | Signed-off-by: Martin Storsjö <martin@martin.st>
* rv: Add ff_ prefix to nonstatic symbolsMartin Storsjö2012-02-151-1/+1
| | | | Signed-off-by: Martin Storsjö <martin@martin.st>
* h263: Add ff_ prefix to nonstatic symbolsMartin Storsjö2012-02-151-1/+1
| | | | Signed-off-by: Martin Storsjö <martin@martin.st>
* rv20: prevent calling ff_h263_decode_mba() with unset height/widthJanne Grunau2012-01-251-1/+2
| | | | | | | Prevents a crash of VLC during playback of a invalid matroska file, found by John Villamil <johnv@matasano.com>. CC: libav-stable@libav.org
* rv10: verify slice offsets against buffer sizeJanne Grunau2012-01-241-1/+8
| | | | Found by John Villamil <johnv@matasano.com> in fuzzed rv20 in mkv files.
* lavc: introduce ER_MB_END and ER_MB_ERRORLuca Barbato2011-12-131-1/+1
| | | | | | Simplify a little error resilience calls Signed-off-by: Luca Barbato <lu_zero@gentoo.org>
* error_resilience: use the ER_ namespaceLuca Barbato2011-12-131-1/+1
| | | | | | Add the namespace to {AC_,DC_,MV_}{END,ERROR} macros Signed-off-by: Luca Barbato <lu_zero@gentoo.org>
* rv10: Reject slices that does not have the same type as the first oneLaurent Aimar2011-09-191-0/+5
| | | | | | This prevents crashes with some corrupted bitstreams. Signed-off-by: Martin Storsjö <martin@martin.st>
* rv10/20: tell decoder to use edge emulationKostya Shishkov2011-08-171-0/+1
| | | | | | | | This removes out-of-edge motion compensation artifacts (easily spotted green blocks in avplay, gray blocks in transcoding), for example here: http://samples.libav.org/samples/real/tv_watching_t1.rm Signed-off-by: Diego Biurrun <diego@biurrun.de>
* Saner RV1/2 initialisation and RV2 header parsing.Kostya Shishkov2011-08-081-57/+45
| | | | | | | | | Old version was based on lots of guesswork which had different hacks based on 32-bit version field instead of splitting it into major/minor/micro version. RV2 picture header parser also had a few places where it deviated from binary decoder. Signed-off-by: Ronald S. Bultje <rsbultje@gmail.com>
* lavc: use designated initialisers for all codecs.Anton Khirnov2011-07-291-18/+16
| | | | It's more readable and less prone to breakage.
* Remove unused variablesMans Rullgard2011-06-021-2/+2
|
OpenPOWER on IntegriCloud