Björn Axelsson
2947e7b7a7
flvenc: don't write random data if seek fails
The FLV muxer tries to update the header in write_trailer, which is
impossible if writing to a pipe or network stream. Don't write header
data if seek to header fails.
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
12 years ago
Stefano Sabatini
ddf6131a0a
lavf/segment: add segment_start_number option
Consistent with the image2 muxer.
12 years ago
Stefano Sabatini
d93d03a492
lavf/segment: add function set_segment_filename()
Factorize.
12 years ago
Michael Niedermayer
7726916c14
mpegts: check av_new_stream() return value.
Fixes CID703728
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
12 years ago
Nicolas George
2dbc84b1a8
lavf/matroskaenc: check for overflow in display width.
12 years ago
Nicolas George
26db6535fc
lavf/matroskaenc: use integers to for display size.
Avoid rounding differences between x86_32 and x86_64.
Fix trac ticket #1997 .
12 years ago
Michael Niedermayer
028cc42a16
read_gab2_sub: fix null pointer dereference
Found-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
12 years ago
Martin Storsjö
29d2595ad7
rtpproto: Remove unused defines
Signed-off-by: Martin Storsjö <martin@martin.st>
12 years ago
Nicolas George
16c3cb9bbf
lavf/concatdec: avoid leaking URLs.
Use av_realloc instead of av_realloc_f to keep the original
array in case of failure: it is freed in full by the fail label.
12 years ago
Michael Niedermayer
75b3911e5a
mxf_set_audio_pts: fix division by 0
Found-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
12 years ago
Michael Niedermayer
a0f659b275
oggspeexparse: fix array overread
Found-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
12 years ago
Martin Storsjö
f3f60dcbdd
rtpdec_mpeg4: Cosmetic cleanup
Signed-off-by: Martin Storsjö <martin@martin.st>
12 years ago
Martin Storsjö
584a017925
rtpdec: Cosmetic cleanup of the header
Signed-off-by: Martin Storsjö <martin@martin.st>
12 years ago
Martin Storsjö
abf74a1169
rtpdec: Get rid of a useless _s suffix on a struct name
Signed-off-by: Martin Storsjö <martin@martin.st>
12 years ago
Martin Storsjö
7941159df6
rtpdec/enc: Remove outdated/useless/misleading comments
Signed-off-by: Martin Storsjö <martin@martin.st>
12 years ago
Martin Storsjö
d6ec745246
rtpdec: Improve some comments
The previous comment about the buffer was wildly inaccurate and
misleading.
Signed-off-by: Martin Storsjö <martin@martin.st>
12 years ago
Martin Storsjö
e66d448c75
rtpdec: Remove unused context variables
These stem from back when both the rtp muxer and rtp depacketizing
shared the same struct.
Signed-off-by: Martin Storsjö <martin@martin.st>
12 years ago
Martin Storsjö
81ef519252
rtpdec: Limit writing to the buffer size
This fixes potential buffer overwrites.
Signed-off-by: Martin Storsjö <martin@martin.st>
12 years ago
Michael Niedermayer
d276f28b7d
swfdec: print warning when len is cliped
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
12 years ago
Michael Niedermayer
a202541f9b
cafdec: Check duration before use.
Fix division by 0
Found-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
12 years ago
Michael Niedermayer
99a8552dae
bfi: fix division by 0
Found-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
12 years ago
Michael Niedermayer
7d05bbb656
mxfdec: drop unneeded extradata padding
Found-by: Tomas Härdin <tomas.hardin@codemill.se>
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
12 years ago
Justin Ruggles
d04c17c913
swfdec: cosmetics: fix indentation
12 years ago
Justin Ruggles
e70c5b034c
swfdec: do better validation of tag length
Avoids trying to read a packet with 0 or negative size.
Avoids a potential infinite loop due to seeking backwards.
Partially based on a patch by Michael Niedermayer.
12 years ago
Michael Niedermayer
b65570808c
mxfdec: fix leak of extradata
Reviewed-by: Tomas Härdin <tomas.hardin@codemill.se>
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
12 years ago
Peter Ross
53ae32d331
iff demuxer: support RGB8 and RGBN
12 years ago
Michael Niedermayer
67c1b5b026
lavf: remove unneeded pb check
Fixes CID747727
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
12 years ago
Michael Niedermayer
b688a28470
astenc: fix assignment vs compare
Fixes CID747736
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
12 years ago
Michael Niedermayer
a70b38d2dd
lavf: fix memleak
Fixes CID747738
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
12 years ago
Stefano Sabatini
8e9056559e
lavf/segment: add reset_timestamps option
The new options reset the timestamps at each new segment, so that the
generated segments will have timestamps starting close to 0.
It is meant to address trac ticket #1425 .
12 years ago
Michael Niedermayer
0a60f83075
http: dont null check p, its unneeded
Fixes CID747740
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
12 years ago
Michael Niedermayer
c73685398d
swfdec: check lens validity
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
12 years ago
Peter Ross
f540851ce3
mov: parse @PRM and @PRQ metadata tags
These tags describe the product and quicktime library version respectively.
Originate from Adobe Premier, but some other products use them.
12 years ago
Martin Storsjö
ccb59c106a
rtpdec: Remove an outdated todo comment
This comment was added in e309128f, in 2002, and has been brought
along since then more or less unmodified.
The first point of the todo was implemented in dbf30963
in 2006,
the second one is not relevant to rtpdec.c (brought along from
rtp.c in 8eb793c4
in 2008) but would be more relevant to the
rtp muxer, although it isn't a good idea anyway.
Signed-off-by: Martin Storsjö <martin@martin.st>
12 years ago
Martin Storsjö
0d85663a47
rtpdec: Rename a static variable to normal naming conventions
Signed-off-by: Martin Storsjö <martin@martin.st>
12 years ago
Michael Niedermayer
20899c54f0
http/utils: rename "demuxer" to mime_type
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
12 years ago
Paul B Mahol
cef28b5602
tak: reduce difference with qatar
Mostly cosmetics changes, but also makes
decoding little faster here.
Signed-off-by: Paul B Mahol <onemda@gmail.com>
12 years ago
Stefano Sabatini
ad47ac20ae
lavf/segment: remove silly assert(), improve feedback
The code should not assert in case of invalid user input. Fails
gracefully instead.
12 years ago
Michael Niedermayer
68bc012190
http/utils: move mime -> demuxer maping from http to utils
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
12 years ago
Michael Niedermayer
e3d95b54db
probe: belive protocol content type if set and avoid lengthly probing.
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
12 years ago
Michael Niedermayer
76d851b656
http: export ICY content type
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
12 years ago
Nicolas George
160013736e
lavf: TED Talks JSON captions demuxer.
13 years ago
Peter Ross
9282fbb9ad
mpegts: demux asynchronous SMPTE 336M Key-Length-Value (KLV) metadata
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
12 years ago
Martin Storsjö
5d471b73d2
rtpdec: K&R formatting and spelling cosmetics
Signed-off-by: Diego Biurrun <diego@biurrun.de>
12 years ago
Michael Niedermayer
9f92e590ba
mxfdec: fix double free
Found-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
12 years ago
Luca Barbato
1dd1c1c884
avio: K&R cosmetic formatting
12 years ago
Paul B Mahol
92f630eaf2
add forgotten AV_ prefix to some CODEC_IDs
Signed-off-by: Paul B Mahol <onemda@gmail.com>
12 years ago
Mans Rullgard
91ac403b13
lavf: fix arithmetic overflows in avformat_seek_file()
The values compared here can be more than INT64_MAX apart. Since the
difference is always positive, converting to uint64_t before subtracting
gives the correct result without overflows.
Signed-off-by: Mans Rullgard <mans@mansr.com>
12 years ago
Luca Barbato
adbe03077d
hls: use a meaningful long name
12 years ago
Luca Barbato
5fbceb2c63
hls: add start_number option
12 years ago