git.videolan.org
/
ffmpeg.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (from parent 1:
2cca96e
)
avformat: Add av_cold attributes to init functions missing them
author
Diego Biurrun
<diego@biurrun.de>
Thu, 18 Apr 2013 13:54:26 +0000
(15:54 +0200)
committer
Diego Biurrun
<diego@biurrun.de>
Sun, 5 May 2013 16:33:04 +0000
(18:33 +0200)
libavformat/g723_1.c
patch
|
blob
|
history
libavformat/mpegenc.c
patch
|
blob
|
history
libavformat/rtpdec_g726.c
patch
|
blob
|
history
libavformat/rtpdec_h263.c
patch
|
blob
|
history
libavformat/rtpdec_h263_rfc2190.c
patch
|
blob
|
history
libavformat/rtpdec_h264.c
patch
|
blob
|
history
libavformat/rtpdec_mpeg12.c
patch
|
blob
|
history
libavformat/rtpdec_mpeg4.c
patch
|
blob
|
history
libavformat/rtpdec_mpegts.c
patch
|
blob
|
history
libavformat/rtpdec_xiph.c
patch
|
blob
|
history
diff --git
a/libavformat/g723_1.c
b/libavformat/g723_1.c
index
0b92702
..
b67c07c
100644
(file)
--- a/
libavformat/g723_1.c
+++ b/
libavformat/g723_1.c
@@
-24,13
+24,14
@@
* G.723.1 demuxer
*/
* G.723.1 demuxer
*/
+#include "libavutil/attributes.h"
#include "libavutil/channel_layout.h"
#include "avformat.h"
#include "internal.h"
static const uint8_t frame_size[4] = { 24, 20, 4, 1 };
#include "libavutil/channel_layout.h"
#include "avformat.h"
#include "internal.h"
static const uint8_t frame_size[4] = { 24, 20, 4, 1 };
-static int g723_1_init(AVFormatContext *s)
+static
av_cold
int g723_1_init(AVFormatContext *s)
{
AVStream *st;
{
AVStream *st;
diff --git
a/libavformat/mpegenc.c
b/libavformat/mpegenc.c
index
4f7bde8
..
85a12d6
100644
(file)
--- a/
libavformat/mpegenc.c
+++ b/
libavformat/mpegenc.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 "libavutil/fifo.h"
#include "libavutil/log.h"
#include "libavutil/mathematics.h"
#include "libavutil/fifo.h"
#include "libavutil/log.h"
#include "libavutil/mathematics.h"
@@
-292,7
+293,7
@@
static int get_system_header_size(AVFormatContext *ctx)
return buf_index;
}
return buf_index;
}
-static int mpeg_mux_init(AVFormatContext *ctx)
+static
av_cold
int mpeg_mux_init(AVFormatContext *ctx)
{
MpegMuxContext *s = ctx->priv_data;
int bitrate, i, mpa_id, mpv_id, mps_id, ac3_id, dts_id, lpcm_id, j;
{
MpegMuxContext *s = ctx->priv_data;
int bitrate, i, mpa_id, mpv_id, mps_id, ac3_id, dts_id, lpcm_id, j;
diff --git
a/libavformat/rtpdec_g726.c
b/libavformat/rtpdec_g726.c
index
adb4ab3
..
7b3f6cb
100644
(file)
--- a/
libavformat/rtpdec_g726.c
+++ b/
libavformat/rtpdec_g726.c
@@
-18,11
+18,13
@@
* 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 "avformat.h"
#include "rtpdec_formats.h"
#define RTP_G726_HANDLER(bitrate) \
#include "avformat.h"
#include "rtpdec_formats.h"
#define RTP_G726_HANDLER(bitrate) \
-static int g726_ ## bitrate ##_init(AVFormatContext *s, int st_index, PayloadContext *data) \
+static av_cold int g726_ ## bitrate ##_init(AVFormatContext *s, int st_index, \
+ PayloadContext *data) \
{ \
AVStream *stream = s->streams[st_index]; \
AVCodecContext *codec = stream->codec; \
{ \
AVStream *stream = s->streams[st_index]; \
AVCodecContext *codec = stream->codec; \
diff --git
a/libavformat/rtpdec_h263.c
b/libavformat/rtpdec_h263.c
index
4b3443b
..
b371491
100644
(file)
--- a/
libavformat/rtpdec_h263.c
+++ b/
libavformat/rtpdec_h263.c
@@
-21,9
+21,11
@@
#include "avformat.h"
#include "rtpdec_formats.h"
#include "avformat.h"
#include "rtpdec_formats.h"
+#include "libavutil/attributes.h"
#include "libavutil/intreadwrite.h"
#include "libavutil/intreadwrite.h"
-static int h263_init(AVFormatContext *ctx, int st_index, PayloadContext *data)
+static av_cold int h263_init(AVFormatContext *ctx, int st_index,
+ PayloadContext *data)
{
if (st_index < 0)
return 0;
{
if (st_index < 0)
return 0;
diff --git
a/libavformat/rtpdec_h263_rfc2190.c
b/libavformat/rtpdec_h263_rfc2190.c
index
4b6e996
..
116db75
100644
(file)
--- a/
libavformat/rtpdec_h263_rfc2190.c
+++ b/
libavformat/rtpdec_h263_rfc2190.c
@@
-27,6
+27,7
@@
#include "avformat.h"
#include "rtpdec_formats.h"
#include "avformat.h"
#include "rtpdec_formats.h"
+#include "libavutil/attributes.h"
#include "libavutil/intreadwrite.h"
#include "libavcodec/get_bits.h"
#include "libavutil/intreadwrite.h"
#include "libavcodec/get_bits.h"
@@
-55,7
+56,7
@@
static void h263_free_context(PayloadContext *data)
av_free(data);
}
av_free(data);
}
-static int h263_init(AVFormatContext *ctx, int st_index, PayloadContext *data)
+static
av_cold
int h263_init(AVFormatContext *ctx, int st_index, PayloadContext *data)
{
if (st_index < 0)
return 0;
{
if (st_index < 0)
return 0;
diff --git
a/libavformat/rtpdec_h264.c
b/libavformat/rtpdec_h264.c
index
d619e60
..
5e0169b
100644
(file)
--- a/
libavformat/rtpdec_h264.c
+++ b/
libavformat/rtpdec_h264.c
@@
-33,6
+33,7
@@
* FU-B packet types)
*/
* FU-B packet types)
*/
+#include "libavutil/attributes.h"
#include "libavutil/base64.h"
#include "libavutil/avstring.h"
#include "libavcodec/get_bits.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);
}
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;
{
if (st_index < 0)
return 0;
diff --git
a/libavformat/rtpdec_mpeg12.c
b/libavformat/rtpdec_mpeg12.c
index
4dd98fb
..
b059fcf
100644
(file)
--- a/
libavformat/rtpdec_mpeg12.c
+++ b/
libavformat/rtpdec_mpeg12.c
@@
-19,10
+19,11
@@
* 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 "
rtpdec_format
s.h"
+#include "
libavutil/attribute
s.h"
#include "libavutil/intreadwrite.h"
#include "libavutil/intreadwrite.h"
+#include "rtpdec_formats.h"
-static int mpeg_init(AVFormatContext *ctx, int st_index, PayloadContext *data)
+static
av_cold
int mpeg_init(AVFormatContext *ctx, int st_index, PayloadContext *data)
{
if (st_index < 0)
return 0;
{
if (st_index < 0)
return 0;
diff --git
a/libavformat/rtpdec_mpeg4.c
b/libavformat/rtpdec_mpeg4.c
index
c2cedcc
..
bec5c7d
100644
(file)
--- a/
libavformat/rtpdec_mpeg4.c
+++ b/
libavformat/rtpdec_mpeg4.c
@@
-29,6
+29,7
@@
#include "rtpdec_formats.h"
#include "internal.h"
#include "rtpdec_formats.h"
#include "internal.h"
+#include "libavutil/attributes.h"
#include "libavutil/avstring.h"
#include "libavcodec/get_bits.h"
#include "libavutil/avstring.h"
#include "libavcodec/get_bits.h"
@@
-252,7
+253,8
@@
static int parse_sdp_line(AVFormatContext *s, int st_index,
return 0;
}
return 0;
}
-static int init_video(AVFormatContext *s, int st_index, PayloadContext *data)
+static av_cold int init_video(AVFormatContext *s, int st_index,
+ PayloadContext *data)
{
if (st_index < 0)
return 0;
{
if (st_index < 0)
return 0;
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)
diff --git
a/libavformat/rtpdec_xiph.c
b/libavformat/rtpdec_xiph.c
index
8bfe65d
..
2049e4f
100644
(file)
--- a/
libavformat/rtpdec_xiph.c
+++ b/
libavformat/rtpdec_xiph.c
@@
-27,6
+27,7
@@
* @author Josh Allmann <joshua.allmann@gmail.com>
*/
* @author Josh Allmann <joshua.allmann@gmail.com>
*/
+#include "libavutil/attributes.h"
#include "libavutil/avstring.h"
#include "libavutil/base64.h"
#include "libavcodec/bytestream.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);
}
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;
{
if (st_index < 0)
return 0;