X-Git-Url: http://git.videolan.org/?p=ffmpeg.git;a=blobdiff_plain;f=libavformat%2Frtpdec_mpegts.c;h=b3ef261336cb9c6848b43a3e47856db4b94e63a1;hp=e2c8977f7d6d7e05113c2f5fd5686de072ca4abb;hb=7abd35a1ffaecfd79fa07b801621ee11ab595c43;hpb=2cca96e670e78bb19eb0232469d5a27245e18c02 diff --git a/libavformat/rtpdec_mpegts.c b/libavformat/rtpdec_mpegts.c index e2c8977f7d..b3ef261336 100644 --- a/libavformat/rtpdec_mpegts.c +++ b/libavformat/rtpdec_mpegts.c @@ -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)