| 623 | } |
| 624 | |
| 625 | static hb_buffer_t * read_buf(hb_scan_t * data, hb_stream_t * stream) |
| 626 | { |
| 627 | if (data->bd) |
| 628 | { |
| 629 | return hb_bd_read(data->bd); |
| 630 | } |
| 631 | else if (data->dvd) |
| 632 | { |
| 633 | return hb_dvd_read(data->dvd); |
| 634 | } |
| 635 | else if (stream) |
| 636 | { |
| 637 | return hb_stream_read(stream); |
| 638 | } |
| 639 | |
| 640 | // This shouldn't happen |
| 641 | return NULL; |
| 642 | } |
| 643 | |
| 644 | /*********************************************************************** |
| 645 | * DecodePreviews |
no test coverage detected