avformat/matroskaenc: Only change chapter ids if needed.
authorMichael Niedermayer <michaelni@gmx.at>
Fri, 19 Jul 2013 20:52:16 +0000 (22:52 +0200)
committerMichael Niedermayer <michaelni@gmx.at>
Fri, 19 Jul 2013 21:32:04 +0000 (23:32 +0200)
commit07704c61dd70daaa4c1a5dec7892f127881106b6
treebe7613b7906a99d9939d1c93c0d68394a2772b9e
parent122536e01a0a016a2a9751baa6d5678353ec191a
avformat/matroskaenc: Only change chapter ids if needed.

This also fixes the case where negative chapter ids where input
And fixes the case where remuxing from mkv changed chapter ids

Found-by: Luca Barbato
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
libavformat/matroskaenc.c