Alexandra Hájková
944f60866f
asfdec: read values properly
...
The length of BOOL values is 16 bits in the Metadata Object but
32 bits in the Extended Content Description Object.
Signed-off-by: Luca Barbato <lu_zero@gentoo.org>
10 years ago
Alexandra Hájková
fdbc544d29
asfdec: prevent the memory leak while reading metadata
...
Signed-off-by: Anton Khirnov <anton@khirnov.net>
10 years ago
Alexandra Hájková
33dc1913ab
asfdec: remove improper assignement that caused wrong timestamps
...
and remove unneeded variable
Sample-Id: https://samples.libav.org/asf-wmv/asf-code-53/movn018.asf
Signed-off-by: Anton Khirnov <anton@khirnov.net>
10 years ago
Alexandra Hájková
78491fe8cf
asfdec: do not export empty metadata
...
Signed-off-by: Anton Khirnov <anton@khirnov.net>
10 years ago
Alexandra Hájková
cd4d9df227
asfdec: free AVDictionaries properly when closing the demuxer
...
Signed-off-by: Anton Khirnov <anton@khirnov.net>
10 years ago
Martin Storsjö
764ec70149
rtsp: Only interpret $ as interleaved packet indicator at the start of replies
...
Allow $ as character anywhere within normal RTSP replies - both
within the lines, and as the first character of RTSP header lines.
(The existing old comment indicated that an inline packet could
start at any line within a RTSP reply header, but that doesn't
sound valid to me, and I'm not sure if the existing code
handled that correctly either.)
CC: libav-stable@libav.org
Signed-off-by: Martin Storsjö <martin@martin.st>
10 years ago
Luca Barbato
0c73a5a53c
hls: Save and forward avio options
...
Make possible to send the custom headers and override the user agent.
Reported-by: BenWonder
10 years ago
Luca Barbato
5ae178539b
http: Add the trailing endlines if they are missing
...
Makes slightly easier the life of those want to use the option
from the command line
10 years ago
James Almer
9487ffd4c0
rtmpproto: free hmac context properly
...
Signed-off-by: James Almer <jamrial@gmail.com>
Signed-off-by: Martin Storsjö <martin@martin.st>
10 years ago
James Almer
65dd6a1f84
rtmpproto: use AVHMAC instead of a custom implementation
...
Signed-off-by: James Almer <jamrial@gmail.com>
Signed-off-by: Martin Storsjö <martin@martin.st>
10 years ago
Alexandra Hájková
b5c1c16247
asfdec: do not align Data Object when Broadcast Flag is set
...
its size is invalid in this case
Signed-off-by: Anton Khirnov <anton@khirnov.net>
10 years ago
Vittorio Giovara
059a934806
lavc: Consistently prefix input buffer defines
...
Signed-off-by: Vittorio Giovara <vittorio.giovara@gmail.com>
10 years ago
Vittorio Giovara
def97856de
lavc: AV-prefix all codec capabilities
...
Express bitfields more simply.
Signed-off-by: Vittorio Giovara <vittorio.giovara@gmail.com>
10 years ago
Vittorio Giovara
7c6eb0a1b7
lavc: AV-prefix all codec flags
...
Convert doxygen to multiline and express bitfields more simply.
Signed-off-by: Vittorio Giovara <vittorio.giovara@gmail.com>
10 years ago
Alexandra Hájková
9e8627a1ff
asfdec: interpret the first flag in an asf packet as length flag
...
if the error correction flag is not set, a packet starts with payload
Signed-off-by: Anton Khirnov <anton@khirnov.net>
10 years ago
Alexandra Hájková
7f388c0fab
asfdec: remove the wrong condition
...
this condition breaks reading from the pipe as data_reached variable
have to be set to break while in the asf_read_header just after the Data
Object is found
Signed-off-by: Anton Khirnov <anton@khirnov.net>
10 years ago
Alexandra Hájková
aed7715b8f
asfdec: increment nb_streams right after the stream allocation
...
to prevent possible memory leaks
Signed-off-by: Anton Khirnov <anton@khirnov.net>
10 years ago
Alexandra Hájková
ee80f834cb
asfdec: set nb_streams to 0 in the asf_read_close
...
Signed-off-by: Anton Khirnov <anton@khirnov.net>
10 years ago
Alexandra Hájková
2a187a074a
asfdec: avoid crash in the case when chunk_len is 0 or pkt_len is 0
...
Signed-off-by: Anton Khirnov <anton@khirnov.net>
10 years ago
Alexandra Hájková
93f16f338f
asfdec: close the demuxer properly when read_header is failing
...
Signed-off-by: Anton Khirnov <anton@khirnov.net>
10 years ago
Alexandra Hájková
5655236a67
asfdec: factor out seeking to the Data Object outside while
...
return INVALIDDARA if Data Object was not found
Signed-off-by: Anton Khirnov <anton@khirnov.net>
10 years ago
Vittorio Giovara
5d3addb937
Add a quality factor packet side data
...
This is necessary to preserve the quality information currently exported
with coded_frame. Add the new side data to every encoder that needs it,
and use it in avconv.
Signed-off-by: Vittorio Giovara <vittorio.giovara@gmail.com>
10 years ago
Alexandra Hájková
e61f39849c
asfdec: make nb_sub to be unsigned int
...
number of subpayloads should be always positive
Signed-off-by: Anton Khirnov <anton@khirnov.net>
10 years ago
Alexandra Hájková
2883ef34b5
asfdec: read the replicated data in a separate function
...
Signed-off-by: Anton Khirnov <anton@khirnov.net>
10 years ago
Alexandra Hájková
0989d3ad1f
asfdec: convert condition for the replicated data reading to be safer
...
Signed-off-by: Anton Khirnov <anton@khirnov.net>
10 years ago
Alexandra Hájková
406627287e
asfdec: do not read replicated data when their length is 0
...
Signed-off-by: Anton Khirnov <anton@khirnov.net>
10 years ago
Vittorio Giovara
f1840b070d
Revert "mov: Double-check that alias path is not an absolute path"
...
This reverts commit 9286de0459
.
The change broke support for legit absolute file paths.
Reported-by: Maksym Veremeyenko <verem@m1stereo.tv>.
10 years ago
Luca Barbato
4512ee78e1
mpegts: Mark the muxer as supporting variable fps
...
Signed-off-by: Luca Barbato <lu_zero@gentoo.org>
10 years ago
Luca Barbato
a5a6a786bf
mp3: Forward seeking errors
...
Signed-off-by: Luca Barbato <lu_zero@gentoo.org>
10 years ago
Alexandra Hájková
c571424c7f
asfdec: prevent memory leaks found with Coverity Scan
...
Signed-off-by: Anton Khirnov <anton@khirnov.net>
10 years ago
Hendrik Leppkes
796268654c
asfdec: always reset packet state after seeking
...
Signed-off-by: Luca Barbato <lu_zero@gentoo.org>
10 years ago
Andreas Cadhalpun
f1bdc23437
riff: Validate bitrate
10 years ago
Luca Barbato
c1d647b15a
mp3: Make the seek more robust
...
Try to parse up to 4 packets to find the closest packet.
Reported-By: jan.schlueter@ofai.at
10 years ago
Luca Barbato
d80811c94e
riff: Use the correct logging context
10 years ago
Alexandra Hájková
872fab4a3d
asfdec: Fix reading from the pipe
...
Signed-off-by: Luca Barbato <lu_zero@gentoo.org>
10 years ago
Anton Khirnov
0e7c0ec344
lavf/hevc: pad the RBSP buffer as required by the bistream reader
10 years ago
Frank Heckenbach
161a301d44
mpjpeg: Write the Content-length
10 years ago
Luca Barbato
d09b4cce21
mpjpeg: Simplify using avio_printf
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
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
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
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