]> git.sesse.net Git - ffmpeg/blobdiff - libavcodec/mjpeg_parser.c
docs: remove extra sar entry for scale filter
[ffmpeg] / libavcodec / mjpeg_parser.c
index 38abc450137cdcac9ea984cb0c8f181d19608da6..40841c3b37f1d51ace3d99e28adb9b862347c01d 100644 (file)
@@ -34,7 +34,7 @@ typedef struct MJPEGParserContext{
 }MJPEGParserContext;
 
 /**
- * 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(MJPEGParserContext *m, const uint8_t *buf, int buf_size){
@@ -127,9 +127,8 @@ static int jpeg_parse(AVCodecParserContext *s,
 
 
 AVCodecParser ff_mjpeg_parser = {
-    { CODEC_ID_MJPEG },
-    sizeof(MJPEGParserContext),
-    NULL,
-    jpeg_parse,
-    ff_parse_close,
+    .codec_ids      = { CODEC_ID_MJPEG },
+    .priv_data_size = sizeof(MJPEGParserContext),
+    .parser_parse   = jpeg_parse,
+    .parser_close   = ff_parse_close,
 };