avformat/utils: functions that add entries should not destroy the whole list on failure
authorMichael Niedermayer <michaelni@gmx.at>
Wed, 11 Sep 2013 10:13:44 +0000 (12:13 +0200)
committerMichael Niedermayer <michaelni@gmx.at>
Wed, 11 Sep 2013 10:21:21 +0000 (12:21 +0200)
commit8c9d6ee4f2ad84114cf65944d91157069825423e
tree406dd6025e3e623b693618db8f885c825b18887c
parent5ca39a0b899ae4542de8ed77b7a7f139e74d66ab
avformat/utils: functions that add entries should not destroy the whole list on failure

The caller does not expect this, and in case of adding new streams would then
not even be able to deallocate them anymore.

This reverts a hunk from "avformat: Use av_reallocp_array() where suitable"

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