summaryrefslogtreecommitdiff
path: root/libavcodec/dvbsubdec.c
Commit message (Collapse)AuthorAge
* avcodec/dvbsubdec: error out on unsupported coding methodsClément Bœsch2020-08-22
|
* avcodec/dvbsubdec: request samples for missing coding methodsClément Bœsch2020-08-22
|
* avcodec/dvbsubdec: CosmeticsLimin Wang2020-07-08
| | | | Signed-off-by: Limin Wang <lance.lmwang@gmail.com>
* avcodec/dvbsubdec: prefer to use variable instead of type for sizeofLimin Wang2020-07-08
| | | | Signed-off-by: Limin Wang <lance.lmwang@gmail.com>
* avcodec/dvbsubdec: simplify code by using OFFSET() macroLimin Wang2020-07-08
| | | | Signed-off-by: Limin Wang <lance.lmwang@gmail.com>
* avcodec/dvbsubdec: replace data_size with got_sub_ptr for better readabilityLimin Wang2020-03-25
| | | | | Signed-off-by: Limin Wang <lance.lmwang@gmail.com> Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
* avcodec/dvbsubdec: Use ff_set_dimensions()Michael Niedermayer2019-07-20
| | | | | | | | | Fixes: signed integer overflow: 65313 * 65313 cannot be represented in type 'int' Fixes: 15740/clusterfuzz-testcase-minimized-ffmpeg_AV_CODEC_ID_DVBSUB_fuzzer-5641749164195840 Found-by: continuous fuzzing process https://github.com/google/oss-fuzz/tree/master/projects/ffmpeg Reviewed-by: Paul B Mahol <onemda@gmail.com> Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
* avcodec/dvbsubdec: Check object positionMichael Niedermayer2019-03-14
| | | | | | | | | | Reference: ETSI EN 300 743 V1.2.1 7.2.2 Region composition segment Fixes: Timeout Fixes: 13325/clusterfuzz-testcase-minimized-ffmpeg_AV_CODEC_ID_DVBSUB_fuzzer-5143979392237568 Found-by: continuous fuzzing process https://github.com/google/oss-fuzz/tree/master/projects/ffmpeg Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
* avcodec/dvbsubdec: Compute scoretab without iterating over pixels multiple ↵Michael Niedermayer2018-06-27
| | | | | | | | | | | times in compute_default_clut() Improves speed 102->2 sec Testcase: 8655/clusterfuzz-testcase-minimized-ffmpeg_AV_CODEC_ID_DVBSUB_fuzzer-6277869285146624 Fixes: Timeout Found-by: continuous fuzzing process https://github.com/google/oss-fuzz/tree/master/projects/ffmpeg Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
* avcodec/dvbsubdec: Avoid re-computing clutMichael Niedermayer2017-11-15
| | | | | | | | Fixes: Timeout Fixes: 3218/clusterfuzz-testcase-5390672154591232 Found-by: continuous fuzzing process https://github.com/google/oss-fuzz/tree/master/projects/ffmpeg Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
* Merge commit 'a594f17f83a1ffdc1eec18818208fe39487dd5d7'James Almer2017-11-06
|\ | | | | | | | | | | | | | | | | | | | | | | * commit 'a594f17f83a1ffdc1eec18818208fe39487dd5d7': dvbsubdec: Free subrect memory on allocation error dvbsubdec: Fixed segfault when decoding subtitles See fbb59a3bf4c8668197521b3db5f26d0e93aed1a6 39dfe6801a3f67c2964a829b65e8e38e3cb22217 Merged-by: James Almer <jamrial@gmail.com>
| * dvbsubdec: Free subrect memory on allocation errorVittorio Giovara2017-06-28
| | | | | | | | Signed-off-by: Vittorio Giovara <vittorio.giovara@gmail.com>
| * dvbsubdec: Fixed segfault when decoding subtitlesLorenz Brun2017-06-28
| | | | | | | | | | | | | | | | | | | | This fixes a segfault (originally found in Movian, but traced to libav) when decoding subtitles because only an array of rects is allocated, but not the actual structs it contains. The issue was probably introduced in commit 2383323 where the loop to allocate the rects in the array was thrown away. Signed-off-by: Vittorio Giovara <vittorio.giovara@gmail.com>
| * Use bitstream_init8() where appropriateDiego Biurrun2017-02-07
| |
| * dvbsubdec: Convert to the new bitstream readerAlexandra Hájková2017-01-09
| |
* | avcodec/dvbsubdec: Split best score computation out of loop in ↵Michael Niedermayer2017-10-14
| | | | | | | | | | | | | | | | compute_default_clut() 3% faster Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
* | avcodec/dvbsubdec: Factor a few expressions out of compute_default_clut()Michael Niedermayer2017-10-14
| | | | | | | | | | | | 32% faster loop Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
* | avcodec/dvbsubdec: Check for duplicate regions in dvbsub_parse_page_segment()Michael Niedermayer2017-08-25
| | | | | | | | | | | | | | | | Fixes: OOM Fixes: 3051/clusterfuzz-testcase-minimized-5745818336231424 Found-by: continuous fuzzing process https://github.com/google/oss-fuzz/tree/master/projects/ffmpeg Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
* | avcodec/dvbsubdec: Check pixel buffer size constraint from ETSI EN 300 743 ↵Michael Niedermayer2017-06-10
| | | | | | | | | | | | | | | | | | | | V1.3.1 Fixes: OOM Fixes: 2143/clusterfuzz-testcase-minimized-5482288060039168 Found-by: continuous fuzzing process https://github.com/google/oss-fuzz/tree/master/projects/ffmpeg Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
* | avcodec/dvbsubdec: Use av_image_check_size2()Michael Niedermayer2017-06-10
| | | | | | | | Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
* | avcodec/dvbsubdec: Check entry_idMichael Niedermayer2017-05-11
| | | | | | | | | | | | | | | | Fixes: randomly writing over the array end Fixes: 1473/clusterfuzz-testcase-minimized-5768907824562176 Found-by: continuous fuzzing process https://github.com/google/oss-fuzz/tree/master/targets/ffmpeg Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
* | avcodec/dvbsubdec: check region dimensionsMichael Niedermayer2017-05-08
| | | | | | | | | | | | | | | | Fixes: 1408/clusterfuzz-testcase-minimized-6529985844084736 Fixes: integer overflow Found-by: continuous fuzzing process https://github.com/google/oss-fuzz/tree/master/targets/ffmpeg Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
* | avcodec/dvbsubdec: Replace fprintf(stderr) by av_log()Michael Niedermayer2017-04-05
| | | | | | | | Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
* | Merge commit 'b34c6cd57a2e8aad5f773aea933f77883de320ec'Clément Bœsch2017-04-03
|\| | | | | | | | | | | | | * commit 'b34c6cd57a2e8aad5f773aea933f77883de320ec': dvbsub: cosmetics: Group all debug code together Merged-by: Clément Bœsch <u@pkh.me>
| * dvbsub: cosmetics: Group all debug code togetherDiego Biurrun2016-11-23
| |
* | Merge commit 'b8cd7a3c8df2c3aac8d7a0b5a02d83caf61bd769'Clément Bœsch2017-04-03
|\| | | | | | | | | | | | | | | | | * commit 'b8cd7a3c8df2c3aac8d7a0b5a02d83caf61bd769': dvbsub: Check for errors from system() printf(...) replaced with fprintf(stderr, ...) for logging errors. Merged-by: Clément Bœsch <u@pkh.me>
| * dvbsub: Check for errors from system()Diego Biurrun2016-11-23
| | | | | | | | | | libavcodec/dvbsubdec.c:145:5: warning: ignoring return value of ‘system’, declared with attribute warn_unused_result [-Wunused-result] libavcodec/dvbsubdec.c:148:5: warning: ignoring return value of ‘system’, declared with attribute warn_unused_result [-Wunused-result]
* | Merge commit '7effebde78977fafce935776153ea2f7c0981fa3'Clément Bœsch2017-03-19
|\| | | | | | | | | | | | | * commit '7effebde78977fafce935776153ea2f7c0981fa3': dvbsubdec: Remove disabled, near-duplicate debug code Merged-by: Clément Bœsch <u@pkh.me>
| * dvbsubdec: Remove disabled, near-duplicate debug codeDiego Biurrun2016-08-17
| |
| * dvbsubdec: Use NULL instead of 0 as pointer valueDiego Biurrun2016-08-03
| |
* | dvbsubdec: fix division by zero in compute_default_clutAndreas Cadhalpun2016-11-10
| | | | | | | | | | | | | | | | This problem was introduced in commit 4b90dcb8493552c17a811c8b1e6538dae4061f9d. Reviewed-by: Michael Niedermayer <michael@niedermayer.cc> Signed-off-by: Andreas Cadhalpun <Andreas.Cadhalpun@googlemail.com>
* | Merge commit 'b7e64fba7f37cc0399beae844f0a5dbef9219376'Clément Bœsch2016-06-21
|\| | | | | | | | | | | | | * commit 'b7e64fba7f37cc0399beae844f0a5dbef9219376': Reduce the scope of some variables Merged-by: Clément Bœsch <u@pkh.me>
| * Reduce the scope of some variablesDiego Biurrun2016-05-11
| | | | | | | | | | This avoids unused variable warnings after the next version bump. Also drop a trace level av_log() call that is in the way.
* | avcodec: use AV_OPT_TYPE_BOOL in a bunch of placesClément Bœsch2015-12-04
| |
* | Merge commit 'a17a7661906ba295d67afd80ac0770422e1b02b3'Hendrik Leppkes2015-10-22
|\| | | | | | | | | | | | | * commit 'a17a7661906ba295d67afd80ac0770422e1b02b3': lavc: Add data and linesize to AVSubtitleRect Merged-by: Hendrik Leppkes <h.leppkes@gmail.com>
| * lavc: Add data and linesize to AVSubtitleRectVittorio Giovara2015-10-21
| | | | | | | | | | | | | | | | | | | | | | | | Use the new fields directly instead of the ones from AVPicture. This removes a layer of indirection which serves no pratical purpose whatsoever, and will help in removing AVPicture structure completely later. Every subtitle encoder/decoder seamlessly points to the new arrays, so it is possible to deprecate AVSubtitleRect.pict. Signed-off-by: Vittorio Giovara <vittorio.giovara@gmail.com>
* | Merge commit '1da2a20763ae9ca579d5fd20763065871ddf6311'Hendrik Leppkes2015-10-05
|\| | | | | | | | | | | | | * commit '1da2a20763ae9ca579d5fd20763065871ddf6311': dvbsubdec: Fix function return type Merged-by: Hendrik Leppkes <h.leppkes@gmail.com>
| * dvbsubdec: Fix function return typeVittorio Giovara2015-10-04
| |
* | FF_OPT_TYPE_* -> AV_OPT_TYPE_*.Ronald S. Bultje2015-08-18
| |
* | avcodec/dvbsubdec: Print field lens in case they are too lergeMichael Niedermayer2015-08-13
| | | | | | | | Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
* | lavc: Remove newline from avpriv_request_sample() calls.Carl Eugen Hoyos2015-08-11
| |
* | avcodec/dvbsubdec: Do not stop decoding at a invalid depthMichael Niedermayer2015-08-05
| | | | | | | | | | | | | | | | This corrects parsing the later elements Fixes Ticket4754 Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
* | lavc/dvbsub: Do not fail on clut depth 0.Carl Eugen Hoyos2015-08-04
| | | | | | | | Fixes ticket #4752.
* | avcodec/dvbsubdec: Allow selecting the substream, or all substreamsMichael Niedermayer2015-08-04
| | | | | | | | | | | | Fixes Ticket 2161 Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
* | avcodec/dvbsubdec: Implement display definition segment fallback from ETSI ↵Michael Niedermayer2015-07-29
| | | | | | | | | | | | | | | | | | EN 300 743 V1.3.1 Fixes: subtitles.ts Fixes: Ticket679 Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
* | avcodec/dvbsubdec: Add option to select when to computer clut ↵Michael Niedermayer2015-07-27
| | | | | | | | | | | | | | (always/never/"if needed") Reviewed-by: Anshul <anshul.ffmpeg@gmail.com> Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
* | avcodec/dvbsubdec: Compute default CLUT based on bitmap analysisMichael Niedermayer2015-07-26
| | | | | | | | | | | | | | | | | | | | | | Fixes displaying subtitles before any CLUT has been received Fixes Ticket153 This will of course not display these initial subtitles in the correct color (as that is not known at that point) but they should look clean and not corrupted Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
* | avcodec/dvbsubdec: Fix buf_size check in ↵banastasov2015-05-30
| | | | | | | | | | | | | | | | dvbsub_parse_display_definition_segment() Fixes Ticket4326 Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* | avcodec/dvbsubdec: Clear w/h/size on region buffer allocation failureMichael Niedermayer2015-05-14
| | | | | | | | Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* | avcodec/dvbsubdec: Do not return a value from a function returning voidMichael Niedermayer2015-04-26
| | | | | | | | Signed-off-by: Michael Niedermayer <michaelni@gmx.at>