| Commit message (Collapse) | Author | Age |
|
|
|
| |
Signed-off-by: Martin Storsjö <martin@martin.st>
|
|
|
|
|
|
|
| |
Add a comment to explain the code.
CC: libav-stable@libav.org
Bug-Id: CID 1194388
|
|
|
|
|
|
| |
CC: libav-stable@libav.org
Bug-Id: CID 1135767
Signed-off-by: Vittorio Giovara <vittorio.giovara@gmail.com>
|
|
|
|
|
| |
CC: libav-stable@libav.org
Bug-Id: CID 717453 / CID 717454 / CID 717915
|
|
|
|
|
|
|
| |
Makes coverity less confused and the code more readable.
CC: libav-stable@libav.org
Bug-Id: CID 751744
|
|
|
|
|
| |
CC: libav-stable@libav.org
Bug-Id: CID 608053
|
|
|
|
|
|
|
| |
Remove stray semicolon and share codepaths.
CC: libav-stable@libav.org
Bug-Id: CID 991857
|
|
|
|
| |
It is not supposed to be set by demuxers.
|
| |
|
|
|
|
|
| |
The reasoning is the same as for
0097cbea695e534fce39958ccd103af2fbf65831.
|
| |
|
|
|
|
|
|
| |
The only parameters needed by the demuxers are the sample rate and sample
count, which can be trivially extracted manually, without resorting to
an avpriv function.
|
|
|
|
|
|
|
| |
It will not be set unless the codec context is used as the encoding
context, which is discouraged. For MP2, av_get_audio_frame_duration()
will already set the frame size properly. For MP3, set the frame size
explicitly.
|
| |
|
| |
|
|
|
|
|
|
| |
It is required by (at least) the ogg demuxer.
Mark the current semi-public apriv API for removal.
|
|
|
|
| |
This is done in preparation for making it public.
|
|
|
|
|
|
| |
Currently, the API takes an external AVCodecContext, which is used only
for extradata and logging. This change will allow to it to work without
an AVCodecContext in the following commits.
|
|
|
|
|
|
|
|
|
|
| |
It is never an error if this method failed. If rt->live was
explicitly set to 0 (known to be a recorded file), print it
as a warning, otherwise print it as a debug message.
Based on a patch by Michael Niedermayer.
Signed-off-by: Martin Storsjö <martin@martin.st>
|
|
|
|
|
|
|
|
|
|
|
| |
The application will destroy the underlying hardware handles when
get_format() gets called again. Also this ensures the
deinitialization takes place if the get_format callback returns an
error.
Regression from 1c80c9d7ef809180042257200c7b5f6b81d0b0e2.
Signed-off-by: Luca Barbato <lu_zero@gentoo.org>
|
|
|
|
| |
Bug-Id: CID 732291
|
|
|
|
|
| |
CC: libav-stable@libav.org
Bug-Id: CID 732250
|
|
|
|
|
|
| |
CC: libav-stable@libav.org
Bug-Id: CID 1238802 / CID 1238793 / CID 1238785
CID 1238808 / CID 1238809
|
|
|
|
|
|
| |
CC: libav-stable@libav.org
Bug-Id: CID 717906 / CID 717907 / CID 717916 /
CID 717917 / CID 717919 / CID 732259
|
|
|
|
|
| |
CC: libav-stable@libav.org
Bug-Id: CID 732293 / CID 732294
|
|
|
|
|
|
| |
mb_type is initialized to 0 and never updated before the check.
Bug-Id: CID 1238782
|
|
|
|
| |
Bug-Id: CID 1238816
|
|
|
|
| |
Signed-off-by: Martin Storsjö <martin@martin.st>
|
|
|
|
|
|
| |
We deviate slightly from the iso specs for these files.
Signed-off-by: Martin Storsjö <martin@martin.st>
|
|
|
|
|
|
|
|
|
| |
The tfdt atom shouldn't be needed in those cases, we already
write tfxd atoms for ismv anyway, which is roughly equivalent.
This avoids having to declare the iso6 brand for ismv files.
Signed-off-by: Martin Storsjö <martin@martin.st>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
ISO/IEC 14496-12:2012/Cor 1:2013 is explicit about how this should be
handled. All zeros doesn't mean that the full file has got a zero
duration, only that the track samples described within the initial moov
have got zero duration. An all ones duration means an indeterminate
duration.
Keep writing a duration consisting of all ones for the ISM mode -
older windows media player versions won't play a file if this is
zero. (Newer windows media player versions play either version fine.)
Signed-off-by: Martin Storsjö <martin@martin.st>
|
|
|
|
|
|
|
|
|
|
|
|
| |
Similarly to the omit_tfhd_offset flag added in e7bf085b, this
avoids writing absolute byte positions to the file, making them
more easily streamable.
This is a new feature from 14496-12:2012, so application support
isn't necessarily too widespread yet (support for it in libav was
added in 20f95f21f in July 2014).
Signed-off-by: Martin Storsjö <martin@martin.st>
|
|
|
|
| |
Signed-off-by: Martin Storsjö <martin@martin.st>
|
|
|
|
|
| |
Signed-off-by: Luca Barbato <lu_zero@gentoo.org>
Signed-off-by: Martin Storsjö <martin@martin.st>
|
|
|
|
| |
Signed-off-by: Martin Storsjö <martin@martin.st>
|
|
|
|
|
|
|
|
| |
The custom IO flag actually never is set for muxers, only for
demuxers, so the check was pointless (unless a user intentionally
would set the flag to signal using custom IO).
Signed-off-by: Martin Storsjö <martin@martin.st>
|
|
|
|
|
|
|
|
|
|
| |
If one track doesn't have any samples within a moof, no traf/trun
is written for it. When the omit_tfhd_offset flag is set, none
of the tfhd atoms have any base_data_offset set, and the implicit
offset (end of previous track fragment data, or start of the moof
for the first trun) is used.
Signed-off-by: Martin Storsjö <martin@martin.st>
|
|
|
|
| |
Fixes a double free in case of av_packet_new_side_data() failure.
|
|
|
|
|
| |
CC: libav-stable@libav.org
Bug-Id: CID 703626
|
| |
|
| |
|
|
|
|
|
| |
CC: libav-stable@libav.org
Bug-Id: CID 732203 / CID 732204
|
|
|
|
|
|
|
| |
The code would have segfaulted before if oggstream were NULL.
CC: libav-stable@libav.org
Bug-Id: CID 732218
|
|
|
|
| |
xcb-utils are not needed anymore.
|
| |
|
|
|
|
|
|
|
| |
This is the same as the previous change, but for applications using the
old API (such as VLC 2.2).
Signed-off-by: Anton Khirnov <anton@khirnov.net>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
The H.264 Constrained Baseline Profile (CBP) is a subset of both the
Main Profile and the Baseline Profile. In principles, a hardware
decoder that supports either of those can decode CBP content. As it
happens, Main is supported by all VDPAU drivers, and Baseline is not.
So favor map CBP to MP for now. Hopefully in the future libvdpau will
offer an explicit choice for CBP.
This fixes bug 757.
Signed-off-by: Anton Khirnov <anton@khirnov.net>
|
|
|
|
|
|
| |
Makes coverity less confused and code more readable.
Bug-Id: CID 732262
|
|
|
|
|
| |
CC: libav-stable@libav.org
Bug-Id: CID 733777
|
|
|
|
|
| |
CC: libav-stable@libav.org
Bug-Id: CID 732246
|