summaryrefslogtreecommitdiff
path: root/libavcodec/vc1dec.c
Commit message (Collapse)AuthorAge
...
* dsputil: remove one array dimension from avg_no_rnd_pixels_tab.Ronald S. Bultje2013-01-22
|
* Drop DCTELEM typedefDiego Biurrun2013-01-22
| | | | | | It does not help as an abstraction and adds dsputil dependencies. Signed-off-by: Ronald S. Bultje <rsbultje@gmail.com>
* lavc: put FF_IDCT_{VP3,H264,CAVS,BINK,EA,WMV2} under FF_API_IDCT.Ronald S. Bultje2013-01-20
| | | | | | This allows us to get rid of them on the next major bump. All of the above are functionally irrelevant, and most of them are unused, except the vp3 one, which is used wrongly in the bfin arch optimizations.
* vc1dec: prevent a crash due missing pred_flag parameterVladimir Pantelic2013-01-11
| | | | | | | Handle pred_flag parameter not given to get_mvdata_interlaced() Signed-off-by: Vladimir Pantelic <vladoman@gmail.com> Signed-off-by: Luca Barbato <lu_zero@gentoo.org>
* lavc: introduce VideoDSPContextRonald S. Bultje2012-12-20
| | | | | | | | Move some functions from dsputil. The idea is that videodsp contains functions that are useful for a large and varied set of video decoders. Currently, it contains emulated_edge_mc() and prefetch(). Signed-off-by: Luca Barbato <lu_zero@gentoo.org>
* cosmetics: Fix dropable --> droppable typoDiego Biurrun2012-12-09
|
* lavc: fix decode_frame() third parameter semantics for video decodersAnton Khirnov2012-12-04
| | | | It's got_frame, not data size
* lavc: add a wrapper for AVCodecContext.get_buffer().Anton Khirnov2012-12-04
| | | | It will be useful in the upcoming transition to refcounted AVFrames.
* Double motion vector range for HPEL interlaced picture in proper placeMashiat Sarker Shakkhar2012-10-10
| | | | | | | 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>
* vc1dec: Set opposite to the correct value for 1REF field picturesMashiat Sarker Shakkhar2012-10-10
| | | | Signed-off-by: Derek Buitenhuis <derek.buitenhuis@gmail.com>
* vc1dec: Invoke edge emulation regardless of MV precision for 1-MV chromaMashiat Sarker Shakkhar2012-10-10
| | | | | | | | | | 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>
* vc1dec: Set chroma reference field from REFFIELD for 1REF field picturesMashiat Sarker Shakkhar2012-10-10
| | | | | | | | 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>
* vc1dec: Use correct spelling of "opposite"Mashiat Sarker Shakkhar2012-10-10
| | | | Signed-off-by: Diego Biurrun <diego@biurrun.de>
* vc1dec: prevent memory leak in error pathJanne Grunau2012-10-09
| | | | Fixes CID732271.
* vc1dec: prevent memory leak on av_realloc errorJanne Grunau2012-10-09
|
* Replace PIX_FMT_* -> AV_PIX_FMT_*, PixelFormat -> AVPixelFormatAnton Khirnov2012-10-08
|
* avcodec: Convert some commented-out printf/av_log instances to av_dlogDiego Biurrun2012-10-01
|
* vc1dec: add flush function for WMV9 and VC-1 decodersKostya Shishkov2012-09-28
| | | | CC: libav-stable@libav.org
* MSS2 decoderAlberto Delmás2012-08-31
| | | | Signed-off-by: Kostya Shishkov <kostya.shishkov@gmail.com>
* vc1: export some functionsKostya Shishkov2012-08-28
| | | | | | | This is a preparatory step for the MSS2 decoder which needs to use the WMV9 decoder to decode some kinds of frames. From the patch by Alberto Delmás <adelmas@gmail.com>
* Replace all CODEC_ID_* with AV_CODEC_ID_*Anton Khirnov2012-08-07
|
* vc1dec: Remove separate scaling function for interlaced field MVsMashiat Sarker Shakkhar2012-08-03
| | | | | | | The scaling process for obtaining direct MVs from co-located field MVs is the same for interlaced field and progressive pictures. Signed-off-by: Kostya Shishkov <kostya.shishkov@gmail.com>
* vc1dec: Invoke edge_emulation regardless of MV precisionMashiat Sarker Shakkhar2012-08-03
| | | | | | | | | | | | In VC-1 interlaced field pictures, chroma motion vectors can extend beyond picture boundary even if luma vectors are bounded. The problem shows up only for hpel interpolated MVs, and may be due to the way motion vectors are scaled / cropped. Thanks to Konstantin Shishkov for suggesting the fix. This fixes long-known segfaults in MC-VC1.ts from videolan streams archive. Signed-off-by: Kostya Shishkov <kostya.shishkov@gmail.com>
* vc1dec: remove useless #include simple_idct.hMans Rullgard2012-08-02
| | | | Signed-off-by: Mans Rullgard <mans@mansr.com>
* vc1dec: Override invalid macroblock quantizerMichael Niedermayer2012-07-28
| | | | | | Found-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind Signed-off-by: Michael Niedermayer <michaelni@gmx.at> Signed-off-by: Kostya Shishkov <kostya.shishkov@gmail.com>
* vc1: avoid reading beyond the last line in vc1_draw_sprites()Michael Niedermayer2012-07-28
| | | | | | | | Fixes overread Found-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind Signed-off-by: Michael Niedermayer <michaelni@gmx.at> Signed-off-by: Kostya Shishkov <kostya.shishkov@gmail.com>
* vc1dec: check that coded slice positions and interlacing match.Michael Niedermayer2012-07-28
| | | | | | | | This fixes out of array writes Found-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind Signed-off-by: Michael Niedermayer <michaelni@gmx.at> Signed-off-by: Kostya Shishkov <kostya.shishkov@gmail.com>
* vc1dec: Do not ignore ff_vc1_parse_frame_header_adv return valueMichael Niedermayer2012-07-28
| | | | | | Found-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind Signed-off-by: Michael Niedermayer <michaelni@gmx.at> Signed-off-by: Kostya Shishkov <kostya.shishkov@gmail.com>
* vc1dec: Do not use random pred_flag if motion vector data is skippedMashiat Sarker Shakkhar2012-07-15
| | | | | | | This fixes SA10143.vc1 from test-suite. Also partially fixes MC-VC1.ts from videolan streams archive. Signed-off-by: Martin Storsjö <martin@martin.st>
* cosmetics: Align codec declarationsMartin Storsjö2012-04-06
| | | | | | | 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>
* vc1: Do not read from array if index is invalid.Mashiat Sarker Shakkhar2012-03-26
| | | | | | Found-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind CC: libav-stable@libav.org Signed-off-by: Ronald S. Bultje <rsbultje@gmail.com>
* vc1: Move init code shared between decoder and parser to common code file.Diego Biurrun2012-03-07
| | | | This fixes standalone compilation of the VC-1 parser.
* Replace AVFrame pointer type punning by proper struct member assignments.Diego Biurrun2012-03-01
|
* vc1parse: call vc1_init_common().Ronald S. Bultje2012-02-18
| | | | | | | | The parser uses VLC tables initialized in vc1_common_init(), therefore we should call this function on parser init also. Found-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind CC: libav-stable@libav.org
* vc1: prevent using last_frame as a reference for I/P first frame.Ronald S. Bultje2012-02-15
| | | | | Found-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind CC: libav-stable@libav.org
* mpegvideo: Add ff_ prefix to nonstatic functionsMartin Storsjö2012-02-15
| | | | Signed-off-by: Martin Storsjö <martin@martin.st>
* vc1: Add ff_ prefix to nonstatic symbolsMartin Storsjö2012-02-15
| | | | Signed-off-by: Martin Storsjö <martin@martin.st>
* msmpeg4: Add ff_ prefixes to nonstatic symbolsMartin Storsjö2012-02-15
| | | | Signed-off-by: Martin Storsjö <martin@martin.st>
* vc1: prevent null pointer dereference on broken filesJanne Grunau2012-02-01
| | | | CC: libav-stable@libav.org
* vc1dec.c: Don't use uninitialized values of dmv_[x, y]Mashiat Sarker Shakkhar2012-01-27
| | | | | | | | | | | MVDATA may or may not be transmitted. If it is not, both dmv_x and dmv_y is to be assumed zero. This may not trigger wrong picture in all systems, but it's a bug nevertheless. Fixes SA10116.vc1 on my 64-bit Windows 7. Signed-off-by: Ronald S. Bultje <rsbultje@gmail.com>
* cosmetics: drop some pointless parenthesesDiego Biurrun2012-01-07
|
* vc1dec: fix invalid memory access for small video dimensionsJohn Brooks2012-01-04
| | | | | | | | | | | For small video dimensions, these calculations of the upper bound for pixel access may have a negative result. Using an unsigned comparison to bound a potentially negative value only works if the greater operand is non-negative. Fixed by doing edge emulation when the upper bound is probably negative, everywhere that this pattern appears. Signed-off-by: Kostya Shishkov <kostya.shishkov@gmail.com>
* vc1dec: Use the right pointer type for the tmp pointerMartin Storsjö2011-12-20
| | | | | | | This fixes warnings about assignment from incompatible pointer type. Signed-off-by: Martin Storsjö <martin@martin.st>
* vc1: Handle WVC1 interlaced streamAneesh Dogra2011-12-19
| | | | Signed-off-by: Martin Storsjö <martin@martin.st>
* mpegvideo: remove abort() in ff_find_unused_picture()Andrey Utkin2011-12-14
| | | | Signed-off-by: Luca Barbato <lu_zero@gentoo.org>
* vc1: mark with ER_MB_ERROR bits overconsumptionLuca Barbato2011-12-13
| | | | | | | | | This patch is a generalization of what Michael Niedermayer fixed in a single case. The wmv8-drm fate test had been updated accordingly. Signed-off-by: Luca Barbato <lu_zero@gentoo.org>
* lavc: introduce ER_MB_END and ER_MB_ERRORLuca Barbato2011-12-13
| | | | | | Simplify a little error resilience calls Signed-off-by: Luca Barbato <lu_zero@gentoo.org>
* error_resilience: use the ER_ namespaceLuca Barbato2011-12-13
| | | | | | Add the namespace to {AC_,DC_,MV_}{END,ERROR} macros Signed-off-by: Luca Barbato <lu_zero@gentoo.org>
* Fix a bunch of common typos.Diego Biurrun2011-12-11
|
* cosmetics: drop some completely pointless parenthesesDiego Biurrun2011-12-07
|