truehd_core: Return error in case of error
authorAndreas Rheinhardt <andreas.rheinhardt@gmail.com>
Sat, 6 Jul 2019 14:18:01 +0000 (16:18 +0200)
committerPaul B Mahol <onemda@gmail.com>
Tue, 9 Jul 2019 11:23:10 +0000 (13:23 +0200)
commit610460a397b15993a6f469b2c50fe7a3bd4ff0a1
treeb97a24c0bd07e50c97001318c587016248a01dc5
parentcbe23e40ae9120f6d5bc444b9b9970e67cbfdcc0
truehd_core: Return error in case of error

Several checks (e.g. when the size of the input packet is too small)
simply used "goto fail", but didn't set the return value appropriately
for an error.

Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@gmail.com>
libavcodec/truehd_core_bsf.c