avformat: Add av_cold attributes to init functions missing them
[ffmpeg.git] / libavformat / rtpdec_h264.c
index d619e60..5e0169b 100644 (file)
@@ -33,6 +33,7 @@
  *                        FU-B packet types)
  */
 
+#include "libavutil/attributes.h"
 #include "libavutil/base64.h"
 #include "libavutil/avstring.h"
 #include "libavcodec/get_bits.h"
@@ -338,7 +339,8 @@ static void h264_free_context(PayloadContext *data)
     av_free(data);
 }
 
-static int h264_init(AVFormatContext *s, int st_index, PayloadContext *data)
+static av_cold int h264_init(AVFormatContext *s, int st_index,
+                             PayloadContext *data)
 {
     if (st_index < 0)
         return 0;