There is no need to parse the header twice; doing so does nothing.
Unified · Split
| @@ -614,7 +614,6 @@ static int h261_decode_frame(AVCodecContext *avctx, AVFrame *pict, · 613 unmodified lines | ||
| 614 | 614 | |
| 615 | 615 | h->gob_start_code_skipped = 0; |
| 616 | 616 | |
| 617 | −retry: | |
| 618 | 617 | init_get_bits(&s->gb, buf, buf_size * 8); |
| 619 | 618 | |
| 620 | 619 | ret = h261_decode_picture_header(h); |
| @@ -636,8 +635,6 @@ retry: · 15 unmodified lines | ||
| 636 | 635 | ret = ff_set_dimensions(avctx, s->width, s->height); |
| 637 | 636 | if (ret < 0) |
| 638 | 637 | return ret; |
| 639 | − | |
| 640 | − goto retry; | |
| 641 | 638 | } |
| 642 | 639 | |
| 643 | 640 | if ((avctx->skip_frame >= AVDISCARD_NONREF && s->pict_type == AV_PICTURE_TYPE_B) || |