Mercurial > libavformat.hg
comparison mov.c @ 3264:5eaed4c6b97f libavformat
remove unneeded variable
author | bcoudurier |
---|---|
date | Fri, 25 Apr 2008 16:50:06 +0000 |
parents | d9a40edc615a |
children | 5d2a64fd4496 |
comparison
equal
deleted
inserted
replaced
3263:d9a40edc615a | 3264:5eaed4c6b97f |
---|---|
729 | 729 |
730 if(st->codec->codec_type==CODEC_TYPE_VIDEO) { | 730 if(st->codec->codec_type==CODEC_TYPE_VIDEO) { |
731 uint8_t codec_name[32]; | 731 uint8_t codec_name[32]; |
732 unsigned int color_depth; | 732 unsigned int color_depth; |
733 int color_greyscale; | 733 int color_greyscale; |
734 int frames_per_sample; | |
735 | 734 |
736 st->codec->codec_id = id; | 735 st->codec->codec_id = id; |
737 get_be16(pb); /* version */ | 736 get_be16(pb); /* version */ |
738 get_be16(pb); /* revision level */ | 737 get_be16(pb); /* revision level */ |
739 get_be32(pb); /* vendor */ | 738 get_be32(pb); /* vendor */ |
744 st->codec->height = get_be16(pb); /* height */ | 743 st->codec->height = get_be16(pb); /* height */ |
745 | 744 |
746 get_be32(pb); /* horiz resolution */ | 745 get_be32(pb); /* horiz resolution */ |
747 get_be32(pb); /* vert resolution */ | 746 get_be32(pb); /* vert resolution */ |
748 get_be32(pb); /* data size, always 0 */ | 747 get_be32(pb); /* data size, always 0 */ |
749 frames_per_sample = get_be16(pb); /* frames per samples */ | 748 get_be16(pb); /* frames per samples */ |
750 | |
751 dprintf(c->fc, "frames/samples = %d\n", frames_per_sample); | |
752 | 749 |
753 get_buffer(pb, codec_name, 32); /* codec name, pascal string (FIXME: true for mp4?) */ | 750 get_buffer(pb, codec_name, 32); /* codec name, pascal string (FIXME: true for mp4?) */ |
754 if (codec_name[0] <= 31) { | 751 if (codec_name[0] <= 31) { |
755 memcpy(st->codec->codec_name, &codec_name[1],codec_name[0]); | 752 memcpy(st->codec->codec_name, &codec_name[1],codec_name[0]); |
756 st->codec->codec_name[codec_name[0]] = 0; | 753 st->codec->codec_name[codec_name[0]] = 0; |