History

h264dec: make ff_h264_decode_init() static

It is not called from outside h264dec.c anymore.

Anton Khirnov committed 9 years ago

Commit f1af37b1 parent e7de05f2 files · +2 −3Browse files

Unified · Split

2 files
  1. libavcodec/h264dec.c +2 −2
  2. libavcodec/h264dec.h +0 −1
libavcodec/h264dec.c+2−2
@@ -361,7 +361,7 @@ static av_cold int h264_decode_end(AVCodecContext *avctx) · 360 unmodified lines
361361
362362 static AVOnce h264_vlc_init = AV_ONCE_INIT;
363363
364−av_cold int ff_h264_decode_init(AVCodecContext *avctx)
364+static av_cold int h264_decode_init(AVCodecContext *avctx)
365365 {
366366 H264Context *h = avctx->priv_data;
367367 int ret;
@@ -795,7 +795,7 @@ AVCodec ff_h264_decoder = { · 427 unmodified lines
795795 .type = AVMEDIA_TYPE_VIDEO,
796796 .id = AV_CODEC_ID_H264,
797797 .priv_data_size = sizeof(H264Context),
798− .init = ff_h264_decode_init,
798+ .init = h264_decode_init,
799799 .close = h264_decode_end,
800800 .decode = h264_decode_frame,
801801 .capabilities = /*AV_CODEC_CAP_DRAW_HORIZ_BAND |*/ AV_CODEC_CAP_DR1 |
libavcodec/h264dec.h+0−1
@@ -553,7 +553,6 @@ int ff_h264_decode_ref_pic_marking(H264SliceContext *sl, GetBitContext *gb, · 552 unmodified lines
553553 const H2645NAL *nal, void *logctx);
554554
555555 void ff_h264_hl_decode_mb(const H264Context *h, H264SliceContext *sl);
556−int ff_h264_decode_init(AVCodecContext *avctx);
557556 void ff_h264_decode_init_vlc(void);
558557
559558 /**

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t