Clément Bœsch
9acffed9e0
oggenc: add missing initializer braces to shut up gcc warning.
...
This fixes the warning:
libavformat/oggenc.c:75:7: warning: missing braces around initializer [-Wmissing-braces]
13 years ago
Clément Bœsch
df2039f573
avidec: add missing initializer braces to shut up gcc warning.
...
This fixes the warning:
libavformat/avidec.c:81:5: warning: missing braces around initializer [-Wmissing-braces]
13 years ago
Reimar Döffinger
0399044805
Always pass a AVFormatContext to av_log.
...
This is consistent, allows custom handlers to print more info
(since they probably know about the AVFormatContext class
but not a demuxer-specific one) and also avoids issues due
to the class pointer being NULL for non-raw mpegts.
Signed-off-by: Reimar Döffinger <Reimar.Doeffinger@gmx.de>
13 years ago
Thierry Foucu
63377695a6
AVCodecTag: Add MKTAG for Go2Meeting video codec
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
13 years ago
Anton Khirnov
4d58e4cb4c
Rename ffserver to avserver.
13 years ago
Luca Barbato
1bf6cb85be
applehttp: fix variant discard logic
...
The v->ctx is always not NULL now, check for streams presence to
mark the read_header state.
Fixes bug #25 , possibly introduced by 603b8bc
13 years ago
Michael Niedermayer
72b0c9f55f
avidec: skip seek pos adjustment for non interleaved files.
...
Fixes Ticket327
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
13 years ago
Reimar Döffinger
1816addc4e
Warn when falling back to unreliable UMF fps tag.
...
Signed-off-by: Reimar Döffinger <Reimar.Doeffinger@gmx.de>
13 years ago
Michael Niedermayer
46eaaad8dd
Detect NI-avi at playtime like mplayer.
...
Fixes Ticket333
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
13 years ago
Michael Niedermayer
652c772981
avidec: Fix XAN DPCM demuxing.
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
13 years ago
Zohar Kelrich
73e8e8dbf9
lavf: Add an option to discard corrupted frames
...
Signed-off-by: Zohar Kelrich <lumimies@gmail.com>
Signed-off-by: Luca Barbato <lu_zero@gentoo.org>
13 years ago
Zohar Kelrich
5081514269
mpegts: Mark wrongly-sized packets as corrupted
...
Signed-off-by: Zohar Kelrich <lumimies@gmail.com>
Signed-off-by: Luca Barbato <lu_zero@gentoo.org>
13 years ago
Zohar Kelrich
cdb9884a63
mpegts: Move scan test to handle_packets
...
This fixes an issue where packets which start being read
while reading the header stick around after a seek.
Signed-off-by: Zohar Kelrich <lumimies@gmail.com>
Signed-off-by: Luca Barbato <lu_zero@gentoo.org>
13 years ago
Zohar Kelrich
ce9e31655e
mpegts: Mark corrupted packets
...
Signed-off-by: Zohar Kelrich <lumimies@gmail.com>
Signed-off-by: Luca Barbato <lu_zero@gentoo.org>
13 years ago
Zohar Kelrich
c64f80b0e8
mpegts: Reset continuity counter on seek
...
Signed-off-by: Zohar Kelrich <lumimies@gmail.com>
Signed-off-by: Luca Barbato <lu_zero@gentoo.org>
13 years ago
Zohar Kelrich
8b9df201df
mpegts: Fix for continuity counter
...
Make continuity counter respect discontinuity flag
and null packets. Unpack the adaptation_field_control field.
Signed-off-by: Zohar Kelrich <lumimies@gmail.com>
Signed-off-by: Luca Barbato <lu_zero@gentoo.org>
13 years ago
Zohar Kelrich
be9c00615b
mpegts: Silence "can't seek" warning on unseekable
...
Do not try to seek when we already know we are not allowed to.
Silences warning that always happens when streaming.
Signed-off-by: Zohar Kelrich <lumimies@gmail.com>
Signed-off-by: Luca Barbato <lu_zero@gentoo.org>
13 years ago
Carl Eugen Hoyos
1c5480651e
Support FourCC DreX as MPEG4 ASP.
13 years ago
Carl Eugen Hoyos
222b333ed5
Cosmetics: Restore alphabetical order.
13 years ago
Carl Eugen Hoyos
9b60b076fb
Support muxing MP1, MP2 and MP3 in caf.
13 years ago
Carl Eugen Hoyos
c6e0332f30
Explicitely fail for unsupported codecs when muxing caf.
13 years ago
Carl Eugen Hoyos
b35477a2f2
Use av_get_bits_per_sample() for mBitsPerChannel in caf.
13 years ago
Naoya OYAMA
7747a091f5
Cosmetics: Fix indentation.
13 years ago
Reimar Döffinger
b39f872a41
Limit fsize before adding to pointer.
...
This avoids a theoretically possible pointer arithmetic overflow
which would lead to a crash due to reading from NULL page.
Signed-off-by: Reimar Döffinger <Reimar.Doeffinger@gmx.de>
13 years ago
Alex Converse
1f6f58d585
mxfdec: Include FF_INPUT_BUFFER_PADDING_SIZE when allocating extradata.
...
This prevents out of bounds reads when extradata is being decoded.
13 years ago
Alex Converse
5ef953e84f
probe: Fix insane flow control.
...
A loop control variable was shadowed inside the loop and never updated.
13 years ago
Mike Williams
298c4e3c52
mpegts: remove invalid error check
...
mpegts_read_header is used by both mpegts and mpegtsraw, so this
erro check is no longer valid.
Signed-off-by: Mike Williams <mike@mikebwilliams.com>
Signed-off-by: Anton Khirnov <anton@khirnov.net>
13 years ago
Anton Khirnov
3c7fa664af
lavf: add forgotten attribute_deprecated to av_find_stream_info()
13 years ago
Michael Niedermayer
956c901c68
Fix several security issues in matroskadec.c (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>
13 years ago
Stefano Sabatini
fdd130a213
prefer "SAR" over "PAR" in av_dump_format()
...
"SAR" (Sample Aspect Ratio) is globally preferred over "PAR" (Pixel
Aspect Ratio), although the two terms share the same semantics.
For example the corresponding AVStream field is called
sample_aspect_ratio, and libavfilter has a filter named setsar.
Therefore prefer the term "SAR" over "PAR" in the
libavformat/utils.c:dump_stream_format() and avcodec_string() output
for avoiding confusion.
13 years ago
Diego Biurrun
ab3d241be1
ape: adjust some printf format strings to correctly match argument types
14 years ago
Michael Niedermayer
2962049ac3
muxer opts: fix avdict use in case of early private context alloc
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
14 years ago
Michael Niedermayer
158eb8599a
rtp: disable udp fifos, the rtp code cannot work with the fifos in its current form as rtp bypasses the public API.
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
14 years ago
Michael Niedermayer
bd652ff66e
udp: allow fifo size to be tuned seperately
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
14 years ago
Carl Eugen Hoyos
88084eecdf
Use little endian for caf codec tags.
14 years ago
Alex Converse
505345ed5d
riff: Add mpgv MPEG-2 fourcc
...
Supported by mplayer and seen in the wild.
14 years ago
Diego Biurrun
4cc843facd
rtp: remove disabled code
14 years ago
Thierry Foucu
73c0dd939d
mov: add clcp type track as Subtitle stream.
...
Signed-off-by: Ronald S. Bultje <rsbultje@gmail.com>
14 years ago
Stefano Sabatini
daa6237229
au: reuse the result of the previous call to av_get_bits_per_sample()
...
Avoid an unnecessary call to the function, slighlty more
robust/readable.
14 years ago
Chris Evans
69619a13c3
matroskadec: fix integer underflow if header length < probe length.
...
This fixes a crash with specifically crafted files.
Signed-off-by: Ronald S. Bultje <rsbultje@gmail.com>
14 years ago
Diego Biurrun
76e25dbca6
rtsp: remove disabled code
14 years ago
ami_stuff
93263dc19e
au: add computation for duration
...
Signed-off-by: Stefano Sabatini <stefano.sabatini-lala@poste.it>
14 years ago
Diego Biurrun
6eaaf8da88
gxfenc: place variable declarations before statements
...
libavformat/gxfenc.c:409: warning: ISO C90 forbids mixed declarations and code
14 years ago
Stefano Sabatini
25dfda7f31
lavf: rename enc variable in utils.c:has_codec_parameters()
...
Rename it to "avctx", the old name was confusing as the function is
used also with decoder contexts.
Signed-off-by: Anton Khirnov <anton@khirnov.net>
14 years ago
Anton Khirnov
dfc2c4d900
lavf: use designated initialisers for all (de)muxers.
...
It's more readable and less prone to breakage.
14 years ago
Anton Khirnov
6270995667
wav: remove a use of deprecated AV_METADATA_ macro
14 years ago
Anton Khirnov
412b4367c5
rmdec: remove useless ap parameter from rm_read_header_old()
14 years ago
Anton Khirnov
d3bb71914b
lavf/utils: drop av_ prefixes from static functions.
14 years ago
Anton Khirnov
c3bec4cd13
avio: don't replicate avio_alloc_context functionality.
14 years ago
Peter Ross
e6cc30c22b
wtvdec: also support big-sectors when fat depth is zero
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
14 years ago