git.videolan.org
/
ffmpeg.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(from parent 1:
f70f71d
)
cbs_h2645: Return error if writing fails
author
Mark Thompson
<sw@jkqxz.net>
Mon, 14 Aug 2017 15:46:32 +0000
(16:46 +0100)
committer
Mark Thompson
<sw@jkqxz.net>
Sun, 20 Aug 2017 12:59:17 +0000
(13:59 +0100)
libavcodec/cbs_h2645.c
patch
|
blob
|
history
diff --git
a/libavcodec/cbs_h2645.c
b/libavcodec/cbs_h2645.c
index
23556f4
..
4d8ba99
100644
(file)
--- a/
libavcodec/cbs_h2645.c
+++ b/
libavcodec/cbs_h2645.c
@@
-1244,6
+1244,11
@@
static int cbs_h2645_write_nal_unit(CodedBitstreamContext *ctx,
// Overflow but we didn't notice.
av_assert0(put_bits_count(&pbc) <= 8 * priv->write_buffer_size);
+ if (err < 0) {
+ // Write failed for some other reason.
+ return err;
+ }
+
if (put_bits_count(&pbc) % 8)
unit->data_bit_padding = 8 - put_bits_count(&pbc) % 8;
else