summaryrefslogtreecommitdiffstats
path: root/libavcodec/cavsdec.c
Commit message (Collapse)AuthorAgeFilesLines
* cavsdec: check ff_get_buffer() return valueAnton Khirnov2014-01-061-2/+5
| | | | | Found-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind CC:libav-stable@libav.org
* cavs: Check for negative cbpLuca Barbato2013-10-131-3/+3
| | | | | | Sample-Id: 00000647-google Reported-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind CC: libav-stable@libav.org
* cavs: Return meaningful error valuesLuca Barbato2013-10-131-10/+10
|
* cosmetics: Group .name and .long_name together in codec/format declarationsDiego Biurrun2013-10-031-1/+1
|
* cavsdec: Make sure a sequence header has been decoded before decoding picturesMartin Storsjö2013-09-161-0/+5
| | | | | | Reported-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind CC: libav-stable@libav.org Signed-off-by: Martin Storsjö <martin@martin.st>
* lavc: Rename avpriv_mpv_find_start_code after moving out from mpegvideoMartin Storsjö2013-03-261-1/+1
| | | | | | | Also move the declaration to internal.h, and add restrict qualifiers to the declaration (as in the implementation). Signed-off-by: Martin Storsjö <martin@martin.st>
* av_log_missing_feature() ---> avpriv_report_missing_feature()Diego Biurrun2013-03-131-1/+2
|
* lavc decoders: work with refcounted frames.Anton Khirnov2013-03-081-19/+14
|
* Drop DCTELEM typedefDiego Biurrun2013-01-221-4/+4
| | | | | | It does not help as an abstraction and adds dsputil dependencies. Signed-off-by: Ronald S. Bultje <rsbultje@gmail.com>
* cavsdec: export picture type in the output frameAnton Khirnov2012-12-301-15/+15
|
* cavs: deMpegEncContextizeAnton Khirnov2012-12-301-112/+111
| | | | | | | | | | | It does not use any of the mpegvideo infrastructure, just a few fields from the context. Fixes a segfault with the emu edge flag, since emu edge buffer is now allocated as a part of the frame buffer allocation and cavs calls ff_get_buffer() directly, it does not use mpegvideo buffer management. Fixes a memleak of the last frame.
* cavsdec: cosmetics, reformatAnton Khirnov2012-12-301-599/+617
|
* lavc: fix decode_frame() third parameter semantics for video decodersAnton Khirnov2012-12-041-5/+5
| | | | It's got_frame, not data size
* lavc: add a wrapper for AVCodecContext.get_buffer().Anton Khirnov2012-12-041-1/+2
| | | | It will be useful in the upcoming transition to refcounted AVFrames.
* avcodec: Rename avpriv_frame_rate_tab to ff_mpeg12_frame_rate_tabMartin Storsjö2012-10-181-2/+2
| | | | | | | This table doesn't need to be shared with libavformat any longer. Add mpeg12 to the name to make it less ambiguous, while renaming it. Signed-off-by: Martin Storsjö <martin@martin.st>
* Restructure av_log_missing_feature messageDiego Biurrun2012-10-091-1/+1
| | | | | | | | Some invocations include a verb in the log message, others do not. Yet av_log_missing_feature expects callers to provide a verb. Change the function to include a verb instead and update the callers accordingly. The result is a more natural function API and correct English in the function invocations.
* cavsdec: check for changing w/h.Michael Niedermayer2012-09-291-2/+11
| | | | | | | | | Our decoder does not support changing w/h. Fixes CVE-2012-2777 and CVE-2012-2784. Found-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind Signed-off-by: Anton Khirnov <anton@khirnov.net>
* cavsdsp: set idct permutation independently of dsputilMans Rullgard2012-09-071-1/+2
| | | | | | | CAVS uses its own idct so using dsputil to set the permutation is fragile. Signed-off-by: Mans Rullgard <mans@mansr.com>
* cavs: Move inline functions only used in one file out of the headerDiego Biurrun2012-08-261-0/+39
|
* cavs: Move data tables used in only one place to that fileDiego Biurrun2012-08-261-10/+418
|
* Replace all CODEC_ID_* with AV_CODEC_ID_*Anton Khirnov2012-08-071-1/+1
|
* Improve descriptiveness of a number of codec and container long namesDiego Biurrun2012-07-301-1/+1
|
* cosmetics: Align codec declarationsMartin Storsjö2012-04-061-2/+2
| | | | | | | 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>
* avs: fix infinite loop on end-of-stream.Ronald S. Bultje2012-03-071-0/+1
| | | | | | | | | The codec would keep returning the last decoded frame if the stream contains B-frames, since it wouldn't clear that frame from the list of frames to be returned to the user. 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-3/+3
|
* Replace AVFrame pointer casts by proper struct member accesses.Diego Biurrun2012-03-011-5/+5
|
* mpegvideo: Add ff_ prefix to nonstatic functionsMartin Storsjö2012-02-151-1/+1
| | | | Signed-off-by: Martin Storsjö <martin@martin.st>
* cosmetics: drop some pointless parenthesesDiego Biurrun2012-01-071-1/+1
|
* lavc: use avpriv_ prefix for ff_frame_rate_tab.Anton Khirnov2011-10-201-2/+2
| | | | It's used in lavf.
* lavc: rename ff_find_start_code to avpriv_mpv_find_start_codeAnton Khirnov2011-10-201-1/+1
| | | | It's used in lavf.
* cavs: fix some crashes with invalid bitstreamsMans Rullgard2011-08-101-3/+8
| | | | | | | | | This removes all valgrind-reported invalid writes with one specific test file. Fixes http://www.ocert.org/advisories/ocert-2011-002.html Signed-off-by: Mans Rullgard <mans@mansr.com>
* lavc: use designated initialisers for all codecs.Anton Khirnov2011-07-291-9/+8
| | | | It's more readable and less prone to breakage.
* Eliminate FF_COMMON_FRAME macro.Diego Biurrun2011-07-111-8/+8
| | | | | FF_COMMON_FRAME holds the contents of the AVFrame structure and is also copied to struct Picture. Replace by an embedded AVFrame structure in struct Picture.
* Replace deprecated FF_*_TYPE symbols with AV_PICTURE_TYPE_*.Stefano Sabatini2011-05-021-15/+15
| | | | Signed-off-by: Diego Biurrun <diego@biurrun.de>
* Replace FFmpeg with Libav in licence headersMans Rullgard2011-03-191-4/+4
| | | | Signed-off-by: Mans Rullgard <mans@mansr.com>
* Add ff_ prefix to data symbols of encoders, decoders, hwaccel, parsers, bsf.Diego Elio Pettenò2011-01-261-1/+1
| | | | | | | None of these symbols should be accessed directly, so declare them as hidden. Signed-off-by: Mans Rullgard <mans@mansr.com>
* Move cavs dsp functions to their own structMåns Rullgård2010-08-031-1/+1
| | | | Originally committed as revision 24685 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Remove explicit filename from Doxygen @file commands.Diego Biurrun2010-04-201-1/+1
| | | | | | | | Passing an explicit filename to this command is only necessary if the documentation in the @file block refers to a file different from the one the block resides in. Originally committed as revision 22921 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Define AVMediaType enum, and use it instead of enum CodecType, whichStefano Sabatini2010-03-301-1/+1
| | | | | | is deprecated and will be dropped at the next major bump. Originally committed as revision 22735 to svn://svn.ffmpeg.org/ffmpeg/trunk
* add heuristic to discern the old sample clips from streams encodedStefan Gehrer2010-02-151-0/+9
| | | | | | with rm52j encoder, a marker_bit has been added in the I-Frame syntax Originally committed as revision 21836 to svn://svn.ffmpeg.org/ffmpeg/trunk
* fix slice header checkingStefan Gehrer2009-06-301-1/+1
| | | | Originally committed as revision 19303 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Rename bitstream.h to get_bits.h.Stefano Sabatini2009-04-131-1/+1
| | | | Originally committed as revision 18494 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Implement avcodec_decode_video2(), _audio3() and _subtitle2() which takes anThilo Borgmann2009-04-071-1/+3
| | | | | | | | | | | AVPacket argument rather than a const uint8_t *buf + int buf_size. This allows passing of packet-specific flags from demuxer to decoder, such as the keyframe flag, which appears necessary to playback corePNG P-frames. Patch by Thilo Borgmann thilo.borgmann googlemail com, see also the thread "Google Summer of Code participation" on the mailinglist. Originally committed as revision 18351 to svn://svn.ffmpeg.org/ffmpeg/trunk
* check for a stuffing byte at the end of a sliceStefan Gehrer2009-02-241-0/+3
| | | | Originally committed as revision 17559 to svn://svn.ffmpeg.org/ffmpeg/trunk
* change macroblock loop in inter frames so that after aStefan Gehrer2009-02-241-34/+29
| | | | | | slice header the skip count is always parsed first Originally committed as revision 17558 to svn://svn.ffmpeg.org/ffmpeg/trunk
* introduce a macroblock index to avoid a few x*width+y calculationsStefan Gehrer2009-02-101-9/+10
| | | | Originally committed as revision 17138 to svn://svn.ffmpeg.org/ffmpeg/trunk
* fix multiple slices per frameStefan Gehrer2009-02-101-1/+11
| | | | Originally committed as revision 17137 to svn://svn.ffmpeg.org/ffmpeg/trunk
* fix parsing of pic_structureStefan Gehrer2009-02-101-3/+4
| | | | Originally committed as revision 17136 to svn://svn.ffmpeg.org/ffmpeg/trunk
* avoid duplicating dsputil's clear_blockStefan Gehrer2009-02-101-0/+1
| | | | Originally committed as revision 17135 to svn://svn.ffmpeg.org/ffmpeg/trunk
* time_code has 24 bits, not 16Stefan Gehrer2009-02-101-1/+1
| | | | Originally committed as revision 17134 to svn://svn.ffmpeg.org/ffmpeg/trunk
OpenPOWER on IntegriCloud