# HG changeset patch # User bcoudurier # Date 1243743015 0 # Node ID ba58d4eaca58f76d825cce1eeb51dd31211f4ab3 # Parent 62bf51efe6ec39273457152a0ef7b13dfca3f6a3 set codec_tag to stream type, so user can deal with it diff -r 62bf51efe6ec -r ba58d4eaca58 mpegts.c --- a/mpegts.c Sun May 31 04:04:20 2009 +0000 +++ b/mpegts.c Sun May 31 04:10:15 2009 +0000 @@ -557,6 +557,8 @@ dprintf(pes->stream, "stream_type=%x pid=%x prog_reg_desc=%.4s\n", pes->stream_type, pes->pid, (char*)&prog_reg_desc); + st->codec->codec_tag = pes->stream_type; + mpegts_find_stream_type(st, pes->stream_type, ISO_types); if (prog_reg_desc == AV_RL32("HDMV") && st->codec->codec_id == CODEC_ID_PROBE)