libavutil/channel_layout: Check strtol*() for failure
authorMichael Niedermayer <michael@niedermayer.cc>
Thu, 5 Nov 2015 18:24:33 +0000 (19:24 +0100)
committerMichael Niedermayer <michael@niedermayer.cc>
Thu, 5 Nov 2015 19:47:15 +0000 (20:47 +0100)
commit1290037626007c0ca3ced286dc048f4c1cf7649a
tree15d0d9bbeffa5f71c1a39b1d25a0dcca27876876
parentc7174d5204bf062f8017513ca4b64800ff0cdc5e
libavutil/channel_layout: Check strtol*() for failure

Fixes assertion failure
Fixes: 4f5814bb15d2dda6fc18ef9791b13816/signal_sigabrt_7ffff6ae7cc9_65_7209d160d168b76f311be6cd64a548eb.wv

Found-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
(cherry picked from commit c9bfd6a8c35a2102e730aca12f6e09d1627f76b3)

Conflicts:

libavutil/channel_layout.c
libavutil/channel_layout.c