diff --git a/libavformat/avc.c b/libavformat/avc.c index 09f31a15fe..cd15ca7ce7 100644 --- a/libavformat/avc.c +++ b/libavformat/avc.c @@ -79,7 +79,7 @@ int ff_avc_parse_nal_units(ByteIOContext *pb, const uint8_t *buf_in, int size) return size; } -static int ff_avc_parse_nal_units_buf(const uint8_t *buf_in, uint8_t **buf, int *size) +int ff_avc_parse_nal_units_buf(const uint8_t *buf_in, uint8_t **buf, int *size) { ByteIOContext *pb; int ret = url_open_dyn_buf(&pb); diff --git a/libavformat/avc.h b/libavformat/avc.h index 2ea938ca16..364c69f629 100644 --- a/libavformat/avc.h +++ b/libavformat/avc.h @@ -25,7 +25,8 @@ #include #include "avio.h" -int ff_avc_parse_nal_units(const uint8_t *buf_in, uint8_t **buf, int *size); +int ff_avc_parse_nal_units(const uint8_t *buf_in, uint8_t **buf, int size); +int ff_avc_parse_nal_units_buf(const uint8_t *buf_in, uint8_t **buf, int *size); int ff_isom_write_avcc(ByteIOContext *pb, const uint8_t *data, int len); const uint8_t *ff_avc_find_startcode(const uint8_t *p, const uint8_t *end);