| 294 | # endif |
| 295 | |
| 296 | static |
| 297 | enum 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 | |
| 316 | static |
| 317 | int run_sync(struct mad_decoder *decoder) |
nothing calls this directly
no test coverage detected