set codec_tag to stream type, so user can deal with it

Originally committed as revision 19013 to svn://svn.ffmpeg.org/ffmpeg/trunk
This commit is contained in:
Baptiste Coudurier 2009-05-31 04:10:15 +00:00
parent 5b3c4c8ac6
commit 7103a77b4d
1 changed files with 2 additions and 0 deletions

View File

@ -557,6 +557,8 @@ static AVStream *new_pes_av_stream(PESContext *pes, uint32_t prog_reg_desc, uint
dprintf(pes->stream, "stream_type=%x pid=%x prog_reg_desc=%.4s\n", dprintf(pes->stream, "stream_type=%x pid=%x prog_reg_desc=%.4s\n",
pes->stream_type, pes->pid, (char*)&prog_reg_desc); 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); mpegts_find_stream_type(st, pes->stream_type, ISO_types);
if (prog_reg_desc == AV_RL32("HDMV") && if (prog_reg_desc == AV_RL32("HDMV") &&
st->codec->codec_id == CODEC_ID_PROBE) st->codec->codec_id == CODEC_ID_PROBE)