Jean First
d92d2af81f
mxfdec: change av_log formatting %lx to PRIx64 and %li to PRIi64
...
Signed-off-by: Jean First <jeanfirst@gmail.com>
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
13 years ago
Michael Niedermayer
490c97bdf5
mpegpsenc: Fix integer overflow of the muxrate calculation.
...
this should fix the failure of h264-bsf-mp4toannexb on freebsd/openbsd
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
13 years ago
Carl Eugen Hoyos
2cba62bd84
Do not map asf metadata key WM/Track to track.
...
WM/Track is 0-based (and deprecated in favour of WM/TrackNumber),
track is 1-based.
Fixes ticket #825 .
13 years ago
Janne Grunau
e4e30256f8
threads: default to automatic thread count detection
13 years ago
Michael Niedermayer
bd553d5ea9
mxg: fix compiler warning for uninitialized variables
...
Based on work by: Jean First <jeanfirst@gmail.com>
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
13 years ago
Jean First
acc88f07d4
id3v2: fix compiler warning for uninitialized variables
...
Signed-off-by: Jean First <jeanfirst@gmail.com>
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
13 years ago
Michael Niedermayer
e6362f3a3c
lavf: ffio_limit(), treat avio_size()==0 as error.
...
This works around issues arising from inputs that claim to have a
filesize of 0.
Reported-by: buzz_
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
13 years ago
Michael Niedermayer
5500e65342
flvdec: Check avpriv_mpeg4audio_get_config() return
...
value before using its output.
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
13 years ago
Jean First
b6ffceefb5
mpegts: remove unused variable
...
Signed-off-by: Jean First <jeanfirst@gmail.com>
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
13 years ago
Jean First
8aed73c355
movenc: remove unused variables
...
Signed-off-by: Jean First <jeanfirst@gmail.com>
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
13 years ago
Jean First
576ada791a
cache: use av_freep instead of av_free in cache_open
...
Signed-off-by: Jean First <jeanfirst@gmail.com>
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
13 years ago
Jean First
3ceb4c907e
cache: remove unused variable in cache_open
...
Signed-off-by: Jean First <jeanfirst@gmail.com>
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
13 years ago
Michael Niedermayer
bace181b48
flvdec: Add comment about the 5 second threshold
...
Idea-by: Reimar
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
13 years ago
Paul B Mahol
ba10207bbe
Use more designated initializers.
...
Also remove some pointless NULL/0 assigments.
C++ code must be left as it is because named struct
initializers are not supported by C++ standard.
13 years ago
Paul B Mahol
73ba2c1e62
mp3enc: remove unused variable
13 years ago
Michael Niedermayer
83f70805c0
flvdec: Print a warning in all failure cases of parse_keyframes_index()
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
13 years ago
Michael Niedermayer
67c734ea5c
flvdec: Disable metadatacreator "MEGA" hack
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
13 years ago
Michael Niedermayer
df0bff6643
flvdec: Check index for being valid
...
Fixes seeking in Enigma_Principles_of_Lust.flv
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
13 years ago
Michael Niedermayer
b9e0e9537a
nsvdec: Check av_malloc(string_size)
...
This can easily be NULL as string_size can be 2g in a damaged file.
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
13 years ago
Michael Niedermayer
bf5cc80519
issdemux: Check packet_size for validity
...
Reviewed-by: Paul B Mahol <onemda@gmail.com>
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
13 years ago
Andrey Utkin
1f8bf1ef38
applehttpproto: Apply the same reload interval changes as for the demuxer
...
Signed-off-by: Martin Storsjö <martin@martin.st>
13 years ago
Martin Storsjö
617475a95c
applehttp: Use half the target duration as interval if the playlist didn't update
...
This is mandated in draft-pantos-http-live-streaming-07, section
6.3.4.
Signed-off-by: Martin Storsjö <martin@martin.st>
13 years ago
Andrey Utkin
356ae5f65b
applehttp: Use the last segment duration as reload interval
...
According to draft-pantos-http-live-streaming-07, 6.3.4,
the duration of the last media segment in the playlist
should be used as initial minimum reload delay.
Signed-off-by: Martin Storsjö <martin@martin.st>
13 years ago
Jindřich Makovička
891ce00c8d
mpegts: adjustable minimum PES payload
...
With the current default PES packet size, and very small audio bitrates,
audio packet duration gets too long. For players, which wait for a whole
audio packet (or more) it takes a very long time to start playing sound.
For 24kbps audio, one PES packet is about 1 second long. On Motorola STBs,
we observe about 3 second delay before the playback starts with the
default setting.
Signed-off-by: Anton Khirnov <anton@khirnov.net>
13 years ago
Jindřich Makovička
6fa9843b4b
mpegts: properly output large audio packets
...
Do not assume the audio packets being always smaller than
DEFAULT_PES_PAYLOAD_SIZE.
Signed-off-by: Jindřich Makovička <makovick@gmail.com>
Signed-off-by: Anton Khirnov <anton@khirnov.net>
13 years ago
Paul B Mahol
b5aecc6bc0
avformat: Add SMJPEG demuxer.
...
Signed-off-by: Paul B Mahol <onemda@gmail.com>
Signed-off-by: Anton Khirnov <anton@khirnov.net>
13 years ago
Carl Eugen Hoyos
ec0dc7e2e0
Make Interplay palette opaque and increase its dynamics.
13 years ago
Marton Balint
7b2dba1c50
dv: fix avpriv_dv_codec_profile with lowres > 0
...
Fixes ticket #44 .
Signed-off-by: Marton Balint <cus@passwd.hu>
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
13 years ago
Michael Niedermayer
084bd109fc
id3v2: fix variable type for uncompress()
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
13 years ago
Adrian Drzewiecki
7e09fe15d5
Process compressed id3v2 tags.
...
ID3v2.4 allows for zlib compressed tags, but libavformat skips them.
Implement code to inflate compressed tags.
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
13 years ago
Clément Bœsch
3701d547ac
gxf: remove gxf_ prefix to timecode metadata keys.
...
This will allow a shared "timecode" key metadata between formats to ease
third-party extraction.
13 years ago
Matthieu Bouron
357cb53306
dv: add timecode to metadata
...
Reviewed-by: Reimar
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
13 years ago
Michael Niedermayer
1795fed7bc
segafilm: fail earlier in case theres not enough bytestream left for a
...
audio packet.
This prevents a potentially large memory allocation.
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
13 years ago
Michael Niedermayer
27d323577c
avio: Fix ffio_limit() when due to seeking past the end less than 0 bytes remain.
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
13 years ago
Michael Niedermayer
0d4404ed65
asfdec: fix endless loop on EOF
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
13 years ago
Michael Niedermayer
47c4713a23
sierravmd: limit packetsize to the amount that could be read.
...
Fixes huge allocations.
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
13 years ago
Michael Niedermayer
66f71f3b5e
rmdec: Avoid allocating huge packets
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
13 years ago
Michael Niedermayer
43abef9fde
rpl: Fix near infinite loop in index reading due to missing eof check.
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
13 years ago
Carl Eugen Hoyos
32c49389bc
Make the palette in Quake II CIN files opaque and increase its dynamics.
13 years ago
Carl Eugen Hoyos
0d59ae32c2
Make mov palette opaque or load alpha if present.
13 years ago
Carl Eugen Hoyos
64cafe340b
Make the avi palette opaque.
13 years ago
Michael Niedermayer
ad9e0ed170
avio: fix handling of , in urls
...
Fixes Ticket805
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
13 years ago
Michael Niedermayer
8ff4fff774
flvdec: disable new midstream param change code not only for h264 but all cases.
...
It breaks some samples and iam not aware of one that it fixes.
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
13 years ago
Michael Niedermayer
9f50dafe90
udp: support non blocking reads with fifo
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
13 years ago
Michael Niedermayer
bc900501e0
udp: Replace double select() by select+mutex+cond.
...
When no data was available both the buffer thread as well as
the main thread would block in select(), when data becomes
available both should move forward and as data is read in the
buffer thread the main thread would block in select() later
the read data was put in the fifo but the main thread still
would be blocked in select() until either the timeout or
another packet would come in.
This is solved in this commit by using a mutex and a condition
variable
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
13 years ago
Michael Niedermayer
3dcbafc777
udp: return circular buffer error if such error happened.
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
13 years ago
Diego Biurrun
4e8d6218c3
build: fix standalone compilation of OMA muxer
...
The muxer depends on the id3v2 writing code, so link against it.
13 years ago
Diego Biurrun
e2c97aee39
build: fix standalone compilation of Microsoft XMV demuxer
...
The demuxer depends on the RIFF codec tags code, so link against it.
13 years ago
Diego Biurrun
408dbbd0a7
build: fix standalone compilation of Core Audio Format demuxer
...
The demuxer depends on code from mov.c, which in turn depends on
code from mov_chan.c, so link against it.
13 years ago
Alex Converse
4bf3c8f226
mov: Don't stick the QuickTime field ordering atom in extradata.
...
The 'fiel' atoms can be found in H.264 tracks clobbering the extradata.
MJPEG supports non field based extradata, and this data should be
preserved when copying.
13 years ago