]> git.sesse.net Git - ffmpeg/blobdiff - libavcodec/mjpeg_parser.c
aarch64: vp9dsp: Fix vertical alignment in the init file
[ffmpeg] / libavcodec / mjpeg_parser.c
index b5282f17c4e1d05c05585333cc01ff86459fb695..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,9 +97,8 @@ static int jpeg_parse(AVCodecParserContext *s,
 
 
 AVCodecParser ff_mjpeg_parser = {
-    { CODEC_ID_MJPEG },
-    sizeof(ParseContext),
-    NULL,
-    jpeg_parse,
-    ff_parse_close,
+    .codec_ids      = { AV_CODEC_ID_MJPEG },
+    .priv_data_size = sizeof(ParseContext),
+    .parser_parse   = jpeg_parse,
+    .parser_close   = ff_parse_close,
 };