comparison mov.c @ 822:2614d3c1f415 libavformat

kill duplicated get/put_be24()
author michael
date Tue, 19 Jul 2005 14:41:08 +0000
parents feca73904e67
children 44b415886cbf
comparison
equal deleted inserted replaced
821:92dfb26763e4 822:2614d3c1f415
546 len = mov_mp4_read_descr_len(pb); 546 len = mov_mp4_read_descr_len(pb);
547 #ifdef DEBUG 547 #ifdef DEBUG
548 av_log(NULL, AV_LOG_DEBUG, "MPEG4 description: tag=0x%02x len=%d\n", *tag, len); 548 av_log(NULL, AV_LOG_DEBUG, "MPEG4 description: tag=0x%02x len=%d\n", *tag, len);
549 #endif 549 #endif
550 return len; 550 return len;
551 }
552
553 static inline unsigned int get_be24(ByteIOContext *s)
554 {
555 unsigned int val;
556 val = get_byte(s) << 16;
557 val |= get_byte(s) << 8;
558 val |= get_byte(s);
559 return val;
560 } 551 }
561 552
562 static int mov_read_esds(MOVContext *c, ByteIOContext *pb, MOV_atom_t atom) 553 static int mov_read_esds(MOVContext *c, ByteIOContext *pb, MOV_atom_t atom)
563 { 554 {
564 AVStream *st = c->fc->streams[c->fc->nb_streams-1]; 555 AVStream *st = c->fc->streams[c->fc->nb_streams-1];