Mercurial > libavformat.hg
changeset 4987:62bf51efe6ec libavformat
set codec_tag to registration descriptor if present
author | bcoudurier |
---|---|
date | Sun, 31 May 2009 04:04:20 +0000 |
parents | b9c3d05b3267 |
children | ba58d4eaca58 |
files | mpegts.c |
diffstat | 1 files changed, 2 insertions(+), 3 deletions(-) [+] |
line wrap: on
line diff
--- a/mpegts.c Sun May 31 03:55:23 2009 +0000 +++ b/mpegts.c Sun May 31 04:04:20 2009 +0000 @@ -590,7 +590,6 @@ int comp_page, anc_page; char language[4]; uint32_t prog_reg_desc = 0; /* registration descriptor */ - uint32_t reg_desc; /* registration descriptor */ #ifdef DEBUG dprintf(ts->stream, "PMT: len %i\n", section_len); @@ -707,10 +706,10 @@ av_metadata_set(&st->metadata, "language", language); break; case 0x05: /* registration descriptor */ - reg_desc = bytestream_get_le32(&p); + st->codec->codec_tag = bytestream_get_le32(&p); if (st->codec->codec_id == CODEC_ID_PROBE && stream_type == STREAM_TYPE_PRIVATE_DATA) - mpegts_find_stream_type(st, reg_desc, REGD_types); + mpegts_find_stream_type(st, st->codec->codec_tag, REGD_types); break; default: break;