Martin Storsjö
bfc6db4477
rtpdec: Add ff_ prefix to all nonstatic symbols
...
Signed-off-by: Martin Storsjö <martin@martin.st >
2011-10-12 14:48:12 +03:00
John Brooks
07b77fe387
rtpdec: Read the packet length for all RTCP packet types
...
This allows skipping past unsupported RTCP packet types, as
RFC 3550 section 6.1 mandates.
Currently this only has any practical effect if a sender puts
an unrecognized type before RTCP_BYE in a compounded packet, or
(incorrectly) does not put RTCP_SR first.
Signed-off-by: Martin Storsjö <martin@martin.st >
2011-10-12 14:37:42 +03:00
John Brooks
5d6ecf5345
rtpdec: Fix the minimum packet length for RTCP SR packets
...
We actually read 20 bytes of these packets.
Signed-off-by: Martin Storsjö <martin@martin.st >
2011-10-12 14:37:39 +03:00
Martin Storsjö
5e87222fd1
flvdec: Don't export metadata entries that aren't proper metadata
...
This avoids writing these entries doubly if transcoding from
flv to flv, since the muxer blindly writes any and all metadata
keys set, in addition to the fixed fields that the muxer
always writes.
Signed-off-by: Martin Storsjö <martin@martin.st >
2011-10-12 10:19:47 +03:00
Martin Storsjö
b204c46d9d
flvdec: Split out setting of numeric fields from storing metadata
...
Signed-off-by: Martin Storsjö <martin@martin.st >
2011-10-12 10:19:38 +03:00
Luca Barbato
30c3d976f1
mov: do not misreport empty stts
...
Return -1 instead of ENOMEM if entries is 0.
Fixes a av_malloc(0) crash in macosx.
2011-10-11 15:06:50 +02:00
Luca Barbato
5a7ba58657
mov: cosmetics, fix for and if spacing
2011-10-11 15:06:11 +02:00
Anton Khirnov
c780b543e7
id3v2: fix NULL pointer dereference
...
Bug found by Laurent Aimar fenrir at videolan org
2011-10-11 14:56:41 +02:00
Raivo Hool
2804d32075
mov: read album_artist atom
...
Signed-off-by: Anton Khirnov <anton@khirnov.net >
2011-10-11 14:56:41 +02:00
Raivo Hool
dff4177546
mov: fix disc/track numbers and totals
...
Signed-off-by: Anton Khirnov <anton@khirnov.net >
2011-10-11 14:56:41 +02:00
Justin Ruggles
a7984a6a6d
smacker: Separate audio flags from sample rates in smacker demuxer.
...
Makes the code easier to understand.
2011-10-11 07:48:16 -04:00
Laurent Aimar
79964745b3
4xmdemux: prevent use of uninitialized memory
...
Signed-off-by: Janne Grunau <janne-libav@jannau.net >
2011-10-10 21:37:35 +02:00
Laurent Aimar
6de33611c9
avsdemux: check for out of bound writes
...
Signed-off-by: Janne Grunau <janne-libav@jannau.net >
2011-10-10 21:36:12 +02:00
Laurent Aimar
76c6971a64
avsdemux: check for corrupted data
...
Signed-off-by: Janne Grunau <janne-libav@jannau.net >
2011-10-10 21:27:04 +02:00
Mans Rullgard
1703013cb7
avidec: fix signed overflow in avi_sync()
...
Keeping byte values read from the file as unsigned is consistent
with how they are subsequently used and avoids an undefined left
shift by 24 when bit 7 is set.
Signed-off-by: Mans Rullgard <mans@mansr.com >
2011-10-10 17:49:13 +01:00
Alex Converse
0c46e958d1
mxfdec: Fix some buffer overreads caused by the misuse of AVPacket related functions.
2011-10-10 09:40:26 -07:00
Janne Grunau
2886f6759f
avidec: simplify size parameter in memset()
2011-10-10 13:28:18 +02:00
Mans Rullgard
a31e9f68a4
lavf: fix signed overflow in avformat_find_stream_info()
...
On the first iteration through this code, last_dts is always
INT64_MIN (AV_NOPTS_VALUE) and the subtraction overflows in
an invalid manner. Although the result is only used if the
input values are valid, performing the subtraction is still
not allowed in a strict environment.
Signed-off-by: Mans Rullgard <mans@mansr.com >
2011-10-08 20:04:22 +01:00
Alex Converse
98ef887a75
mpegps: Use av_get_packet() instead of poorly emulating it.
2011-10-07 17:04:14 -07:00
Laurent Aimar
1e3336de69
mpc8: Fix return value on EOF
...
Signed-off-by: Janne Grunau <janne-libav@jannau.net >
2011-10-07 16:25:30 +02:00
Laurent Aimar
1775b92fee
segafilm: Check for memory allocation failures in segafilm demuxer.
...
Signed-off-by: Janne Grunau <janne-libav@jannau.net >
2011-10-06 23:19:45 +02:00
Laurent Aimar
762ffa6861
segafilm: Fix potential division by 0 on corrupted streams in the demuxer
...
Signed-off-by: Janne Grunau <janne-libav@jannau.net >
2011-10-06 23:01:45 +02:00
Laurent Aimar
790f4dd5c9
Fixed segfault on corrupted sega streams in the demuxer.
...
Signed-off-by: Janne Grunau <janne-libav@jannau.net >
2011-10-06 22:32:02 +02:00
Anton Khirnov
a4ea00d021
lavc/lavf: use unique private classes.
...
This is needed by the new AVOptions API.
2011-10-05 07:52:30 +02:00
Diego Biurrun
12bd8532cf
Synchronize various 4CCs and codec tags from FFmpeg.
2011-10-04 11:58:53 +02:00
Justin Ruggles
fc2dd2c7ac
ogg/celt: do not set sample_fmt in the demuxer
2011-10-03 21:23:22 -04:00
Anton Khirnov
60df6b0048
id3v2: remove pointless casts
2011-10-03 13:06:51 +02:00
Anton Khirnov
d2961e4ebf
id3v2: read TXXX frames with two calls to decode_str() instead of one.
...
Read the key in the first, value in the second.
This allows to avoid pointless strdups and simplify decode_str() by
dropping two of its parameters.
2011-10-03 13:06:51 +02:00
Anton Khirnov
1e18d32d01
id3v2: don't discard the whole tag when encountering empty frames.
...
While they're technically invalid, it's better to skip them and try to
read the rest of the tag.
2011-10-03 13:06:41 +02:00
Martin Storsjö
e81e5e8ad2
lavf: Avoid using av_malloc(0) in av_dump_format
...
On OS X, av_malloc(0) returns pointers that cause crashes when
freed.
Signed-off-by: Martin Storsjö <martin@martin.st >
2011-09-30 22:31:30 +03:00
Kieran Kunhya
d4a544cbc4
latmenc: Set latmBufferFullness to largest value to indicate it is not used
...
Signed-off-by: Janne Grunau <janne-libav@jannau.net >
2011-09-30 11:17:27 +02:00
Alex Converse
fe21f78d2b
mpeg probe: check the 2/4-bit synchronization value found after a pack_start_code.
2011-09-29 09:45:57 -07:00
Kieran Kunhya
32dfd8ca65
latmenc: Fix private options
...
Signed-off-by: Martin Storsjö <martin@martin.st >
2011-09-28 15:49:07 +03:00
Michael Niedermayer
77d2ef13a8
Fix memory (re)allocation in matroskadec.c, related to MSVR-11-0080.
...
Whitespace of the patch cleaned up by Aurel
Some of the issues have been reported by Steve Manzuik / Microsoft Vulnerability Research (MSVR)
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
(cherry picked from commit 956c901c68 )
Further suggestions from Kostya <kostya.shishkov@gmail.com > have been
implemented by Reinhard Tartler <siretart@tauware.de >
Signed-off-by: Reinhard Tartler <siretart@tauware.de >
2011-09-27 23:14:05 +02:00
Anton Khirnov
c7a63a521b
matroskaenc: write attachments.
2011-09-27 15:26:36 +02:00
Anton Khirnov
98cfe22b5c
matroskadec: export mimetype of attachments as metadata.
2011-09-27 15:26:36 +02:00
Rafaël Carré
1430ae44e8
rtp: Simplify ff_rtp_get_payload_type
...
Signed-off-by: Martin Storsjö <martin@martin.st >
2011-09-26 21:55:27 +03:00
Rafaël Carré
9152880e95
rtpenc: Add a payload type private option
...
Specifying the payload type is useful when the type number has
already been negotiated before creating the stream, for example
in SIP protocol.
Signed-off-by: Martin Storsjö <martin@martin.st >
2011-09-26 21:54:57 +03:00
Rafaël Carré
142887741f
rtp: Correct ff_rtp_get_payload_type documentation
...
Since 0c378ea1f , it can't fail anymore.
Signed-off-by: Martin Storsjö <martin@martin.st >
2011-09-26 21:54:14 +03:00
Nicolas George
4ca59d1948
oggdec: add support for Xiph's CELT codec
...
This patch also introduces CODEC_ID_CELT.
Signed-off-by: Nicolas George <nicolas.george@normalesup.org >
Signed-off-by: Diego Biurrun <diego@biurrun.de >
2011-09-26 13:51:29 +02:00
Justin Ruggles
b15a9888a8
sol: return error if av_get_packet() fails.
...
This prevents sending a packet with data=NULL size=AVERROR_EOF.
2011-09-25 16:53:49 -04:00
Mans Rullgard
bb416bd68c
lavf: do not set codec_tag for rawvideo
...
If the demuxer did not set a codec_tag, there is none and
inventing one makes no sense. This change stops the rawvideo
"decoder" over-writing user-supplied pixfmt with one derived
from the codec_tag. The pixfmt-codec_tag-pixfmt round-trip
is lossy since several pixfmts map to the same codec_tag.
This fixes fate-lavf-pixfmt with avfilter disabled.
Signed-off-by: Mans Rullgard <mans@mansr.com >
2011-09-25 14:07:21 +01:00
Michael Niedermayer
a246cefa75
flvdec: Check for overflow before allocating arrays
...
On allocation, the array length is multiplied by sizeof(int64_t),
this prevents the multiplication from overflowing.
Signed-off-by: Martin Storsjö <martin@martin.st >
2011-09-25 12:55:21 +03:00
Laurent Aimar
2b4e49d428
flvdec: Fix invalid pointer deferences when parsing index
...
Signed-off-by: Martin Storsjö <martin@martin.st >
2011-09-24 18:08:39 +03:00
Diego Biurrun
30b4ee7901
Use explicit struct initializers for AVOutputFormat/AVInputFormat declarations.
2011-09-24 12:11:17 +02:00
Alex Converse
9fba8ebe0a
mpegps: Handle buffer exhaustion when reading packets.
2011-09-23 16:36:16 -07:00
Rafaël Carré
0c378ea1f7
rtp: factorize dynamic payload type fallback
...
Move the identical code in rtp_write_header() and
ff_sdp_write_media() inside ff_rtp_get_payload_type()
Signed-off-by: Luca Barbato <lu_zero@gentoo.org >
2011-09-23 22:00:24 +02:00
Martin Storsjö
bafff1668c
flvdec: Ignore the index if it's from a creator known to be different
...
Signed-off-by: Martin Storsjö <martin@martin.st >
2011-09-23 20:59:48 +03:00
Diego Biurrun
5cc2530fc2
prores: mark prores as intra-only in libavformat/utils.c:is_intra_only()
2011-09-23 01:42:14 +02:00
Janne Grunau
dcb9f6a20d
Add LATM demuxer
...
This is a raw demuxer for the AAC LATM decoder and thus limited to
single stream LOAS.
2011-09-22 20:39:24 +02:00