Michael Niedermayer
4ce03a95e2
lmlm4: check packet_size against lower limit too
Fixes CID732224
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
13 years ago
Michael Niedermayer
5f476cfe6e
avformat/tee: add forgotten ret assignment
Fixes CID991840
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
13 years ago
Michael Niedermayer
fdda9b440c
matroska_parse_frame: fix memleak
Fixes CID991856
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
13 years ago
Clément Bœsch
dec9800c9d
lavf: do not make a hard dep on internal subtitles helpers.
13 years ago
Michael Niedermayer
8d0da20ca6
avidec: fix duration and bitrate of truncated files
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
13 years ago
Anton Khirnov
3cd93cc7b8
Revert "asfenc: return error on negative timestamp"
This reverts commit d1bec33b46091546c5b2e6815210e73f87abf413, it breaks
FATE.
13 years ago
Matthieu Bouron
69e93792d6
lavf/mxfdec: read field dominance flag
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
13 years ago
Michael Niedermayer
0e02a5193f
segment: copy metadata
Fixes Ticket2230
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
13 years ago
Thierry Foucu
823efd9286
Fix termination of mov_ch_layouts_wav array lookup
Problem found using ASAN.
In some case, the ff_mov_get_channel_layout_tag function will not find 0
as termination for lookup in the array mov_ch_layouts_wav.
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
13 years ago
Michael Niedermayer
73ef12757b
append_packet_chunked: remove outcommented code
our variant works fine and should be better
also remove related unused variable
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
13 years ago
Kostya Shishkov
50c449ac24
iff: validate CMAP palette size
Fixes CVE-2013-2495
Found-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind
Signed-off-by: Luca Barbato <lu_zero@gentoo.org>
CC: libav-stable@libav.org
13 years ago
Luca Barbato
d1bec33b46
asfenc: return error on negative timestamp
According to the specification the timestamp is represented by a 32bit
unsigned.
CC: libav-stable@libav.org
13 years ago
Michael Niedermayer
519ebb5ee5
rmdec: flush audio packet on seeking
Fixes Ticket1605
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
13 years ago
Richard
9cde9f70ab
mpeg: Add passing DVD navigation packets (startcode 0x1bf) to caller to allow better playback handling of DVDs.
The two types of packets (PCI and DSI) are passed untouched but combined by the new codec ID AV_CODEC_ID_DVD_NAV.
The first 980 bytes in the packet contain the PCI data. The next 1018 are the DSI data.
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
13 years ago
Clément Bœsch
3313b9cc2d
lavc: remove unecessary a64enc include.
13 years ago
Michael Niedermayer
07d4f557e5
append_packet_chunked: Remove unused initialization.
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
13 years ago
Reimar Döffinger
e4e4add0e3
Add raw VC-1 muxer to match demuxer.
This is admittedly kind of pointless since usually -f image2pipe
can be used for the purpose, but this is more user-friendly.
Signed-off-by: Reimar Döffinger <Reimar.Doeffinger@gmx.de>
13 years ago
Reimar Döffinger
5301aed9ae
vc1testenc: give muxer same name as demuxer
Otherwise ffmpeg -formats claims that we only support demuxing
of that format.
To keep compatibility the struct could be duplicated instead,
but this seems almost like overkill for such a rare format.
Signed-off-by: Reimar Döffinger <Reimar.Doeffinger@gmx.de>
13 years ago
Reimar Döffinger
c3c3bc7ff6
Make ff_win32_open more robust.
- Make MultiByteToWideChar fail when it encounters invalid encoding.
Without this, invalid characters might just be skipped
- When MultiByteToWideChar fails, assume the file name is in CP_ACP
and open it via normal open function, even when the file will be
written
- When malloc fails return error instead of crashing
Signed-off-by: Reimar Döffinger <Reimar.Doeffinger@gmx.de>
13 years ago
Anton Khirnov
aa3c779984
lavf: sanity check size in av_get/append_packet().
To avoid allocating ridiculous amounts of memory for corrupted files,
read the input in chunks limited to filesize or an arbitrary large
amount when that is not known (chosen to be 50M).
13 years ago
Paul B Mahol
a9b424879f
lavc & lavf: replace deprecated av_log* functions
Signed-off-by: Paul B Mahol <onemda@gmail.com>
13 years ago
Michael Niedermayer
70c0ae915d
matroskadec: avoid integer overflow
Found-by: wm4
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
13 years ago
Xi Wang
8425d693ee
flacdec: simplify bounds checking in flac_probe()
Simplify `p->buf > p->buf + p->buf_size - 4' as `p->buf_size < 4'.
Avoid a possible out-of-bounds pointer, which is undefined behavior
in C.
CC: libav-stable@libav.org
Signed-off-by: Xi Wang <xi.wang@gmail.com>
Signed-off-by: Luca Barbato <lu_zero@gentoo.org>
13 years ago
Kostya Shishkov
c42e262513
add support for Monkey's Audio versions from 3.93
13 years ago
Can Wu
81cf53e133
mpegts: add support for stream_type 0x42, which is CAVS
This allows demuxing and muxing of CAVS TS streams.
Signed-off-by: Anton Khirnov <anton@khirnov.net>
13 years ago
Clément Bœsch
1f68bac50b
lavf/avio: fix two extreemly unreasonble typos.
13 years ago
Diego Biurrun
1ae07959ab
rsodec: Use avpriv_report_missing_feature() where appropriate
13 years ago
Diego Biurrun
1ecdf8912b
avformat: av_log_ask_for_sample() ---> avpriv_request_sample()
13 years ago
Diego Biurrun
63d744e2be
av_log_missing_feature() ---> avpriv_report_missing_feature()
13 years ago
Michael Niedermayer
acbd14bc7e
avformat: postpone API removials where the functions are trivial wrapers
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
13 years ago
Hendrik Leppkes
713ac21097
avutil/os_support: use 64-bit fstat/lseek variants for MSVC as well
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
13 years ago
Luca Barbato
37cb3b180a
matroskadec: request a read buffer for the wav header
Solve an infiniloop.
CC: libav-stable@libav.org
13 years ago
Nicolas George
b52421940f
lavf: add AV_ to two remaining CODEC_ID_*.
13 years ago
Michael Niedermayer
c292e340ed
avformat: keep r_frame_rate
This field is used and nothing equivalent exists
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
13 years ago
Michael Niedermayer
9cf788eca8
avformat/avdevice: add missing time.h includes
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
13 years ago
Diego Biurrun
a4472ac01e
Add informative messages to av_log_ask_for_sample calls lacking them
13 years ago
Diego Biurrun
8f10f1a6dc
anm: Get rid of some very silly goto statements
13 years ago
Anton Khirnov
85a5bc054c
lavf: remove disabled FF_API_R_FRAME_RATE cruft
13 years ago
Anton Khirnov
7b486ab13b
lavf: remove disabled FF_API_AV_GETTIME cruft
13 years ago
Anton Khirnov
32e5194969
lavf: remove disabled FF_API_INTERLEAVE_PACKET cruft
13 years ago
Anton Khirnov
435c2a31ad
lavf: remove disabled FF_API_READ_PACKET cruft
13 years ago
Anton Khirnov
c7e044c61b
lavf: remove disabled FF_API_APPLEHTTP_PROTO cruft
13 years ago
Anton Khirnov
0a7c4daf46
lavf: remove disabled FF_API_CLOSE_INPUT_FILE cruft
13 years ago
Michael Niedermayer
806a66fd08
mpegts: clear avprograms only for removed programs
Fixes Ticket2186
Requested-by: carl
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
13 years ago
Martin Storsjö
f1af3d19a7
output-example: Update to use encode_video2 instead of the now dropped encode_video
Signed-off-by: Anton Khirnov <anton@khirnov.net>
13 years ago
Anton Khirnov
6c7d339afc
tty: set avg_frame_rate.
The container does not store any timestamps and is CFR-only.
13 years ago
Anton Khirnov
0651e892e1
Replace remaining includes of audioconvert.h with channel_layout.h
13 years ago
Anton Khirnov
d8b31be6ca
Add the bumps and APIchanges entries for reference counted buffers changes.
13 years ago
Anton Khirnov
1afddbe59e
avpacket: use AVBuffer to allow refcounting the packets.
This will allow us to avoid copying the packets in many cases.
This breaks ABI.
13 years ago
Alexander Kojevnikov
eae0879d96
mp3dec: Fix VBR bit rate parsing
When parsing the Xing/Info tag, don't set the bit rate if it's an Info tag.
When parsing the stream, don't override the bit rate if it's already set,
otherwise calculate the mean bit rate from parsed frames. This way, the bit
rate will be set correctly both for CBR and VBR streams.
CC:libav-stable@libav.org
Signed-off-by: Anton Khirnov <anton@khirnov.net>
13 years ago