Michael Niedermayer
656e9a68c4
avformat/swfdec: Fix "}else" style
...
Found-by: durandal_170
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
10 years ago
Michael Niedermayer
6a1204a1a4
avformat/swfdec: Do not error out on pixel format changes
...
Instead print an error and continue
Fixes Ticket4702
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
10 years ago
Carl Eugen Hoyos
1d5edad8cc
lavf/mpegtsenc: Only fail aac muxing if the first frame is invalid.
...
Fixes ticket #3957 .
10 years ago
Paul B Mahol
5233f2534c
avformat/yuv4mpegenc: use avio_printf()
...
Signed-off-by: Paul B Mahol <onemda@gmail.com>
10 years ago
Vittorio Giovara
f046c3b5ac
lavc: Move deprecation warning disabling to files including the table
...
Unbreak build from 7a5902c556
.
Signed-off-by: Luca Barbato <lu_zero@gentoo.org>
10 years ago
Alexandra Hájková
016cac75c6
asfdec: prevent the infinite loop in detect unknown_subobject
...
Signed-off-by: Luca Barbato <lu_zero@gentoo.org>
10 years ago
Alexandra Hájková
9752d2e6cc
asfdec: prevent possible memory leak in the asf_read_metadata_obj
...
Signed-off-by: Luca Barbato <lu_zero@gentoo.org>
10 years ago
Michael Niedermayer
1f69b7baa1
avformat/asfdec_f: Fix memleak
...
Found-by: jamrial
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
10 years ago
John Adlum
72cad80016
avformat/asfdec_f: Add ASFDataType, use named types for metadata
...
This is based on asfdec_o.c, but uses a proper type instead of defines
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
10 years ago
John Adlum
59fffefdb4
avformat/asfdec_f: Use dynamic allocation in asf_read_metadata() instead of a fixed size buffer
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
10 years ago
John Adlum
c8eca438a9
avformat/asfdec_f: factor error checking out of main header parsing loop
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
10 years ago
Michael Niedermayer
838c5f3df7
avformat/utils: Redesign scoring in av_find_default_stream_index()
...
This avoids empty streams from being selected if a equivalent non empty one is available
The new system is also clearer and more systematic
This may need finetuning, which should be easy to do ...
Fixes Ticket2687
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
10 years ago
Paul B Mahol
5165c600eb
avformat/rtmpproto: increase hardcoded url/path lengths
...
Fixes #4103 .
Signed-off-by: Paul B Mahol <onemda@gmail.com>
10 years ago
John Adlum
811008b8ee
avformat/asfdec_f: Assert that packet positions match in asf_read_pts()
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
10 years ago
John Adlum
28206b75e8
avformat/asfdec_f: Correct skip to key code
...
Fixes Ticket3978
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
10 years ago
Vadim Belov
db64af6395
avformat/concatdec: copy stream metadata when using concat
...
Reviewed-by: Nicolas George <george@nsup.org>
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
10 years ago
Michael Niedermayer
60ec3007e6
avformat/nutdec: Check ff_gen_search() for failure
...
Fixes assertion failure
Found-by: durandal_1707
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
10 years ago
Michael Niedermayer
2f8c81637c
avformat/matroskadec: Fix undefined shift in read_sint()
...
Fixes: asan_heap-oob_17212bc_2243_cov_594210248_h264_TTA.mkv
Found-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
10 years ago
Vittorio Giovara
a1e2caa93e
mov: Log format rather than fourcc in stsd in trace mode
...
This will fix remaining format warnings.
10 years ago
Vittorio Giovara
2eef75fd7e
mov: Adjust variable types to fix format warnings
10 years ago
Vittorio Giovara
df22e30172
dump: Use the correct abs() version
...
Fix warning from clang "absolute value function 'abs' given an argument
of type 'long long' but has parameter of type 'int' which may cause
truncation of value [-Wabsolute-value]".
10 years ago
Luca Barbato
e95c7a6185
mov: Preserve the metadata even when bit-exactness is requested
...
Make sure to not write the custom `encoder` string in that case.
Bug-Id: 845
CC: libav-stable@libav.org
10 years ago
John Högberg
42bc768e52
mpegts: Add jpeg2000 stream type
...
Signed-off-by: Luca Barbato <lu_zero@gentoo.org>
10 years ago
Michael Niedermayer
0d5a27c2b5
Rename asfdec-o.c to asfdec_o.c
...
Most files use _ instead of - as spacer, so this is more consistent
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
10 years ago
Michael Niedermayer
8f9c39b3e8
avformat: rename asfdec.c to asfdec_f.c
...
leaving it as asfdec.c confuses git
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
10 years ago
Michael Niedermayer
da8b228977
avformat/avio: Move avio_delete() avio_move() to avpriv_ namespace
...
This was suggested in the discussion about these functions
With this change the functions are available internally but are not
part of the public API
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
10 years ago
Carl Eugen Hoyos
4b920d7b4a
lavf/msnwc: Return 0 if the probe function does not detect msnwc-tcp.
...
Reduces console spamming on debug level.
10 years ago
Carl Eugen Hoyos
77c0b149be
lavf/mpegts: Return 0 if the probe function does not detect mpegts.
...
Reduces console spamming on debug level.
10 years ago
Carl Eugen Hoyos
dee7943819
lavf/img2dec: Improve detection of valid Quickdraw images.
...
Detect Quickdraw images without application header with
lower score.
10 years ago
Carl Eugen Hoyos
5a458420e2
lavf/asfdec: Reduce minimum header size.
...
Fixes GipsyGuitar.wmv mentioned in ticket #1477 .
10 years ago
Carl Eugen Hoyos
a876a4da4a
lavf/img2dec: Autodetect dds frames.
10 years ago
Michael Niedermayer
4ccd2b31f0
avformat/asfdec: Allow packet_obj_size == 0
...
Fixes Ticket3521
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
10 years ago
Michael Niedermayer
be4e1f28fd
avformat/asfdec: Print packet_obj_size in case it is invalid
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
10 years ago
Ludmila Glinskih
ca3b274552
api-h264-test: build with another api test
...
Location of api-h264-test changed to special directory for api tests.
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
10 years ago
Michael Niedermayer
a5f617e9ec
avformat/asfdec: Print a warning if data is skiped due to less than a frame header being left
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
10 years ago
Michael Niedermayer
4b0a475846
avformat/asfdec: Reduce FRAME_HEADER_SIZE to 11
...
This fixes demuxing of screen_codec.wmv
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
10 years ago
Luca Barbato
1b4c468477
riff: Validate the wav header size before trying to parse it
10 years ago
Luca Barbato
5bdfc17189
asf: Do not skip data streams
10 years ago
Michael Niedermayer
da06169850
avformat/riffdec: Forward error code from avio_read() in ff_get_guid()
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
10 years ago
Luca Barbato
8a26ae5f94
mpjpeg: Check stream allocation
...
Bug-Id: CID 1308152
10 years ago
Alexandra Hájková
b08569a239
lavf: Replace the ASF demuxer
...
The old one is the result of the reverse engineering and guesswork.
The new one has been written following the now-available specification.
This work is part of Outreach Program for Women Summer 2014 activities
for the Libav project.
The fate references had to be changed because the old demuxer truncates
the last frame in some cases, the new one handles it properly.
The seek-test reference is changed because seeking works differently
in the new demuxer. When seeking, the packet is not read from the stream
directly, but it is rather constructed by the demuxer. That is why
position is -1 now in the reference.
Signed-off-by: Anton Khirnov <anton@khirnov.net>
10 years ago
Andreas Cadhalpun
6b9fdf7f4f
nutdec: check maxpos in read_sm_data before returning success
...
Otherwise sm_size can be larger than size, which results in a negative
packet size.
Reviewed-by: Michael Niedermayer <michaelni@gmx.at>
Signed-off-by: Andreas Cadhalpun <Andreas.Cadhalpun@googlemail.com>
10 years ago
Rodger Combs
68f00fb40b
lavf/brstm: if the file lies about the last block's size, correct it
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
10 years ago
schenk michael
b9161ef052
avformat/hls: do not iterate to next sequence number if interruption is requested
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
10 years ago
Rodger Combs
0643b4bf74
lavf/brstm: expose the loop point when present
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
10 years ago
Peter Ross
803bdc5469
electronicarts: demux alpha stream
...
Electronic Arts VP6 files may contain two video streams: one for the
primary video stream and another for the alpha mask. The file format
uses identical data structures for both streams.
Signed-off-by: Peter Ross <pross@xvid.org>
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
10 years ago
Peter Ross
a2517fca1e
electronicarts: move video stream properties into dedicated structure
...
This is required for the alpha stream demux patch.
Signed-off-by: Peter Ross <pross@xvid.org>
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
10 years ago
Ludmila Glinskih
b04c630a3d
libavformat: Add H264 API test
...
Result differs in pkt_duration and time_base.den for some reason.
Right now it tests only one example (adjusted to match the output).
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
10 years ago
James Almer
58d7dde081
brstm: fix use of uninitialized variables
...
Fixes valgrind complaining about "Conditional jump or move depends on uninitialised value(s)"
Signed-off-by: James Almer <jamrial@gmail.com>
10 years ago
Paul B Mahol
ded5957d75
segafilm: Remove deplanarization hack
...
Signed-off-by: Paul B Mahol <onemda@gmail.com>
Signed-off-by: Vittorio Giovara <vittorio.giovara@gmail.com>
10 years ago