diff --git a/libavcodec/h264.c b/libavcodec/h264.c index d56c29331ec9b09a25066a1e4a0be9ca1d7dcfe6..25417f7c4acc66e058f9f461bfe806612034995a 100644 --- a/libavcodec/h264.c +++ b/libavcodec/h264.c @@ -233,7 +233,11 @@ nsc: return dst; } -int ff_h264_decode_rbsp_trailing(H264Context *h, const uint8_t *src){ +/** + * Identify the exact end of the bitstream + * @return the length of the trailing, or 0 if damaged + */ +static int ff_h264_decode_rbsp_trailing(H264Context *h, const uint8_t *src){ int v= *src; int r; diff --git a/libavcodec/h264.h b/libavcodec/h264.h index 17fd680369e65ca288b50beddf7629ab3ad71532..f4f9b2573916c00eedb14d2e9b5cc9220829c76e 100644 --- a/libavcodec/h264.h +++ b/libavcodec/h264.h @@ -625,12 +625,6 @@ int ff_h264_decode_picture_parameter_set(H264Context *h, int bit_length); */ const uint8_t *ff_h264_decode_nal(H264Context *h, const uint8_t *src, int *dst_length, int *consumed, int length); -/** - * Identify the exact end of the bitstream - * @return the length of the trailing, or 0 if damaged - */ -int ff_h264_decode_rbsp_trailing(H264Context *h, const uint8_t *src); - /** * Free any data that may have been allocated in the H264 context like SPS, PPS etc. */