aboutsummaryrefslogtreecommitdiffstats
path: root/avplay.c
diff options
context:
space:
mode:
authorwm4 <nfxjfg@googlemail.com>2015-05-14 19:23:57 +0200
committerVittorio Giovara <vittorio.giovara@gmail.com>2015-05-19 18:59:06 +0100
commit3efe0393e4f0eaa27bac8833edbd7d3cff4704e1 (patch)
tree5d26144d06d49429ce2031c45f56236d10b82a83 /avplay.c
parent7046bd9bc9ce04521edf453c9b603d84d69c7512 (diff)
downloadffmpeg-3efe0393e4f0eaa27bac8833edbd7d3cff4704e1.tar.gz
hevc: make avcodec_decode_video2() fail if get_format() fails
Personally, I need the decoder to back out if get_format() returns no usable pixel format. This didn't work because the error code was not propagated down the call chain. This in turn happened because the variable declaration removed in this patch shadowed the variable, whose value is returned at the end of the function. Consequently, failures of decode_nal_unit() were ignored in this place. Reviewed-by: Andreas Cadhalpun <andreas.cadhalpun@googlemail.com> Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
Diffstat (limited to 'avplay.c')
0 files changed, 0 insertions, 0 deletions