mov_chan: Only set the channel_layout if setting it to a nonzero value
authorMartin Storsjö <martin@martin.st>
Fri, 7 Sep 2012 07:45:16 +0000 (10:45 +0300)
committerMartin Storsjö <martin@martin.st>
Fri, 7 Sep 2012 22:30:44 +0000 (01:30 +0300)
commit7b699d813681e4fad419ec63c96d595e98b2dbfa
tree657b004bec4559803a487f50a8967c1d6779e71c
parent5f72bc02f8ee7ccbdf779f560a11e9f228b7ac82
mov_chan: Only set the channel_layout if setting it to a nonzero value

If regularly parsing new chan atoms (as in rtpdec_qt), but the
chan atoms don't actually contain any channel layout, don't reset
the value that the caller has filled in (by guessing).

Signed-off-by: Martin Storsjö <martin@martin.st>
libavformat/mov_chan.c