]> git.sesse.net Git - ffmpeg/blobdiff - libavcodec/avs2_parser.c
avfilter/buffersrc: postpone removal of sws_param
[ffmpeg] / libavcodec / avs2_parser.c
index 02af08f07963d07574533a5842ef3c1b449ff84d..b7d5d7774e0d9a7914bcf8e0c2783e77fcf9dd25 100644 (file)
@@ -34,9 +34,9 @@ static int avs2_find_frame_end(ParseContext *pc, const uint8_t *buf, int buf_siz
 
     if (!pic_found) {
         for (; cur < buf_size; ++cur) {
-            state = (state<<8) | buf[cur];
+            state = (state << 8) | buf[cur];
             if (AVS2_ISUNIT(buf[cur])){
-                ++cur;
+                cur++;
                 pic_found = 1;
                 break;
             }
@@ -46,7 +46,7 @@ static int avs2_find_frame_end(ParseContext *pc, const uint8_t *buf, int buf_siz
     if (pic_found) {
         if (!buf_size)
             return END_NOT_FOUND;
-        for (; cur < buf_size; ++cur) {
+        for (; cur < buf_size; cur++) {
             state = (state << 8) | buf[cur];
             if ((state & 0xFFFFFF00) == 0x100 && state > AVS2_SLICE_MAX_START_CODE) {
                 pc->frame_start_found = 0;
@@ -86,10 +86,9 @@ static int avs2_parse(AVCodecParserContext *s, AVCodecContext *avctx,
     return next;
 }
 
-AVCodecParser ff_avs2_parser = {
+const AVCodecParser ff_avs2_parser = {
     .codec_ids      = { AV_CODEC_ID_AVS2 },
     .priv_data_size = sizeof(ParseContext),
     .parser_parse   = avs2_parse,
     .parser_close   = ff_parse_close,
-    .split          = ff_mpeg4video_split,
 };