diff --git a/libavformat/rtpenc_h264.c b/libavformat/rtpenc_h264.c index be9cb2c774..0f8850ee77 100644 --- a/libavformat/rtpenc_h264.c +++ b/libavformat/rtpenc_h264.c @@ -29,14 +29,14 @@ #include "avc.h" #include "rtpenc.h" -static const uint8_t *avc_mp4_find_startcode(const uint8_t *start, const uint8_t *end, int nal_lenght_size) +static const uint8_t *avc_mp4_find_startcode(const uint8_t *start, const uint8_t *end, int nal_length_size) { int res = 0; - if (end - start < nal_lenght_size) { + if (end - start < nal_length_size) { return NULL; } - while (nal_lenght_size--) { + while (nal_length_size--) { res = (res << 8) | *start++; }