]> git.sesse.net Git - ffmpeg/blobdiff - libavcodec/mjpeg_parser.c
error_resilience: initialize prev_* variables
[ffmpeg] / libavcodec / mjpeg_parser.c
index daa65483cd8705a7f4ac823747e48c9d7e1ef495..ab654614eb3bc08e262f778e0574cd451f9f9cd1 100644 (file)
@@ -30,7 +30,7 @@
 
 
 /**
- * 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){
@@ -97,7 +97,7 @@ static int jpeg_parse(AVCodecParserContext *s,
 
 
 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,