ffmpeg/doc
Andreas Rheinhardt 06f108907d avformat/matroskaenc: Don't fail if reserved Cues space doesn't suffice
When the user opted to write the Cues at the beginning, the Cues were
simply written without checking in advance whether enough space has been
reserved for them. If it wasn't enough, the data following the space
reserved for the Cues was simply overwritten, corrupting the file.

This commit changes this by checking whether enough space has been
reserved for the Cues before outputting anything. If it isn't enough,
no Cues will be output at all and the file will be finalized normally,
yet writing the trailer will nevertheless return an error to notify
the user that his wish of having Cues at the front of the file hasn't
been fulfilled.

This change opens new usecases for this option: It is now safe to use
this option to e.g. record live streams or to use it when muxing the
output of an expensive encoding, because when the reserved space turns
out to be insufficient, one ends up with a file that just lacks Cues
but is otherwise fine.

Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@gmail.com>
2020-04-02 19:22:51 +02:00
..
doxy
examples examples/avio_dir_cmd: drop support for move/delete operations 2020-03-16 09:23:37 +01:00
.gitignore
APIchanges avformat/avformat: Update av_read_frame() documentation 2020-03-29 03:58:30 +02:00
Doxyfile
Makefile
authors.texi
bitstream_filters.texi doc/bitstream_filters: Fix copy an paste typo 2019-11-05 21:21:32 +01:00
bootstrap.min.css
build_system.txt tools: add a fuzzer tool for bitstream filters 2019-12-05 20:49:15 -03:00
codecs.texi avcodec: add an AVCodecContext flag to export PRFT side data on demand 2020-02-22 23:19:07 -03:00
decoders.texi avcodec/libzvbi-teletextdec: add option to set default G0 character set 2020-02-24 00:14:21 +01:00
default.css
demuxers.texi doc/demuxers: update mov section 2020-03-06 11:05:30 +05:30
developer.texi doc/developer.texi: Add variadic macros to allowed C language features 2020-03-26 19:29:54 +01:00
devices.texi
doxy-wrapper.sh
encoders.texi avcodec/libvpxenc: add a way to explicitly set temporal layer id 2020-02-11 11:55:36 -08:00
errno.txt
faq.texi
fate.texi doc/fate: Document how to request samples upload access 2019-08-09 01:33:49 +02:00
fate_config.sh.template
ffmpeg-bitstream-filters.texi
ffmpeg-codecs.texi
ffmpeg-devices.texi
ffmpeg-filters.texi
ffmpeg-formats.texi
ffmpeg-protocols.texi
ffmpeg-resampler.texi
ffmpeg-scaler.texi
ffmpeg-utils.texi
ffmpeg.texi doc/ffmpeg: Document device selection for Vulkan 2020-02-09 20:36:45 +00:00
ffmpeg.txt
ffplay.texi ffplay: added option always on top for video window 2019-05-20 17:51:43 -03:00
ffprobe.texi
ffprobe.xsd fftools/ffprobe: Add S12M Timecode output as side data (such as SEI TC) 2019-05-27 00:28:34 +02:00
fftools-common-opts.texi avutil/log: drop support for NO_COLOR environment variable 2020-02-09 20:31:44 +01:00
filter_design.txt
filters.texi avfilter/vf_v360: add lagrange9 interpolation 2020-04-02 12:25:37 +02:00
formats.texi avformat: Add max_probe_packets option 2019-11-03 11:52:32 +01:00
general.texi doc/general: Fix entry for AMQP 2020-03-19 20:06:03 +01:00
git-howto.texi
indevs.texi avdevice/decklink: deprecate the -list_devices option 2020-01-03 18:13:22 +01:00
issue_tracker.txt
lexicon
libav-merge.txt
libavcodec.texi
libavdevice.texi
libavfilter.texi
libavformat.texi
libavutil.texi
libswresample.texi
libswscale.texi
mailing-list-faq.texi doc/mailing-list-faq: auto unsubscribe due to DMARC 2019-04-20 13:55:39 -08:00
metadata.texi
mips.txt
multithreading.txt
muxers.texi avformat/matroskaenc: Don't fail if reserved Cues space doesn't suffice 2020-04-02 19:22:51 +02:00
nut.texi
optimization.txt
outdevs.texi doc/outdevs: Mention "sdl2" alias for "sdl". 2020-01-26 13:15:07 +01:00
patchwork
platform.texi
print_options.c
protocols.texi avformat/libzmq: Make default pkt_size value consistent with amqp 2020-03-09 22:07:18 +01:00
rate_distortion.txt
resampler.texi
scaler.texi doc/swscaler: explain default Lanczos parameter 2019-05-27 21:32:33 +05:30
snow.txt
style.min.css
swresample.txt
swscale.txt
t2h.init
t2h.pm
tablegen.txt
texi2pod.pl
texidep.pl
undefined.txt
utils.texi doc/utils: add hexadecagonal channel layout 2019-10-19 13:00:36 +05:30
writing_filters.txt doc/writing_filters: Use ff_filter_get_nb_threads() get number of threads 2019-05-22 17:43:41 +08:00