aboutsummaryrefslogtreecommitdiffstats
path: root/libavformat/rtpdec_h264.c
diff options
context:
space:
mode:
authorDiego Biurrun <diego@biurrun.de>2013-04-18 15:54:26 +0200
committerDiego Biurrun <diego@biurrun.de>2013-05-05 18:33:04 +0200
commit7abd35a1ffaecfd79fa07b801621ee11ab595c43 (patch)
tree286dffd71af640c0517c6151ea5c063d19801122 /libavformat/rtpdec_h264.c
parent2cca96e670e78bb19eb0232469d5a27245e18c02 (diff)
downloadffmpeg-7abd35a1ffaecfd79fa07b801621ee11ab595c43.tar.gz
avformat: Add av_cold attributes to init functions missing them
Diffstat (limited to 'libavformat/rtpdec_h264.c')
-rw-r--r--libavformat/rtpdec_h264.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/libavformat/rtpdec_h264.c b/libavformat/rtpdec_h264.c
index d619e60dd9..5e0169bab3 100644
--- a/libavformat/rtpdec_h264.c
+++ b/libavformat/rtpdec_h264.c
@@ -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;