This callback is optional and should therefore only be set if it actually does something.
Unified · Split
| @@ -353,11 +353,6 @@ static int cbs_vp8_assemble_fragment(CodedBitstreamContext *ctx, · 352 unmodified lines | ||
| 353 | 353 | return AVERROR_PATCHWELCOME; |
| 354 | 354 | } |
| 355 | 355 | |
| 356 | −static void cbs_vp8_flush(CodedBitstreamContext *ctx) | |
| 357 | −{ | |
| 358 | − // Do nothing. | |
| 359 | −} | |
| 360 | − | |
| 361 | 356 | static const CodedBitstreamUnitTypeDescriptor cbs_vp8_unit_types[] = { |
| 362 | 357 | CBS_UNIT_TYPE_INTERNAL_REF(0, VP8RawFrame, data), |
| 363 | 358 | CBS_UNIT_TYPE_END_OF_LIST, |
| @@ -374,7 +369,5 @@ const CodedBitstreamType ff_cbs_type_vp8 = { · 10 unmodified lines | ||
| 374 | 369 | .read_unit = &cbs_vp8_read_unit, |
| 375 | 370 | .write_unit = &cbs_vp8_write_unit, |
| 376 | 371 | |
| 377 | − .flush = &cbs_vp8_flush, | |
| 378 | − | |
| 379 | 372 | .assemble_fragment = &cbs_vp8_assemble_fragment, |
| 380 | 373 | }; |