mirror of
https://github.com/nyanmisaka/ffmpeg-rockchip.git
synced 2026-04-24 08:36:01 +08:00
avformat: Add av_cold attributes to init functions missing them
This commit is contained in:
@@ -19,6 +19,7 @@
|
||||
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
|
||||
*/
|
||||
|
||||
#include "libavutil/attributes.h"
|
||||
#include "mpegts.h"
|
||||
#include "rtpdec_formats.h"
|
||||
|
||||
@@ -43,7 +44,8 @@ static void mpegts_free_context(PayloadContext *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)
|
||||
|
||||
Reference in New Issue
Block a user