- 10 Mar, 2015 5 commits
-
-
Martin Storsjö authored
The previous use of the mov->fragments field, for determining whether written packets were part of the first fragment or not, didn't work as intended when using the empty_moov flag. Signed-off-by:
Martin Storsjö <martin@martin.st>
-
Martin Storsjö authored
By making sure we at each time only have one pointer set, either a local variable or one in the context, we avoid potential double frees in the cleanup routines. If chain->rtp_ctx is set, it is closed by calling avformat_write_trailer, but that shouldn't be called unless avformat_write_header succeeded. This issue was pointed out by Andreas Cadhalpun. Signed-off-by:
Martin Storsjö <martin@martin.st>
-
Martin Storsjö authored
This fixes a typo from 8e32b1f0. Signed-off-by:
Martin Storsjö <martin@martin.st>
-
Anton Khirnov authored
-
Anton Khirnov authored
exit_program() will try to free the decoders, which is not a good idea from within get_format(). Return an error instead.
-
- 09 Mar, 2015 6 commits
-
-
Vittorio Giovara authored
This buffer is resized when vpx_codec_get_cx_data() returns a VPX_CODEC_STATS_PKT packet. CC: libav-stable@libav.org Signed-off-by:
Vittorio Giovara <vittorio.giovara@gmail.com>
-
Vittorio Giovara authored
The avio functions used here return an unsigned value. Also reduce a variable scope. CC: libav-stable@libav.org Bug-Id: CID 1258461
-
Vittorio Giovara authored
This prevents it to be written as unsigned. Also add an error message. CC: libav-stable@libav.org Bug-Id: CID 1265717
-
Vittorio Giovara authored
In this case len is always at least 3, since it is checked against RTP_HEVC_PAYLOAD_HEADER_SIZE + 1 before entering the switch block. Bug-Id: CID 1238784
-
Martin Storsjö authored
Signed-off-by:
Martin Storsjö <martin@martin.st>
-
Martin Storsjö authored
This avoids assuming that e.g. audio samples are marked as sync samples. This allows omitting the sample flags from trun, if the default flags happen to be right for all the samples. Signed-off-by:
Martin Storsjö <martin@martin.st>
-
- 08 Mar, 2015 8 commits
-
-
Michael Niedermayer authored
Fixes out of array accesses. CC: libav-stable@libav.org Found-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind Bug-Id: CVE-2014-9604 Signed-off-by:
Vittorio Giovara <vittorio.giovara@gmail.com> Signed-off-by:
Luca Barbato <lu_zero@gentoo.org>
-
Vittorio Giovara authored
-
Anton Khirnov authored
Fixes possible issues with unexpected bpp/bppcount values. CC: libav-stable@libav.org Found-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind Bug-Id: CVE-2014-8544 Signed-off-by:
Luca Barbato <lu_zero@gentoo.org>
-
Martin Storsjö authored
The str variable is a char ** here. Signed-off-by:
Martin Storsjö <martin@martin.st>
-
Luca Barbato authored
Prevent an use after free in the error message. Bug-Id: CID 1274040 CC: libav-stable@libav.org
-
Luca Barbato authored
The valid returned values are always at most 11bit. Remove the previous check that assumed larger values plausible and use a signed integer to check get_vlc2 return values. CC: libav-stable@libav.org
-
Luca Barbato authored
Makes the code a little simpler.
-
Carl Eugen Hoyos authored
Use correct context, reduce log level, don't assume it is a video stream, and print the tag of the unknown stream. Signed-off-by:
Vittorio Giovara <vittorio.giovara@gmail.com>
-
- 07 Mar, 2015 2 commits
-
-
Martin Storsjö authored
Signed-off-by:
Martin Storsjö <martin@martin.st>
-
Martin Storsjö authored
When all the codepaths using manually set .arch/.fpu code is behind runtime detection, the elf attributes should be suppressed. This allows tools to know that the final built binary doesn't strictly require these extensions. Signed-off-by:
Martin Storsjö <martin@martin.st>
-
- 06 Mar, 2015 5 commits
-
-
Jonas Lindgren authored
Signed-off-by:
Luca Barbato <lu_zero@gentoo.org>
-
Martin Storsjö authored
a8765852 had the unintended side effect of returning AVERROR(ENOMEM) when track->entry is zero, while the code intentionally wants to continue in that case. Signed-off-by:
Martin Storsjö <martin@martin.st>
-
Timo Rothenpieler authored
The mov muxer already supports picking up extradata that wasn't present during the avformat_write_header call - we just need to propagate it. Since the dash muxer uses delay_moov, we have time up until the first segment is written to get extradata filled in. Also update the codec description string when the extradata becomes available. Signed-off-by:
Martin Storsjö <martin@martin.st>
-
Timo Rothenpieler authored
Signed-off-by:
Martin Storsjö <martin@martin.st>
-
Martin Storsjö authored
Signed-off-by:
Martin Storsjö <martin@martin.st>
-
- 05 Mar, 2015 7 commits
-
-
Himangi Saraogi authored
Signed-off-by:
Diego Biurrun <diego@biurrun.de>
-
Anton Khirnov authored
It was only relevant when data partitioning was in use.
-
Andreas Cadhalpun authored
It is used in adx_read_packet, which currently depends on the decoder/parser setting this value between reading the file header and demuxing the first packet. Signed-off-by:
Andreas Cadhalpun <Andreas.Cadhalpun@googlemail.com> Signed-off-by:
Anton Khirnov <anton@khirnov.net>
-
Andreas Cadhalpun authored
The chunk size is limited to UINT16_MAX (written by avio_wb16), so make sure that the packet size is not too large. Such large frames need to be split into slices smaller than 64 kB, but that is currently supported neither by the rv10/rv20 encoders nor the rm muxer. Signed-off-by:
Andreas Cadhalpun <Andreas.Cadhalpun@googlemail.com> Signed-off-by:
Anton Khirnov <anton@khirnov.net>
-
Andreas Cadhalpun authored
According to the WebP Lossless Bitstream Specification the highest allowed value for a prefix code is 39. If prefix_code is too large, the calculated extra_bits has an invalid value and triggers an assertion in get_bits. Signed-off-by:
Andreas Cadhalpun <Andreas.Cadhalpun@googlemail.com> Signed-off-by:
Anton Khirnov <anton@khirnov.net>
-
Andreas Cadhalpun authored
If it doesn't fit into 12 bits it triggers an assertion. Signed-off-by:
Andreas Cadhalpun <Andreas.Cadhalpun@googlemail.com> Signed-off-by:
Anton Khirnov <anton@khirnov.net>
-
Thomas Volkert authored
The code was tested with live555 server. Signed-off-by:
Martin Storsjö <martin@martin.st>
-
- 04 Mar, 2015 7 commits
-
-
Himangi Saraogi authored
Signed-off-by:
Diego Biurrun <diego@biurrun.de>
-
Martin Storsjö authored
The original flags variable contains rtpdec flags, while the rmflags variable contains RM flag bits which have a completely different definition. Signed-off-by:
Martin Storsjö <martin@martin.st>
-
Martin Storsjö authored
The only case where RTP_FLAG_KEY actually is needed is in RDT, where such a flag needs to be passed via the rtpdec parse function's flags parameter. Signed-off-by:
Martin Storsjö <martin@martin.st>
-
Martin Storsjö authored
Nothing in the framework nor in the rest of the depacketizer actually uses this flag - the chained demuxer sets the keyframe flag properly on demuxed packets already. Signed-off-by:
Martin Storsjö <martin@martin.st>
-
Luca Barbato authored
And provide a more informative message in case of failure. CC: libav-stable@libav.org
-
Vittorio Giovara authored
Although the specification mandates this bit to zero, it may happen that software tools incorrectly flip it to one, invalidating a possibly valid stream. Relax this restriction, by failing only when AV_EF_BITSTREAM is set. This behaviour is similar to aac decoders in Firefox and Quicktime. Signed-off-by:
Vittorio Giovara <vittorio.giovara@gmail.com>
-
Diego Biurrun authored
-