Advertisement
Guest User

Untitled

a guest
Nov 13th, 2016
264
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.54 KB | None | 0 0
  1. #[macro_export]
  2. macro_rules! MKBETAG {
  3. ($a:expr, $b:expr, $c:expr, $d:expr) => (
  4. ($d as isize) |
  5. (($c as isize) << 8) |
  6. (($b as isize) << 16) |
  7. (($a as isize) << 24)
  8. )
  9. }
  10.  
  11. #[macro_export]
  12. macro_rules! MKTAG {
  13. ($a:expr, $b:expr, $c:expr, $d:expr) => (
  14. ($a as isize) |
  15. (($b as isize) << 8) |
  16. (($c as isize) << 16) |
  17. (($d as isize) << 24)
  18. )
  19. }
  20.  
  21. // List form: https://www.ffmpeg.org/doxygen/2.7/group__lavc__core.html
  22.  
  23. fn main() {
  24. println!("AV_CODEC_ID_HEVC = {}",MKBETAG!('H','2','6','5'));
  25. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement