Mercurial > libavformat.hg
comparison matroskaenc.c @ 2498:b1cd4cd56eed libavformat
Indentation
author | conrad |
---|---|
date | Wed, 05 Sep 2007 00:25:24 +0000 |
parents | 5da824da8e3e |
children | 77d6661f1947 |
comparison
equal
deleted
inserted
replaced
2497:5da824da8e3e | 2498:b1cd4cd56eed |
---|---|
138 } | 138 } |
139 | 139 |
140 if (bytes == 0) | 140 if (bytes == 0) |
141 // don't care how many bytes are used, so use the min | 141 // don't care how many bytes are used, so use the min |
142 bytes = needed_bytes; | 142 bytes = needed_bytes; |
143 // the bytes needed to write the given size would exceed the bytes | 143 // the bytes needed to write the given size would exceed the bytes |
144 // that we need to use, so write unknown size. This shouldn't happen. | 144 // that we need to use, so write unknown size. This shouldn't happen. |
145 assert(bytes >= needed_bytes); | 145 assert(bytes >= needed_bytes); |
146 | 146 |
147 size |= 1ULL << bytes*7; | 147 size |= 1ULL << bytes*7; |
148 for (i = bytes - 1; i >= 0; i--) | 148 for (i = bytes - 1; i >= 0; i--) |
149 put_byte(pb, size >> i*8); | 149 put_byte(pb, size >> i*8); |
585 if (bit_depth) | 585 if (bit_depth) |
586 put_ebml_uint(pb, MATROSKA_ID_AUDIOBITDEPTH, bit_depth); | 586 put_ebml_uint(pb, MATROSKA_ID_AUDIOBITDEPTH, bit_depth); |
587 end_ebml_master(pb, subinfo); | 587 end_ebml_master(pb, subinfo); |
588 break; | 588 break; |
589 | 589 |
590 case CODEC_TYPE_SUBTITLE: | 590 case CODEC_TYPE_SUBTITLE: |
591 put_ebml_uint(pb, MATROSKA_ID_TRACKTYPE, MATROSKA_TRACK_TYPE_SUBTITLE); | 591 put_ebml_uint(pb, MATROSKA_ID_TRACKTYPE, MATROSKA_TRACK_TYPE_SUBTITLE); |
592 break; | 592 break; |
593 default: | 593 default: |
594 av_log(s, AV_LOG_ERROR, "Only audio and video are supported for Matroska."); | 594 av_log(s, AV_LOG_ERROR, "Only audio and video are supported for Matroska."); |
595 break; | 595 break; |
596 } | 596 } |
597 end_ebml_master(pb, track); | 597 end_ebml_master(pb, track); |