MCPcopy Create free account
hub / github.com/Moddable-OpenSource/moddable / error_default

Function error_default

modules/data/mp3/libmad/decoder.c:296–314  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

294# endif
295
296static
297enum mad_flow error_default(void *data, struct mad_stream *stream,
298 struct mad_frame *frame)
299{
300 int *bad_last_frame = data;
301
302 switch (stream->error) {
303 case MAD_ERROR_BADCRC:
304 if (*bad_last_frame)
305 mad_frame_mute(frame);
306 else
307 *bad_last_frame = 1;
308
309 return MAD_FLOW_IGNORE;
310
311 default:
312 return MAD_FLOW_CONTINUE;
313 }
314}
315
316static
317int run_sync(struct mad_decoder *decoder)

Callers

nothing calls this directly

Calls 1

mad_frame_muteFunction · 0.85

Tested by

no test coverage detected