sipr: fall back to setting mode based on bit_rate.
authorReimar Döffinger <Reimar.Doeffinger@gmx.de>
Thu, 5 Jan 2012 20:01:56 +0000 (21:01 +0100)
committerReimar Döffinger <Reimar.Doeffinger@gmx.de>
Thu, 5 Jan 2012 21:24:51 +0000 (22:24 +0100)
commit1d0d63052b82c76e10c45cd38cdd27677de72e81
treef611996ed1966bbb6964d679ba19f74bf20567fd
parent96fc1f07332e58faf23d36263d3581620771fac6
sipr: fall back to setting mode based on bit_rate.

Not all applications (e.g. MPlayer) set block_align, and
when using a different demuxer it might not even be
easily available.
So fall back to selecting mode based on bit rate as before
if block_align has not useful value.
It can't be worse than failing to decode completely.

Signed-off-by: Reimar Döffinger <Reimar.Doeffinger@gmx.de>
libavcodec/sipr.c