diff options
author | Andreas Rheinhardt <andreas.rheinhardt@outlook.com> | 2021-11-09 22:21:37 +0100 |
---|---|---|
committer | Andreas Rheinhardt <andreas.rheinhardt@outlook.com> | 2021-11-18 04:53:07 +0100 |
commit | 96fe44e2e8e4c77e66cbb0834d340719741e964c (patch) | |
tree | c89e0a3abe7673e719911e293d095e3f586cb0fd /libavformat/mvi.c | |
parent | 7596b6530d5f00ea0510b5c698714c76369811e7 (diff) | |
download | ffmpeg-96fe44e2e8e4c77e66cbb0834d340719741e964c.tar.gz |
avformat/hlsenc: Only write something if there is something to write
This is especially important in case avio_write() would be switched
to an unsigned type like size_t, then a potential error from avio_read()
(with negative return value) would no longer be handled gracefully by
avio_write().
Reviewed-by: Steven Liu <lq@chinaffmpeg.org>
Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>
Diffstat (limited to 'libavformat/mvi.c')
0 files changed, 0 insertions, 0 deletions