Hendrik Leppkes
50401f5fb7
avcodec: properly check pkt_timebase for validity
...
Unset/invalid timebases have a zero numerator.
This makes the checks consistent with other timebase checks and fixes an
integer division by 0.
9 years ago
Michael Niedermayer
432c1f35f7
avcodec/libzvbi-teletextdec: Remove unused variable ret
...
Fixes: libavcodec/libzvbi-teletextdec.c:232:9: warning: unused variable ret [-Wunused-variable]
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
9 years ago
Marton Balint
5e9f14e4bf
libzvbi-teletextdec: fix AVSubtitleRect pict compatiblity code
...
Only set pict if we got a valid rect.
Signed-off-by: Marton Balint <cus@passwd.hu>
9 years ago
Michael Niedermayer
3f85552e40
avcodec/libzvbi-teletextdec: Add variable to fix build
...
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
9 years ago
Hendrik Leppkes
ce97363628
avcodec/libzvbi: Update for AVSubtitleRect changes
9 years ago
Ronald S. Bultje
229843aa35
Replace av_dlog with ff_dlog.
...
ff_dlog checks compilability, and is non-public. av_dlog is deprecated
and no longer exists if FF_API_DLOG=0.
9 years ago
Clément Bœsch
c669af0f24
avcodec/ass: add ASS trailing \r\n in one single place
10 years ago
Michael Niedermayer
8ff061095f
avcodec/libzvbi-teletextdec: remove * 1
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
11 years ago
Marton Balint
085ca7dcdb
libzvbi-teletextdec: split dvb packet to slices
...
Instead of using the demux function of libzvbi to split the packet to slices
(vbi lines), lets do it ourselves.
- eliminates the 1 frame delay between page input and output
- handles non-ascending line numbers more gracefully
- enables us to return error codes on some invalid packets instead of silently
ignoring them
Signed-off-by: Marton Balint <cus@passwd.hu>
11 years ago
Marton Balint
ae017c2632
libzvbi-teletextdec: use av_dlog where possible
...
Signed-off-by: Marton Balint <cus@passwd.hu>
11 years ago
Carl Eugen Hoyos
b89596a432
Fix FSF address in colormatrix and libzvbi license headers.
...
As reported by irc user aca.
The files in compat/avisynth are maintained elsewhere, no changes.
11 years ago
Marton Balint
97f880e7a9
libzvbi-teletextdec: set bitmap teletext canvas dimensions
...
Signed-off-by: Marton Balint <cus@passwd.hu>
11 years ago
Marton Balint
c77e0c2130
libzvbi-teletextdec: add chopped top row size to y offset
...
Signed-off-by: Marton Balint <cus@passwd.hu>
11 years ago
Marton Balint
249a435989
libzvbi-teletextdec: use defined constants for bitmap char width and height
...
Signed-off-by: Marton Balint <cus@passwd.hu>
11 years ago
Marton Balint
b50968169d
libzvbi-teletextdec: cosmetics
...
Signed-off-by: Marton Balint <cus@passwd.hu>
11 years ago
Marton Balint
c0479f0f06
libzvbi-teletextdec: propagate errors generated in page handler
...
Signed-off-by: Marton Balint <cus@passwd.hu>
11 years ago
Marton Balint
4947b0624b
libzvbi-teletextdec: dont ignore memory allocation error silently
...
Signed-off-by: Marton Balint <cus@passwd.hu>
11 years ago
Marton Balint
3c4b5275b6
libzvbi-teletextdec: output ass subtitles instead of plain text
...
Signed-off-by: Marton Balint <cus@passwd.hu>
11 years ago
Marton Balint
65fb59abd2
libzvbi-teletextdec: use AVBPrint for whitespace cleanup
...
Signed-off-by: Marton Balint <cus@passwd.hu>
11 years ago
Marton Balint
b689b1f6ee
libzvbi-teletextdec: use option constants instead of strings
...
Signed-off-by: Marton Balint <cus@passwd.hu>
11 years ago
Marton Balint
688652e0d6
libzvbi-teletextdec: fix indentation after last commit
...
Signed-off-by: Marton Balint <cus@passwd.hu>
11 years ago
Marton Balint
a494757b34
libzvbi-teletextdec: support multiple teletext pages in a single packet
...
After this patch, if a packet contains multiple teletext pages, the teletext
decoder can return the fist page and store the remaining pages in memory, and
return them to the user on the next calls to avcodec_decode_subtitle2.
Signed-off-by: Marton Balint <cus@passwd.hu>
11 years ago
Michael Niedermayer
e510171f31
avcodec: fix old codec ids
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
11 years ago
Clément Bœsch
b46f19100b
cosmetics: group remaining .name and .long_name.
...
See b2bed9325
.
11 years ago
Marton Balint
b339dccbba
lavc: add teletext decoder using libzvbi
...
Based on a patch by Wolfram Gloger <wmglo@dent.med.uni-muenchen.de>.
http://lists.ffmpeg.org/pipermail/ffmpeg-devel/2012-December/136677.html
The original patch was rebased by Tudor SUCIU <tudor.suciu@gmail.com>.
Lots of additional features and fixes are made by me.
Fixes ticket #2086 .
Changes since last version:
- change default page to all pages
Signed-off-by: Marton Balint <cus@passwd.hu>
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
11 years ago