1
0

global_elements.cpp 535 B

1234567891011121314151617181920212223242526272829
  1. #include "global_elements.h"
  2. #include "read.h"
  3. uint64_t nsmkv::ReadGlobal(nsmkv::MKVReader *reader, uint64_t id, uint64_t size)
  4. {
  5. switch(id)
  6. {
  7. case mkv_void:
  8. #ifdef WA_VALIDATE
  9. printf("void (empty), size:%I64u\n", size);
  10. #endif
  11. reader->Skip(size);
  12. return size;
  13. default:
  14. #ifdef WA_VALIDATE
  15. printf("*** UNKNOWN ID *** ID:%I64x size:%I64u\n", id, size);
  16. #endif
  17. reader->Skip(size);
  18. return size;
  19. }
  20. }
  21. uint64_t nsmkv::SkipNode(nsmkv::MKVReader *reader, uint64_t id, uint64_t size)
  22. {
  23. reader->Skip(size);
  24. return size;
  25. }