diff options
author | Aurelien Jacobs <aurel@gnuage.org> | 2007-04-15 13:51:57 +0000 |
---|---|---|
committer | Aurelien Jacobs <aurel@gnuage.org> | 2007-04-15 13:51:57 +0000 |
commit | 57004ff1d71d8a592cf8d3a268526c4e10ebe976 (patch) | |
tree | 9f8cabeb4f34375206dfdc8973a321e3b0e716f7 /libavformat/mxf.c | |
parent | cefd4907e37112bc1f7ec5e0f0f2f7247ecf8150 (diff) | |
download | ffmpeg-57004ff1d71d8a592cf8d3a268526c4e10ebe976.tar.gz |
add an enum for need_parsing
Originally committed as revision 8742 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavformat/mxf.c')
-rw-r--r-- | libavformat/mxf.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/libavformat/mxf.c b/libavformat/mxf.c index 55c73a5979..a13f6735c5 100644 --- a/libavformat/mxf.c +++ b/libavformat/mxf.c @@ -812,7 +812,7 @@ static int mxf_parse_structural_metadata(MXFContext *mxf) st->codec->width = descriptor->width; st->codec->height = descriptor->height; st->codec->bits_per_sample = descriptor->bits_per_sample; /* Uncompressed */ - st->need_parsing = 2; /* only parse headers */ + st->need_parsing = AVSTREAM_PARSE_HEADERS; } else if (st->codec->codec_type == CODEC_TYPE_AUDIO) { container_ul = mxf_get_codec_ul(mxf_sound_essence_container_uls, essence_container_ul); if (st->codec->codec_id == CODEC_ID_NONE) @@ -834,12 +834,12 @@ static int mxf_parse_structural_metadata(MXFContext *mxf) if (descriptor->essence_container_ul[13] == 0x01) /* D-10 Mapping */ st->codec->channels = 8; /* force channels to 8 */ } else if (st->codec->codec_id == CODEC_ID_MP2) { - st->need_parsing = 1; + st->need_parsing = AVSTREAM_PARSE_FULL; } } if (container_ul && container_ul->wrapping == Clip) { dprintf(mxf->fc, "stream %d: clip wrapped essence\n", st->index); - st->need_parsing = 1; + st->need_parsing = AVSTREAM_PARSE_FULL; } } return 0; |