Anshul Maheshwari
7d1898ebcc
avcodec/dvbsubdec: removed unnecessary null check for subtitle
...
In refrence to coverity defect 1224278
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
11 years ago
Anshul Maheshwari
263932c084
avcodec/dvbsubdec: fix ignoring blank frame by updating got_output
...
fix ticket 3737
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
11 years ago
Anshul Maheshwari
ca2f59e121
avcodec/dvbsubdec: support returning exact end times
...
fixess part of ticket #2024
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
11 years ago
Anshul Maheshwari
fbb59a3bf4
avcodec/dvbsubdec: Split save_subtitle_set() out
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
11 years ago
Anshul Maheshwari
77ade55fe5
avcodec/dvbsubdec: add AVClass to context
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
11 years ago
Anshul Maheshwari
9a11b33a2d
avcodec/dvbsubdec: restructure version check
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
11 years ago
Michael Niedermayer
8f4b176c55
avcodec/dvbsubdec: add some basic av_log debuging support
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
11 years ago
Michael Niedermayer
994a582a02
avcodec/dvbsubdec: use av_mallocz_array()
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
11 years ago
Diego Biurrun
3dc6272bed
Remove a number of unnecessary dsputil.h #includes
11 years ago
Diego Biurrun
05563ccacc
dsputil: cosmetics: Lose camelCase on ff_cropTbl and ff_squareTbl names
...
Also switch from "tbl" to "tab" name suffixes.
11 years ago
mrlika
36a6297953
avcodec/dvbsubdec: DVB subtitles decoder: support of 5 bytes extradata format
...
Reviewed-by: Marton Balint <cus@passwd.hu>
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
11 years ago
Michael Niedermayer
cf812d8129
avcodec/dvbsubdec: Remove unused display_list_size
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
11 years ago
Wim Vander Schelden
af09be4f4b
Fixed a memory leak in dvbsubenc.c: sub->num_rects was reduced without freeing the associated rects.
...
Signed-off-by: Wim Vander Schelden <lists@fixnum.org>
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
11 years ago
Pierre Yves MORDRET
0f02ea0afe
libavcodec/dvbsub: fix for Display Definition Segment
...
Given ETSI EN 300 743 V1.3.1 (2006-11), 7.2.1 Display definition segment
display window parameters are given in this order XMin, XMax, YMin, YMax
if display_window_flag is set, but here this is not the case.
As a consequence the DVB subtitles are not displayed upon some videos.
Signed-off-by: Pierre-Yves MORDRET <pierre-yves.mordret@st.com>
Reviewed-by: Kieran Kunhya <kierank@obe.tv>
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
11 years ago
Diego Biurrun
86f910806b
Remove #undefs for formerly forbidden system functions
...
The macros forbidding the system functions no longer exist, obviating
the need for the #undefs.
11 years ago
Diego Biurrun
b2bed9325d
cosmetics: Group .name and .long_name together in codec/format declarations
11 years ago
Reimar Döffinger
29f244e08e
dvbsubdec: Check for invalid clut selector.
...
Fail decoding if strict compliance is requested.
Signed-off-by: Reimar Döffinger <Reimar.Doeffinger@gmx.de>
11 years ago
JULIAN GARDNER
97ff584af4
Apply clut changes only to one table.
...
The specification does not allow multiple bits to be set,
but some encoders do it anyway.
Applying it only to the first seems to give better results.
Signed-off-by: Reimar Döffinger <Reimar.Doeffinger@gmx.de>
11 years ago
Reimar Döffinger
fe79fc2ea5
dvbsubdec: set width/height from display def if not set.
...
This fixes playback of DVB subtitles in
http://samples.ffmpeg.org/ffmpeg-bugs/trac/ticket1065/Test1.wtv
in MPlayer.
FFplay is not affected since it assumes that the subtitles
are scaled to match the video - but this usually isn't the
case after rescaling the video and stream-copying subtitles.
Signed-off-by: Reimar Döffinger <Reimar.Doeffinger@gmx.de>
12 years ago
Anton Khirnov
36ef5369ee
Replace all CODEC_ID_* with AV_CODEC_ID_*
12 years ago
Martin Storsjö
00c3b67b8a
cosmetics: Align codec declarations
...
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>
13 years ago
Michael Niedermayer
90f9b06386
dvbsubdec: Fix "set but not used" warning
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
13 years ago
Janne Grunau
6a4cf065c7
dvbsubdec: avoid undefined signed left shift in RGBA macro
13 years ago
Paul Kendall
7df9937fcc
Fix dvb subtitle decoding when display segment is missing.
13 years ago
Diego Biurrun
124e28847b
Remove some stray unnecessary ffmpeg references.
13 years ago
JULIAN GARDNER
3e01c9b547
dvbsubdec: cosmetic change on how xpos is passed around
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
13 years ago
Michael Niedermayer
7d2e4673b1
dvbsubdec: Fix 0xf0 end detection
...
Based on a change by JULIAN GARDNER
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
13 years ago
JULIAN GARDNER
d5f4857a73
dvbsubdec:dvbsub_display_end_segment() move main loop under if() as its useless if false.
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
13 years ago
JULIAN GARDNER
0f8d77199a
dvbsubdec: add version checking
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
13 years ago
JULIAN GARDNER
1fc7b0ed5a
dvbsubdec: handle mode change page state
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
13 years ago
JULIAN GARDNER
168a5d3b3c
dvbsubdec: change the top_bottom correction
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
13 years ago
JULIAN GARDNER
f12c7ad86d
dvbsubdec: fix buf ptr in dvbsub_parse_region_segment()
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
13 years ago
JULIAN GARDNER
7e0f4f9d0f
dvbsubdec: bottom_field_len fix
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
13 years ago
JULIAN GARDNER
55f17d3175
dvbsubdec: fix x/y_pos checks
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
13 years ago
JULIAN GARDNER
24fb1b64a6
dvbsubdec: outcomment debug stuff in dvbsub_parse_pixel_data_block()
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
13 years ago
JULIAN GARDNER
b522d2a3b7
dvbsubdec: dirty handkling
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
13 years ago
JULIAN GARDNER
eea064aea6
dvbsubdec: Fix variable increments & checking in dvbsub_read_*bit_string()
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
13 years ago
Joakim Plate
4a3294ef00
dvbsubdec: don't hardcode subtitle colors count in dvbsubdec to 16
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
13 years ago
Anton Khirnov
ec6402b7c5
lavc: use designated initialisers for all codecs.
...
It's more readable and less prone to breakage.
13 years ago
Jernej Fijačko
8b973d4937
Patch for memory leaks in DVB subtitles decoder
...
Signed-off-by: Joakim Plate <elupus@ecce.se>
14 years ago
Diego Biurrun
a4855adc80
dvbsubdec: Fix compilation of debug code.
14 years ago
Diego Biurrun
02a8d43adf
Replace some av_log/printf + #ifdef combinations by av_dlog.
14 years ago
Diego Biurrun
1f6b9cc31d
Replace some nonstandard DEBUG_* preprocessor directives by plain DEBUG.
14 years ago
JULIAN GARDNER
e822c237b3
dvbsubdec: Split delete_state()
14 years ago
Aurelien Jacobs
3ee8ca9b08
add avcodec_get_subtitle_defaults() to initialize AVSubtitle struct
...
Call this new function before decode() to replace the custom and
inconsistant initialization in various decoders.
This function is equivalent to avcodec_get_frame_defaults() for AVFrame.
Signed-off-by: Aurelien Jacobs <aurel@gnuage.org>
14 years ago
Mans Rullgard
2912e87a6c
Replace FFmpeg with Libav in licence headers
...
Signed-off-by: Mans Rullgard <mans@mansr.com>
14 years ago
Janne Grunau
1a08928538
dvbsubdec: check against buffer overreads
...
Signed-off-by: Janne Grunau <janne-ffmpeg@jannau.net>
(cherry picked from commit 493aa30adf
)
14 years ago
Reimar Döffinger
20708223db
Do not fail DVB sub decoding because of a few padding bytes
...
Instead of returning an error when bytes are left over, just return
the number of actually used bytes as other decoders do.
Instead add a special case so an error will be returned when none
of the data looks valid to avoid making debugging a pain.
Signed-off-by: Janne Grunau <janne-ffmpeg@jannau.net>
(cherry picked from commit 4a72765a1c
)
14 years ago
Janne Grunau
493aa30adf
dvbsubdec: check against buffer overreads
...
Signed-off-by: Janne Grunau <janne-ffmpeg@jannau.net>
14 years ago
Reimar Döffinger
4a72765a1c
Do not fail DVB sub decoding because of a few padding bytes
...
Instead of returning an error when bytes are left over, just return
the number of actually used bytes as other decoders do.
Instead add a special case so an error will be returned when none
of the data looks valid to avoid making debugging a pain.
Signed-off-by: Janne Grunau <janne-ffmpeg@jannau.net>
14 years ago