Clément Bœsch
3d6a246b4b
lavf/srtenc: add AVFMT_TS_NONSTRICT flag.
There is not really a problem in having two events at the same time.
Even if it's not perfectly correct, it helps remuxing more files
(typically our FATE sample).
13 years ago
Paul B Mahol
07ed191b15
parse ID3v2 chapters
Signed-off-by: Paul B Mahol <onemda@gmail.com>
13 years ago
Carl Eugen Hoyos
96fac764fa
Add an additional AAC TwoCC.
Mentioned on http://msdn.microsoft.com/en-us/library/dd341376%28prot.20%29.aspx
Originally committed to vlc by Jean-Baptiste.
13 years ago
bbraun
d72aef4e92
movenc: add more metadata types
Fixes Ticket1052
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
13 years ago
Luca Barbato
424b1e7642
yuv4mpeg: reject unsupported codecs
The muxer already rejects unsupported pixel formats, reject also
unsupported codecs to prevent dangerous misuses.
13 years ago
Luca Barbato
fce4450dec
nutenc: K&R formatting cosmetics
13 years ago
Michael Niedermayer
0f943ed3c8
swfenc: zero fifo after freeing
Fixes CID602000
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
13 years ago
Piotr Bandurski
2ef26b5e73
riff: support 0xa100 TwoCC
fixes decoding of file "4790b7f1c44f98e35f3b806468fa615f5930a5b3.wav" from ticket #1856
(0xa100 = Comverse Infosys Ltd. G723 1)
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
13 years ago
Mans Rullgard
4cbae57cef
assdec: fix qsort() callback signature
This changes the event_cmp() function to the correct signature,
avoiding an ugly cast.
Signed-off-by: Mans Rullgard <mans@mansr.com>
13 years ago
Mans Rullgard
4521645b1a
avio: fix pointer type mismatches in avio_enum_protocols()
Signed-off-by: Mans Rullgard <mans@mansr.com>
13 years ago
Mans Rullgard
be2efe0c7b
udp: use socklen_t where appropriate
getsockname() takes a pointer to socklen_t which is not necessarily
int.
Signed-off-by: Mans Rullgard <mans@mansr.com>
13 years ago
Mans Rullgard
9efbfe57e0
network: use HAVE_THREADS instead of local hack
HAVE_THREADS is set in config.h if pthreads or w32threads is
available, which presumably the proper condition here.
Also fixes undefined behaviour in preprocessor directives.
Signed-off-by: Mans Rullgard <mans@mansr.com>
13 years ago
Michael Bradshaw
c430cb49fd
Update my email address
Signed-off-by: Michael Bradshaw <mjbshaw@gmail.com>
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
13 years ago
Clément Bœsch
5f0105b820
lavf/srtenc: allow zero duration events.
This is useful when you want to remux events with zero (or too small)
durations.
13 years ago
Paul B Mahol
adc61d68b0
bit: check av_new_packet() return value
Fixes CID703626.
Signed-off-by: Paul B Mahol <onemda@gmail.com>
13 years ago
Michael Niedermayer
c01a462cda
rmdec: fix null derefercne
Fixes CID733714
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
13 years ago
Michael Niedermayer
1bf5071104
rmdec: use av_assert for audio_pkt_cnt
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
13 years ago
Paul B Mahol
7fe6f6e2b1
caf muxer: write metadata
Signed-off-by: Paul B Mahol <onemda@gmail.com>
13 years ago
Matthieu Bouron
cfb1c3c9f0
aiffdec: read ID3 attached pictures
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
13 years ago
Paul B Mahol
73f9d2e887
cafenc: make .long_name match demuxer
While here reindent .codec_tag .
Signed-off-by: Paul B Mahol <onemda@gmail.com>
13 years ago
Paul B Mahol
43f662d9bf
lvfdec: cosmetics: fix identation
Signed-off-by: Paul B Mahol <onemda@gmail.com>
13 years ago
Luca Barbato
254056c4ab
pcm: change references to raw to pcm
25 years ago
Luca Barbato
587874ef1c
rawdec: remove ff_raw_read_header
It is not used anymore and is a kludge.
13 years ago
Luca Barbato
2ef4d586d6
pcmdec: remove dependency from rawdec
The code shared is not actually shared with anything else.
13 years ago
Luca Barbato
5f0e161dd6
g722: refactor out of rawdec.c
13 years ago
Luca Barbato
42c26a4864
rawvideo: use a specific read_header
ff_raw_read_header is used only for this demuxer for video.
13 years ago
Tomas Härdin
5c108092a3
mxfenc: Write MultipleDescriptor ref in Preface
Reviewed-by: Matthieu Bouron <matthieu.bouron@gmail.com>
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
13 years ago
Diego Biurrun
2a91ada828
avutil: Make LZO decoder code configure-time selectable
13 years ago
Michael Niedermayer
ed68085104
asfdec: fixed signedness in comparission
Fixes CID739864
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
13 years ago
Michael Niedermayer
58c2c17f1d
mov_probe: use correct variable
Fixes CID739867
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
13 years ago
Clément Bœsch
2ecf9492ff
lavf/srtenc: set codec to subrip by default.
We don't have a text encoder yet, so this commit makes automatic
encoding working with srt output.
13 years ago
Clément Bœsch
fd090a5d09
lavf/srtenc: simplify timing printing.
13 years ago
Clément Bœsch
c27b3816e4
srt: make the demuxer output SubRip packets.
The SRT format should never have outputted CODEC_ID_SRT packets in the
first place: SRT is a subtitle format containing SubRip text markup
events. The timing information is part of the format, not the codec, and
thus CODEC_ID_SRT should not exist.
Creating packets with the timing information within the payload only
leads to problem (such as remuxing with timing alteration not working),
especially when the SubRip markup is being used in container like
Matroska in addition to this standalone SRT format.
The main reason the timing line was included in those CODEC_ID_SRT
packets is likely because it contained extra information (the event
position) the codec actually needs. This issue is solved by using the
AV_PKT_DATA_SUBTITLE_POSITION side data type.
13 years ago
Clément Bœsch
a96b39de62
lavf/srtdec: simplify start/end computation.
Also fix potential overflow (CID733778)
13 years ago
Clément Bœsch
c01d1d4ddf
http: add -content_type user option.
13 years ago
Paul B Mahol
e12cfd044c
lavf: const correctness for avformat_new_stream
Signed-off-by: Paul B Mahol <onemda@gmail.com>
13 years ago
Tomas Härdin
e3ba817b95
mxfenc: Fix possible integer overflows
None of these are likely unless the user is writing a file with two billion
streams or a duration of around two months.
This fixes CIDs 700568, 700569, 700570, 700571, 700572 and 700573.
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
13 years ago
Tomas Härdin
fbb39f44f1
mxfdec: Fix potential leak in mxf_read_local_tags()
This fixes CID 733800.
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
13 years ago
Tomas Härdin
1d22d269f5
mxfdec: Fix a potential DoS vector in mxf_read_pixel_layout()
There's a a potential DoS problem in this function. Say an MXF file is
created with a PixelLayout with a long run of non-zeroes. Such a file could be
sent quickly (packed) over the net and would unpack quite fast. mxfdec would
then read it byte-by-byte, which would take considerable time.
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
13 years ago
Tomas Härdin
187630b244
mxfdec: Fix CID 732262
Coverity thinks ofs can end up 15, thus writing past the end of layout[]. This
is incorrect since it's always incremented by 2. Checking ofs <= 14 makes
Coverity happy and doesn't hurt.
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
13 years ago
Michael Niedermayer
8a34b85fa8
avio: detect implicit truncation by assert in avio_w*
This check is somewhat more lenient as would be ideal because we dont
know if the input is signed or unsigned
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
13 years ago
Michael Niedermayer
a3fb3a670e
avio: avoid implicit truncation in avio_w*
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
13 years ago
Michael Niedermayer
e377b50b2d
matroskaenc: avoid implicit truncation in avio_w*
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
13 years ago
Martin Storsjö
c44cef978b
smoothstreamingenc: Don't assume streams start from timestamp 0
Also use dts instead of pts for deciding where to split fragments.
Signed-off-by: Martin Storsjö <martin@martin.st>
13 years ago
Anton Khirnov
292a08cbab
asfdec: cosmetics, reformat ff_asf_parse_packet()
13 years ago
Carl Eugen Hoyos
2fdc6f355c
Do not detect mov with maximum score if the atom size is too small.
Fixes mpegts-in-mov, ticket #987 / issue 2223.
13 years ago
Michael Niedermayer
5442c6cce3
lavf: fix duration estimation for multi program TS
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
13 years ago
Michael Niedermayer
31cdf6002a
lavf: increase retries to guess duration from pts by 1
This fixes finding the duration for one TS file
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
13 years ago
Michael Niedermayer
d8f27eceaa
asfdec: ignore stored duration for truncated files
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
13 years ago
Peter Ross
8469fc17e2
wtvdec: display warning for encrypted wtv files (instead of 'unsupported chunk' messages)
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
13 years ago