History

avcodec/cbs_vp8: Remove empty flush callback

This callback is optional and should therefore only be set if it actually does something.

Andreas Rheinhardt committed 2 years ago

Commit 4d86e641 parent e2f56f21 file · +0 −7Browse files

Showing the changes to libavcodec (1 of 1 file). Show all

Unified · Split

libavcodec/cbs_vp8.c+0−7
@@ -353,11 +353,6 @@ static int cbs_vp8_assemble_fragment(CodedBitstreamContext *ctx, · 352 unmodified lines
353353 return AVERROR_PATCHWELCOME;
354354 }
355355
356−static void cbs_vp8_flush(CodedBitstreamContext *ctx)
357−{
358− // Do nothing.
359−}
360−
361356 static const CodedBitstreamUnitTypeDescriptor cbs_vp8_unit_types[] = {
362357 CBS_UNIT_TYPE_INTERNAL_REF(0, VP8RawFrame, data),
363358 CBS_UNIT_TYPE_END_OF_LIST,
@@ -374,7 +369,5 @@ const CodedBitstreamType ff_cbs_type_vp8 = { · 10 unmodified lines
374369 .read_unit = &cbs_vp8_read_unit,
375370 .write_unit = &cbs_vp8_write_unit,
376371
377− .flush = &cbs_vp8_flush,
378−
379372 .assemble_fragment = &cbs_vp8_assemble_fragment,
380373 };

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t