avcodec/msrle: check return code for success before use
authorMichael Niedermayer <michaelni@gmx.at>
Sun, 6 Apr 2014 02:01:24 +0000 (04:01 +0200)
committerMichael Niedermayer <michaelni@gmx.at>
Mon, 23 Jun 2014 16:16:20 +0000 (18:16 +0200)
commita61998e4f4e1af2d10856ac99f0f8e7a3d56b4d6
tree4521bc34faead4348a7f1a1d5fa7383a2f04ca4f
parente5546d48717f59d630102ddbff413c06f6c0ea54
avcodec/msrle: check return code for success before use

The check is possibly redundant, but better to check for errors
that dont occur than to skip the check and crash

Fixes CID1197060

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
(cherry picked from commit 754f84663e8b3a88fa2e953b195d59230393fb8d)

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
libavcodec/msrle.c