Merge commit '99cb833fc2d9874c62fffbcd3347fae660de0fe5'

* commit '99cb833fc2d9874c62fffbcd3347fae660de0fe5':
  sgi: Correctly propagate meaningful error values

Merged-by: Hendrik Leppkes <h.leppkes@gmail.com>
This commit is contained in:
Hendrik Leppkes 2015-11-29 16:04:46 +01:00
commit 2876569395
1 changed files with 1 additions and 1 deletions

View File

@ -207,7 +207,7 @@ FF_ENABLE_DEPRECATION_WARNINGS
bytes_per_channel); bytes_per_channel);
if (length < 1) { if (length < 1) {
av_free(encode_buf); av_free(encode_buf);
return -1; return AVERROR_INVALIDDATA;
} }
bytestream2_put_be32(&tablen_pcb, length); bytestream2_put_be32(&tablen_pcb, length);