- 27 Nov, 2014 3 commits
-
-
Martin Storsjö authored
This reverts commit b9d08c77. After taking MoveFileEx into use, we can replace files with renames on windows as well. Signed-off-by: Martin Storsjö <martin@martin.st>
-
Martin Storsjö authored
This allows getting the normal unix semantics, where a rename allows replacing an existing file. Based on a suggestion by Reimar Döffinger. Signed-off-by: Martin Storsjö <martin@martin.st>
-
Martin Storsjö authored
This doesn't add any dependency on library internals, since this only is a static inline function that gets built into each of the calling functions - this is only to reduce the code duplication. Signed-off-by: Martin Storsjö <martin@martin.st>
-
- 26 Nov, 2014 2 commits
-
-
Martin Storsjö authored
This allows setting the right fragment number if doing random-access writing of fragments, and also allows reading the current sequence number. Signed-off-by: Martin Storsjö <martin@martin.st>
-
Martin Storsjö authored
This allows creating a later mp4 fragment without sequentially writing the earlier ones before (when called from a segmenter). Normally when writing a fragmented mp4 file sequentially, the first timestamps of a fragment are adjusted to match the end of the previous fragment, to make sure the timestamp is the same, even if it is calculated as the sum of previous fragment durations. (And for the first packet in a file, the offset of the first packet is written using an edit list.) When writing an individual mp4 fragment discontinuously like this (with potentially writing the earlier fragments separately later), there's a risk of getting a gap in the timeline if the duration field of the last packet in the previous fragment doesn't match up with the start time of the next fragment. Using this requires setting -avoid_negative_ts make_non_negative (or -avoid_negative_ts 0). Signed-off-by: Martin Storsjö <martin@martin.st>
-
- 25 Nov, 2014 10 commits
-
-
Martin Storsjö authored
This fixes "make checkheaders". Signed-off-by: Martin Storsjö <martin@martin.st>
-
Michael Niedermayer authored
4775 decicycles -> 3688 decicycles
-
Michael Niedermayer authored
CC: libav-stable@libav.org Bug-Id: CID 1135770 / CID 1135771
-
Luca Barbato authored
As done for all the other codecs not calling it indirectly. CC: libav-stable@libav.org Bug-Id: CID 1135770 / CID 1135771
-
Michael Niedermayer authored
`is_intra` is a 6bits bitfield. CC: libav-stable@libav.org Bug-Id: CID 1194380 / CID 1194381 Signed-off-by: Luca Barbato <lu_zero@gentoo.org>
-
Luca Barbato authored
Keep the code as similar as possible across the codepaths to ease spotting it for factorization. Based on a patch from Michael Niedermayer <michaelni@gmx.at>.
-
Luca Barbato authored
The code currently set the information in at least 4 places, spare some pointless loops. Make the code in the loop a little uniform to make easier factorize it out later.
-
Michael Niedermayer authored
CC: libav-stable@libav.org Bug-Id: CID 1251347
-
Michael Niedermayer authored
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
-
Vittorio Giovara authored
CC: libav-stable@libav.org Bug-Id: CID 1245699 / CID 1245700
-
- 24 Nov, 2014 14 commits
-
-
Martin Storsjö authored
This makes sure that the internal utf8 path names are handled properly - the normal file handling functions assume path names are in the native codepage, which isn't utf8. This assumes that the tools outside of lavf don't use the mkdir definition. (The tools don't do the same reading of command line parameters as wchar either - they probably won't handle all possible unicode file parameters properly, but at least work more predictably if no utf8/wchar conversion is involved.) This is moved further down in os_support.h, since windows.h shouldn't be included before winsock2.h, while io.h needs to be included before the manual defines for lseek functions. Signed-off-by: Martin Storsjö <martin@martin.st>
-
Martin Storsjö authored
On windows, rename(2) will fail if the target file exists. On unix this trick is used to make sure that people reading the file either will get the full previous file, or the full new version of the file, but no intermediate version. Signed-off-by: Martin Storsjö <martin@martin.st>
-
Uwe L. Korn authored
Signed-off-by: Martin Storsjö <martin@martin.st>
-
Martin Storsjö authored
This makes sure that segments actually start at a keyframe (and makes sure we don't split segments twice in a row, with one segment consisting of only a handful of packets), when one stream uses b-frames while another one doesn't. Signed-off-by: Martin Storsjö <martin@martin.st>
-
Martin Storsjö authored
This fixes playback with dash.js, when the input is one separate mp4 file per track. Signed-off-by: Martin Storsjö <martin@martin.st>
-
Vittorio Giovara authored
Fixes a wordly warning from clang -Wsometimes-uninitialized.
-
Michael Niedermayer authored
Prevent NULL dereference. CC: libav-stable@libav.org Bug-Id: CID 703669 Signed-off-by: Vittorio Giovara <vittorio.giovara@gmail.com>
-
Vittorio Giovara authored
'ret' can only be used without initialization if s->height <= 0, which can only happen if avctx->height <= 0, which is validated elsewhere. Doesn't hurt to still initialize it though. CC: libav-stable@libav.org Bug-Id: CID 732296
-
Luca Barbato authored
At least 8 bytes are needed (Mono audio). Bug-Id: CID 741418 CC: libav-stable@libav.org
-
Vittorio Giovara authored
Bug-Id: CID 1238993
-
Vittorio Giovara authored
Also move the check in the case it is actually used. CC: libav-stable@libav.org Bug-Id: CID 1087090
-
Vittorio Giovara authored
-
Vittorio Giovara authored
CC: libav-stable@libav.org Bug-Id: CID 29261
-
Vittorio Giovara authored
CC: libav-stable@libav.org Bug-Id: CID 700556 / CID 700557 / CID 700558
-
- 22 Nov, 2014 3 commits
-
-
Martin Storsjö authored
Don't write any bitrate attribute if it isn't known. As long as one doesn't want automatic bitrate switching, playback can work just fine even if it isn't set. If strict standard compliance is requested, this is still considered an error, since the attribute is mandatory according to the spec. Based on a patch by Rodger Combs. Signed-off-by: Martin Storsjö <martin@martin.st>
-
Martin Storsjö authored
The same file already includes this header a few lines further above. Signed-off-by: Martin Storsjö <martin@martin.st>
-
Michael Niedermayer authored
Signed-off-by: Martin Storsjö <martin@martin.st>
-
- 21 Nov, 2014 8 commits
-
-
Luca Barbato authored
Signed-off-by: Luca Barbato <lu_zero@gentoo.org>
-
Vittorio Giovara authored
CC: libav-stable@libav.org Bug-Id: CID 700555
-
Luca Barbato authored
And use a macro to make apparent why the value. Bug-Id: CID 1108595
-
Luca Barbato authored
CC: libav-stable@libav.org Bug-Id: CID 1198262
-
Vittorio Giovara authored
CC: libav-stable@libav.org Bug-Id: CID 1250330 / CID 1250335
-
Vittorio Giovara authored
CC: libav-stable@libav.org Bug-Id: CID 1250334
-
Luca Barbato authored
CC: libav-stable@libav.org Bug-Id: CID 1087092
-
Martin Storsjö authored
This makes sure the default behaviour of using the internal encoder stays the same regardless if libtwolame is enabled or not (as for any external library). This fixes fate-lavf-mpg if libav is built with libtwolame enabled. CC: libav-stable@libav.org Signed-off-by: Vittorio Giovara <vittorio.giovara@gmail.com>
-