Diego Biurrun
7331b6e718
Drop some completely unnecessary av_unused attributes.
13 years ago
Martin Storsjö
5d561514b7
movenc: Support muxing wmapro in ismv/isma
...
Signed-off-by: Martin Storsjö <martin@martin.st>
13 years ago
Martin Storsjö
ddf422803b
mpegtsenc: Add an AVOption for forcing a new PAT/PMT/SDT to be written
...
When segmenting the output from the mpegts muxer, one can
now set this option when cutting to a new segment, to make sure
the next segment starts with PAT/PMT/SDT.
Signed-off-by: Martin Storsjö <martin@martin.st>
13 years ago
Diego Biurrun
d1c4ec7f5e
build: Set correct dependencies for rtmp* protocols implemented by librtmp.
13 years ago
Andrey Utkin
b66b58f7b0
Fix aspect ratio mismatch message
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
13 years ago
Reimar Döffinger
ff92549195
Fix Theora-in-ogg keyframe handling.
...
To make seeking work correctly, we must write a new granule for
each keyframe.
Unfortunately we currently have no regression tests due to no
included Theora encoder.
A test based on -vcodec copy from a Theora FATE sample should
probably be added.
Signed-off-by: Reimar Döffinger <Reimar.Doeffinger@gmx.de>
13 years ago
Andrey Utkin
e3cc617263
lavf: fix aspect ratio mismatch message.
...
Signed-off-by: Anton Khirnov <anton@khirnov.net>
13 years ago
Pavel Koshevoy
277e52845e
Modified to generate PAT/PMT for video keyframes
...
This is so that TS fragments produced by
http://code.google.com/p/httpsegmenter/
would be compatible with JW Player.
A new member variable prev_payload_key was added to MpegTSWriteStream
to help detect transition from non-key to key frame, so that
PAT/PMT would not be produced for every keyframe in intra-only videos.
Signed-off-by: Pavel Koshevoy <pkoshevoy@gmail.com>
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
13 years ago
Ingo Brückl
a697a185e4
buildsys: Fix shared lib build of MPlayer.
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
13 years ago
Joakim Plate
af701d42c3
cafdec: Check return value of avio_seek and avoid modifying state if it fails
...
Signed-off-by: Paul B Mahol <onemda@gmail.com>
Signed-off-by: Justin Ruggles <justin.ruggles@gmail.com>
13 years ago
Joakim Plate
b69c2e0e6d
yop: Check return value of avio_seek and avoid modifying state if it fails
...
Signed-off-by: Paul B Mahol <onemda@gmail.com>
Signed-off-by: Justin Ruggles <justin.ruggles@gmail.com>
13 years ago
Joakim Plate
e54165aa39
tta: Check return value of avio_seek and avoid modifying state if it fails
...
Signed-off-by: Paul B Mahol <onemda@gmail.com>
Signed-off-by: Justin Ruggles <justin.ruggles@gmail.com>
13 years ago
Joakim Plate
066ad0926a
tmv: Check return value of avio_seek and avoid modifying state if it fails
...
Signed-off-by: Paul B Mahol <onemda@gmail.com>
Signed-off-by: Justin Ruggles <justin.ruggles@gmail.com>
13 years ago
Joakim Plate
c7b08bc0a7
r3d: Check return value of avio_seek and avoid modifying state if it fails
...
Signed-off-by: Paul B Mahol <onemda@gmail.com>
Signed-off-by: Justin Ruggles <justin.ruggles@gmail.com>
13 years ago
Joakim Plate
8dcd00eabd
nsvdec: Check return value of avio_seek and avoid modifying state if it fails
...
Signed-off-by: Paul B Mahol <onemda@gmail.com>
Signed-off-by: Justin Ruggles <justin.ruggles@gmail.com>
13 years ago
Joakim Plate
97aa092997
mpc8: Check return value of avio_seek and avoid modifying state if it fails
...
Signed-off-by: Paul B Mahol <onemda@gmail.com>
Signed-off-by: Justin Ruggles <justin.ruggles@gmail.com>
13 years ago
Joakim Plate
9712e82a4e
jvdec: Check return value of avio_seek and avoid modifying state if it fails
...
Signed-off-by: Paul B Mahol <onemda@gmail.com>
Signed-off-by: Justin Ruggles <justin.ruggles@gmail.com>
13 years ago
Joakim Plate
64476d7ee8
filmstripdec: Check return value of avio_seek and avoid modifying state if it fails
...
Signed-off-by: Paul B Mahol <onemda@gmail.com>
Signed-off-by: Justin Ruggles <justin.ruggles@gmail.com>
13 years ago
Joakim Plate
d7c11b114b
ffmdec: Check return value of avio_seek and avoid modifying state if it fails
...
Signed-off-by: Paul B Mahol <onemda@gmail.com>
Signed-off-by: Justin Ruggles <justin.ruggles@gmail.com>
13 years ago
Joakim Plate
8332321c57
dv: Check return value of avio_seek and avoid modifying state if it fails
...
Signed-off-by: Paul B Mahol <onemda@gmail.com>
Signed-off-by: Justin Ruggles <justin.ruggles@gmail.com>
13 years ago
Joakim Plate
3371e89640
bink: Check return value of avio_seek and avoid modifying state if it fails
...
Signed-off-by: Paul B Mahol <onemda@gmail.com>
Signed-off-by: Justin Ruggles <justin.ruggles@gmail.com>
13 years ago
Martin Storsjö
ba83ac4c27
rtpenc: Write a log message if the max packet size is too small
...
Signed-off-by: Martin Storsjö <martin@martin.st>
13 years ago
Alex Converse
8dbdc2d840
dv: Move a table used only by the demuxer out of a shared header.
13 years ago
Alex Converse
0ab3687924
dv: Fix small overread in audio frequency table.
...
Found-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind
13 years ago
Michael Niedermayer
789d6b73cf
lavf: Rewrite metadata printing from dump_metadata().
...
This code contained several bugs that mis-formated the output.
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
13 years ago
Carl Eugen Hoyos
edf34c346e
Allow encoding rawvideo RGBA64 and friends.
13 years ago
Carl Eugen Hoyos
5c2c6bbfba
Allow encoding rawvideo RGB0 and friends.
13 years ago
Paul B Mahol
0f3d8baef9
WavPack demuxer: set packet duration
...
Signed-off-by: Paul B Mahol <onemda@gmail.com>
Signed-off-by: Justin Ruggles <justin.ruggles@gmail.com>
13 years ago
Michael Niedermayer
dd7198b25f
lavf: put av_new_stream() compatibility wrapper back
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
13 years ago
Michael Niedermayer
8a07429318
lavf: put av_find_stream_info() compatibility wrapper back.
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
13 years ago
Tomas Härdin
e24167aae6
mxfdec: Ignore the last entry in Avid's index table segments
...
The last entry is the total size of the essence container.
Previously a TemporalOffset error would be logged, even though
segments like these are expected.
Signed-off-by: Diego Biurrun <diego@biurrun.de>
13 years ago
Tomas Härdin
d6b81ff949
mxfdec: Sanity-check SampleRate
...
This avoids a SIGFPE if SampleRate is missing or set to naughty values.
Signed-off-by: Diego Biurrun <diego@biurrun.de>
13 years ago
Tomas Härdin
c65642d351
mxfdec: Handle small EditUnitByteCount
...
These are common with audio atoms. Without this the demuxer would read two
bytes at a time for a mono 16-bit file.
Signed-off-by: Diego Biurrun <diego@biurrun.de>
13 years ago
Tomas Härdin
240ddbce56
mxfdec: Consider OPAtom files that do not have exactly one EC to be OP1a
...
This fixes demuxing of 2011_DCPTEST_24FPS.V.mxf.
Signed-off-by: Diego Biurrun <diego@biurrun.de>
13 years ago
Tomas Härdin
9123950be0
mxfdec: Don't crash in mxf_packet_timestamps() if current_edit_unit overflows
...
Signed-off-by: Diego Biurrun <diego@biurrun.de>
13 years ago
Tomas Härdin
d00257e96a
mxfdec: Zero nb_ptses in mxf_compute_ptses_fake_index()
...
This fixes SIGSEGV on files with both CBR and VBR index segments (zzuf6.mxf).
Signed-off-by: Diego Biurrun <diego@biurrun.de>
13 years ago
Tomas Härdin
df2a85085e
mxfdec: Sanity check PreviousPartition
...
Without this certain files could get the demuxer stuck in a loop.
Signed-off-by: Diego Biurrun <diego@biurrun.de>
13 years ago
Tomas Härdin
11800c8c89
mxfdec: Never seek back in local sets and KLVs
...
Specially crafted files can lead the parsing code to take too long.
We fix a lot of these problems by not allowing local tags to extend
past the end of the set and not allowing other KLVs to be read past
the end of themselves.
Signed-off-by: Diego Biurrun <diego@biurrun.de>
13 years ago
Tomas Härdin
687e2fdebd
mxfdec: Move the current_partition check inside mxf_read_header()
...
This fixes SIGSEGV on files where this is the case, such as zzuf4.mxf.
Signed-off-by: Diego Biurrun <diego@biurrun.de>
13 years ago
Tomas Härdin
e352c96c17
mxfdec: Fix infinite loop in mxf_packet_timestamps()
...
This can happen if an index table segment has a very large IndexStartPosition.
zzuf3.mxf is an example of such a file.
Signed-off-by: Diego Biurrun <diego@biurrun.de>
13 years ago
Tomas Härdin
0373ec635d
mxfdec: Check eof_reached in mxf_read_local_tags()
...
This fixes an infinite loop with zzuf2.mxf.
Signed-off-by: Diego Biurrun <diego@biurrun.de>
13 years ago
Tomas Härdin
effe3b9575
mxfdec: Check for NULL component
...
This fixes a SIGSEGV with zzuf1.mxf.
Signed-off-by: Diego Biurrun <diego@biurrun.de>
13 years ago
Tomas Härdin
29fc8f50cd
mxfdec: Make sure mxf->nb_index_tables > 0 in mxf_packet_timestamps()
...
Only the OPAtom demuxing logic is guaranteed to have index tables,
meaning OP1a files that lack an index would cause SIGSEGV.
Signed-off-by: Diego Biurrun <diego@biurrun.de>
13 years ago
Tomas Härdin
a3923482f2
mxfdec: Make sure x < index_table->nb_ptses
...
Avoids a SIGSEGV on files with IndexEntryCount < IndexDuration.
Signed-off-by: Diego Biurrun <diego@biurrun.de>
13 years ago
Paul B Mahol
a16c3a07a6
apetag: fix comment
...
Signed-off-by: Paul B Mahol <onemda@gmail.com>
Signed-off-by: Justin Ruggles <justin.ruggles@gmail.com>
13 years ago
Reimar Döffinger
787528b4a6
Detect theora keyframes by content in Ogg demuxer.
...
A lot of files do not mark keyframes correctly via
granule, so detect keyframe or not based on data
and complain if it mismatches.
Signed-off-by: Reimar Döffinger <Reimar.Doeffinger@gmx.de>
13 years ago
Stefano Sabatini
e8a06b1486
lavf/4xm: use proper error codes
13 years ago
Diego Biurrun
32f3c541bc
doxygen: Do not include license boilerplates in Doxygen comment blocks.
13 years ago
Justin Ruggles
f1c3d4a68a
ape: skip packets with invalid size
13 years ago
Justin Ruggles
ac3f8d317c
ape: calculate final packet size instead of guessing
...
Calculates based on total file size and wavetaillength from the header.
Falls back to multiplying finalframeblocks by 8 instead of 4 so that it will
at least be overestimating for 24-bit. Currently it can underestimate the
final packet size, leading to decoding errors.
13 years ago