Carl Eugen Hoyos
5a237c33b8
lavf/asfdec_f: Remove CR/LF from avpriv_request_sample() call.
8 years ago
James Almer
1582e306a4
avformat/avlanguage: make av_convert_lang_to() internal
...
The header was never installed and the function is only used in libavformat
Reviewed-by: Paul B Mahol <onemda@gmail.com>
Signed-off-by: James Almer <jamrial@gmail.com>
8 years ago
Lou Logan
06eef96b69
fix some a/an typos
...
Signed-off-by: Lou Logan <lou@lrcd.com>
9 years ago
Clément Bœsch
43ecec0f03
avformat: use AV_OPT_TYPE_BOOL in a bunch of places
9 years ago
Hendrik Leppkes
75c3e54d1c
asfdec: fix FATE seek test
9 years ago
Hendrik Leppkes
c2f861ca42
Replace remaining occurances of av_free_packet with av_packet_unref
9 years ago
Hendrik Leppkes
83a5df54ea
Remove left-over FF_API_DESTRUCT_PACKET cruft
9 years ago
Michael Niedermayer
9837d3b068
avformat/asfdec_f: Parse ECC byte according to spec
...
This should not change anything as the spec requires specific values
for the fields, which where handled previously.
Ask for samples when these values do not match
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
9 years ago
Michael Niedermayer
0671dc5c53
avformat/asfdec_f: Improve packet resync heuristic
...
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
9 years ago
Michael Niedermayer
5d79a07316
avformat/asfdec_f: Do not print errors if packets do not start with ECC
...
There is nothing wrong with such packets, the spec allows this
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
9 years ago
Michael Niedermayer
385eb066ce
avformat/asfdec_f: Increase the amount of information provided in cases of errors
...
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
9 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
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
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
Carl Eugen Hoyos
5a458420e2
lavf/asfdec: Reduce minimum header size.
...
Fixes GipsyGuitar.wmv mentioned in ticket #1477 .
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
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
5bdfc17189
asf: Do not skip data streams
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
Michael Niedermayer
f902b0b2cb
avformat/asfdec: Avoid float usage in duration calculation
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
10 years ago
Michael Niedermayer
374cf93548
avformat/asfdec: do not define print_guid() to nothing
...
This avoid potential warnings
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
10 years ago
Vittorio Giovara
1a3eb042c7
Replace av_dlog with normal av_log at trace level
...
This applies to every library where performance is not critical.
10 years ago
Vittorio Giovara
0af3b65880
asf: do not export XMP metadata by default
...
Similarly to what has been done for MOV, display XMP metadata only when
users explicitly require it.
The Extensible Metadata Platform tag can contain various kind of data
which are not strictly related to the video file, such as history of
edits and saves from the project file.
Signed-off-by: Vittorio Giovara <vittorio.giovara@gmail.com>
10 years ago
Michael Niedermayer
d4936d28a1
avformat/asfdec: Use 64bit ret to avoid overflow
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
10 years ago
Diego Biurrun
daf8cf358a
avformat: Don't anonymously typedef structs
10 years ago
wm4
9deaec7828
lavf: move internal fields from public to internal context
...
This is not an API change; the fields were explicitly declared private
before.
Signed-off-by: Anton Khirnov <anton@khirnov.net>
10 years ago
Michael Niedermayer
ab161bfa4b
avformat/asfdec: Check the av_get_packet() return value
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
10 years ago
Thomas Volkert
00d7555f34
wavdec: RIFX file format support
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
10 years ago
Michael Niedermayer
2076095549
avformat/asfdec: Check av_new_packet()s return code
...
Fixes CID1041093
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
10 years ago
James Almer
d34ec64a22
replace calls to url_feof() with avio_feof()
...
Signed-off-by: James Almer <jamrial@gmail.com>
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
10 years ago
Michael Niedermayer
2db1bcf1b9
avformat/asfdec: Try to improve skip case
...
Fixes Ticket3761
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
11 years ago
Michael Niedermayer
4eb13cdfb0
avformat/asfdec: dvrms timestamps are pts not dts
...
Should fix Ticket3328
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
11 years ago
Carl Eugen Hoyos
e3fd263f0b
Show duration for large asf files as written in the file header.
...
Fixes ticket #3428 .
11 years ago
Michael Niedermayer
72e4ceeb79
avformat/asfdec: Use a parser for mpeg4-asp to find has_b_frames
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
11 years ago
Peter Ross
5331773cc3
ff_id3v2_read: add option to limit ID3 magic number search
...
Several chunked formats (AIFF, IFF,DSF) store ID3 metadata within an 'ID3 '
chunk tag. If such chunks are stored sequentially, it is possible for the
ID3v2 parser to confuse the chunk tag for the ID3 magic number. e.g.
[1st chunk tag ('ID3 ') | chunk size] [ID3 magic number | metadata ...]
[2nd chunk tag ('ID3 ') | chunk size] [ID3 magic number | metadata ...]
Fixes ticket #3530 .
Signed-off-by: Peter Ross <pross@xvid.org>
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
11 years ago
Diego Biurrun
d92024f18f
lavf: more correct printf format specifiers
11 years ago
Michael Niedermayer
c320485633
avformat/asfdec: pass on error code from avio_seek()
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
11 years ago
Janne Grunau
f5d92d9cab
asfdec: fix seeking with fragmented packets
...
After seeking fragments with an offset > 0 must be skipped to correctly
assemble packets.
Bug-Id: 43
11 years ago
Andrew Kelley
0c08256596
asfdec: short-circuit seeking to the start of stream
...
Bug-id: 43
Signed-off-by: Janne Grunau <janne-libav@jannau.net>
11 years ago
Janne Grunau
0ebb523f07
asfdec: check ff_get_guid() return values during seeking
...
Hitting EOF during seeking is quite likely. Fixes use of uninitialized
data during fate-seek-lavf-asf.
11 years ago
Michael Niedermayer
f5cf0ea93a
avformat/asf: clear uninitialized areas of packets before returning them
...
Fixes use of uninitialized variables
Fixes msan_uninit-mem_7f839282b6ce_7273_msn08_VBRq70_800x600.wmv
Found-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
11 years ago
Michael Niedermayer
e78d038187
avformat/asfdec: ignore packet_segments
...
Fixes Ticket1708
Based on patch by Alberto Delmás
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
11 years ago
Alberto Delmás
edf7d15eb0
avformat/asfdec: reset packet_time_start when asf_read_frame_header() failed
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
11 years ago
Michael Niedermayer
76dad833e9
avformat/asfdec: remove duplicated packet_segments reset
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
11 years ago