git.videolan.org
/
ffmpeg.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
avformat: Add av_cold attributes to init functions missing them
[ffmpeg.git]
/
libavformat
/
rtpdec_mpegts.c
diff --git
a/libavformat/rtpdec_mpegts.c
b/libavformat/rtpdec_mpegts.c
index
e2c8977
..
b3ef261
100644
(file)
--- 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
*/
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
*/
+#include "libavutil/attributes.h"
#include "mpegts.h"
#include "rtpdec_formats.h"
#include "mpegts.h"
#include "rtpdec_formats.h"
@@
-43,7
+44,8
@@
static void mpegts_free_context(PayloadContext *data)
av_free(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)
{
data->ts = ff_mpegts_parse_open(ctx);
if (!data->ts)