]> git.sesse.net Git - ffmpeg/blobdiff - libavcodec/cavs_parser.c
lavc: mark the old audio/video encoding API as deprecated
[ffmpeg] / libavcodec / cavs_parser.c
index 07464c39b2952a73a192abc99eaf4b34ec051418..84f647c19618068040667d595942ba994a17829f 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 cavs_find_frame_end(ParseContext *pc, const uint8_t *buf,
@@ -98,9 +98,9 @@ static int cavsvideo_parse(AVCodecParserContext *s,
 }
 
 AVCodecParser ff_cavsvideo_parser = {
-    .codec_ids      = { CODEC_ID_CAVS },
-    .priv_data_size = sizeof(ParseContext1),
+    .codec_ids      = { AV_CODEC_ID_CAVS },
+    .priv_data_size = sizeof(ParseContext),
     .parser_parse   = cavsvideo_parse,
-    .parser_close   = ff_parse1_close,
+    .parser_close   = ff_parse_close,
     .split          = ff_mpeg4video_split,
 };