/**
- * finds the end of the current frame in the bitstream.
+ * Find the end of the current frame in the bitstream.
* @return the position of the first byte of the next frame, or -1
*/
static int find_frame_end(ParseContext *pc, const uint8_t *buf, int buf_size){
AVCodecParser ff_mjpeg_parser = {
- .codec_ids = { CODEC_ID_MJPEG },
+ .codec_ids = { AV_CODEC_ID_MJPEG },
.priv_data_size = sizeof(ParseContext),
.parser_parse = jpeg_parse,
.parser_close = ff_parse_close,