Mercurial > libavformat.hg
comparison mxf.c @ 1227:2cec7ede3bb4 libavformat
10l, check container_ul existence
author | bcoudurier |
---|---|
date | Thu, 03 Aug 2006 11:57:28 +0000 |
parents | 0c5a9bfdcdab |
children | 4e673fe9ac5e |
comparison
equal
deleted
inserted
replaced
1226:0c5a9bfdcdab | 1227:2cec7ede3bb4 |
---|---|
39 * | 39 * |
40 * Simple demuxer, only OP1A supported and some files might not work at all. | 40 * Simple demuxer, only OP1A supported and some files might not work at all. |
41 * Only tracks with associated descriptors will be decoded. "Highly Desirable" SMPTE 377M D.1 | 41 * Only tracks with associated descriptors will be decoded. "Highly Desirable" SMPTE 377M D.1 |
42 */ | 42 */ |
43 | 43 |
44 //#define DEBUG | 44 #define DEBUG |
45 | 45 |
46 #include "avformat.h" | 46 #include "avformat.h" |
47 | 47 |
48 typedef uint8_t UID[16]; | 48 typedef uint8_t UID[16]; |
49 | 49 |
838 st->codec->codec_id = CODEC_ID_PCM_S24BE; | 838 st->codec->codec_id = CODEC_ID_PCM_S24BE; |
839 else if (descriptor->bits_per_sample == 32) | 839 else if (descriptor->bits_per_sample == 32) |
840 st->codec->codec_id = CODEC_ID_PCM_S32BE; | 840 st->codec->codec_id = CODEC_ID_PCM_S32BE; |
841 } | 841 } |
842 } | 842 } |
843 if (container_ul->wrapping == Clip) { | 843 if (container_ul && container_ul->wrapping == Clip) { |
844 dprintf("stream %d: clip wrapped essence\n", st->index); | 844 dprintf("stream %d: clip wrapped essence\n", st->index); |
845 st->need_parsing = 1; | 845 st->need_parsing = 1; |
846 } | 846 } |
847 } | 847 } |
848 return 0; | 848 return 0; |