avformat: Add av_cold attributes to init functions missing them
[ffmpeg.git] / libavformat / rtpdec_xiph.c
index 8bfe65d..2049e4f 100644 (file)
@@ -27,6 +27,7 @@
  * @author Josh Allmann <joshua.allmann@gmail.com>
  */
 
+#include "libavutil/attributes.h"
 #include "libavutil/avstring.h"
 #include "libavutil/base64.h"
 #include "libavcodec/bytestream.h"
@@ -70,8 +71,8 @@ static void xiph_free_context(PayloadContext * data)
     av_free(data);
 }
 
-static int xiph_vorbis_init(AVFormatContext *ctx, int st_index,
-                            PayloadContext *data)
+static av_cold int xiph_vorbis_init(AVFormatContext *ctx, int st_index,
+                                    PayloadContext *data)
 {
     if (st_index < 0)
         return 0;