Unified · Split
| @@ -1218,7 +1218,7 @@ static int parse_feedback_units(AVCodecContext *avctx, · 1217 unmodified lines | ||
| 1218 | 1218 | if (err < 0) { |
| 1219 | 1219 | av_log(avctx, AV_LOG_ERROR, "Unable to parse feedback units, bad drivers: %s\n", |
| 1220 | 1220 | av_err2str(err)); |
| 1221 | − return err; | |
| 1221 | + goto fail; | |
| 1222 | 1222 | } |
| 1223 | 1223 | |
| 1224 | 1224 | if (sps_override) { |
| @@ -1246,10 +1246,12 @@ static int parse_feedback_units(AVCodecContext *avctx, · 21 unmodified lines | ||
| 1246 | 1246 | } |
| 1247 | 1247 | } |
| 1248 | 1248 | |
| 1249 | + err = 0; | |
| 1250 | +fail: | |
| 1249 | 1251 | ff_cbs_fragment_free(&au); |
| 1250 | 1252 | ff_cbs_close(&cbs); |
| 1251 | 1253 | |
| 1252 | − return 0; | |
| 1254 | + return err; | |
| 1253 | 1255 | } |
| 1254 | 1256 | |
| 1255 | 1257 | static int init_base_units(AVCodecContext *avctx) |