avformat: Add av_cold attributes to init functions missing them

This commit is contained in:
Diego Biurrun
2013-04-18 15:54:26 +02:00
parent 2cca96e670
commit 7abd35a1ff
10 changed files with 27 additions and 12 deletions
+3 -1
View File
@@ -19,6 +19,7 @@
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
*/
#include "libavutil/attributes.h"
#include "mpegts.h"
#include "rtpdec_formats.h"
@@ -43,7 +44,8 @@ static void mpegts_free_context(PayloadContext *data)
av_free(data);
}
static int mpegts_init(AVFormatContext *ctx, int st_index, PayloadContext *data)
static av_cold int mpegts_init(AVFormatContext *ctx, int st_index,
PayloadContext *data)
{
data->ts = ff_mpegts_parse_open(ctx);
if (!data->ts)