comparison movenc.c @ 1673:a782462e2497 libavformat

rename BE/LE_8/16/32 to AV_RL/B_8/16/32
author alex
date Fri, 19 Jan 2007 22:12:59 +0000
parents fef1f401f0d8
children 2a85c82b8538
comparison
equal deleted inserted replaced
1672:818eafa8fc95 1673:a782462e2497
478 478
479 put_be32(pb, 0); 479 put_be32(pb, 0);
480 put_tag(pb, "avcC"); 480 put_tag(pb, "avcC");
481 if (track->vosLen > 6) { 481 if (track->vosLen > 6) {
482 /* check for h264 start code */ 482 /* check for h264 start code */
483 if (BE_32(track->vosData) == 0x00000001) { 483 if (AV_RB32(track->vosData) == 0x00000001) {
484 uint8_t *buf, *end; 484 uint8_t *buf, *end;
485 uint32_t sps_size=0, pps_size=0; 485 uint32_t sps_size=0, pps_size=0;
486 uint8_t *sps=0, *pps=0; 486 uint8_t *sps=0, *pps=0;
487 487
488 avc_parse_nal_units(&track->vosData, &track->vosLen); 488 avc_parse_nal_units(&track->vosData, &track->vosLen);
491 491
492 /* look for sps and pps */ 492 /* look for sps and pps */
493 while (buf < end) { 493 while (buf < end) {
494 unsigned int size; 494 unsigned int size;
495 uint8_t nal_type; 495 uint8_t nal_type;
496 size = BE_32(buf); 496 size = AV_RB32(buf);
497 nal_type = buf[4] & 0x1f; 497 nal_type = buf[4] & 0x1f;
498 if (nal_type == 7) { /* SPS */ 498 if (nal_type == 7) { /* SPS */
499 sps = buf + 4; 499 sps = buf + 4;
500 sps_size = size; 500 sps_size = size;
501 } else if (nal_type == 8) { /* PPS */ 501 } else if (nal_type == 8) { /* PPS */