Unified · Split
| @@ -1065,7 +1065,7 @@ static int parse_feedback_units(AVCodecContext *avctx, · 1064 unmodified lines | ||
| 1065 | 1065 | if (err < 0) { |
| 1066 | 1066 | av_log(avctx, AV_LOG_ERROR, "Unable to parse feedback units, bad drivers: %s\n", |
| 1067 | 1067 | av_err2str(err)); |
| 1068 | − return err; | |
| 1068 | + goto fail; | |
| 1069 | 1069 | } |
| 1070 | 1070 | |
| 1071 | 1071 | /* If PPS has an override, just copy it entirely. */ |
| @@ -1079,10 +1079,12 @@ static int parse_feedback_units(AVCodecContext *avctx, · 7 unmodified lines | ||
| 1079 | 1079 | } |
| 1080 | 1080 | } |
| 1081 | 1081 | |
| 1082 | + err = 0; | |
| 1083 | +fail: | |
| 1082 | 1084 | ff_cbs_fragment_free(&au); |
| 1083 | 1085 | ff_cbs_close(&cbs); |
| 1084 | 1086 | |
| 1085 | − return 0; | |
| 1087 | + return err; | |
| 1086 | 1088 | } |
| 1087 | 1089 | |
| 1088 | 1090 | static int init_base_units(AVCodecContext *avctx) |