comparison mxf.c @ 2023:a3e79d6e4e3c libavformat

add an enum for need_parsing
author aurel
date Sun, 15 Apr 2007 13:51:57 +0000
parents 6c6eb1bac2f3
children 1ef7c49bd9d1
comparison
equal deleted inserted replaced
2022:4f62a7d9381a 2023:a3e79d6e4e3c
810 if (st->codec->codec_id == CODEC_ID_NONE) 810 if (st->codec->codec_id == CODEC_ID_NONE)
811 st->codec->codec_id = container_ul->id; 811 st->codec->codec_id = container_ul->id;
812 st->codec->width = descriptor->width; 812 st->codec->width = descriptor->width;
813 st->codec->height = descriptor->height; 813 st->codec->height = descriptor->height;
814 st->codec->bits_per_sample = descriptor->bits_per_sample; /* Uncompressed */ 814 st->codec->bits_per_sample = descriptor->bits_per_sample; /* Uncompressed */
815 st->need_parsing = 2; /* only parse headers */ 815 st->need_parsing = AVSTREAM_PARSE_HEADERS;
816 } else if (st->codec->codec_type == CODEC_TYPE_AUDIO) { 816 } else if (st->codec->codec_type == CODEC_TYPE_AUDIO) {
817 container_ul = mxf_get_codec_ul(mxf_sound_essence_container_uls, essence_container_ul); 817 container_ul = mxf_get_codec_ul(mxf_sound_essence_container_uls, essence_container_ul);
818 if (st->codec->codec_id == CODEC_ID_NONE) 818 if (st->codec->codec_id == CODEC_ID_NONE)
819 st->codec->codec_id = container_ul->id; 819 st->codec->codec_id = container_ul->id;
820 st->codec->channels = descriptor->channels; 820 st->codec->channels = descriptor->channels;
832 else if (descriptor->bits_per_sample == 32) 832 else if (descriptor->bits_per_sample == 32)
833 st->codec->codec_id = CODEC_ID_PCM_S32BE; 833 st->codec->codec_id = CODEC_ID_PCM_S32BE;
834 if (descriptor->essence_container_ul[13] == 0x01) /* D-10 Mapping */ 834 if (descriptor->essence_container_ul[13] == 0x01) /* D-10 Mapping */
835 st->codec->channels = 8; /* force channels to 8 */ 835 st->codec->channels = 8; /* force channels to 8 */
836 } else if (st->codec->codec_id == CODEC_ID_MP2) { 836 } else if (st->codec->codec_id == CODEC_ID_MP2) {
837 st->need_parsing = 1; 837 st->need_parsing = AVSTREAM_PARSE_FULL;
838 } 838 }
839 } 839 }
840 if (container_ul && container_ul->wrapping == Clip) { 840 if (container_ul && container_ul->wrapping == Clip) {
841 dprintf(mxf->fc, "stream %d: clip wrapped essence\n", st->index); 841 dprintf(mxf->fc, "stream %d: clip wrapped essence\n", st->index);
842 st->need_parsing = 1; 842 st->need_parsing = AVSTREAM_PARSE_FULL;
843 } 843 }
844 } 844 }
845 return 0; 845 return 0;
846 } 846 }
847 847