diff options
author | Baptiste Coudurier <baptiste.coudurier@gmail.com> | 2009-05-31 04:10:15 +0000 |
---|---|---|
committer | Baptiste Coudurier <baptiste.coudurier@gmail.com> | 2009-05-31 04:10:15 +0000 |
commit | 7103a77b4dbf4de31d909a52e2638cb01bf4d3fc (patch) | |
tree | 8389543de6f717c687c095cf962bedc3dd66ba29 /libavformat/mpegts.c | |
parent | 5b3c4c8ac681ae7ccf3c50e8a8b17f0209277456 (diff) | |
download | ffmpeg-7103a77b4dbf4de31d909a52e2638cb01bf4d3fc.tar.gz |
set codec_tag to stream type, so user can deal with it
Originally committed as revision 19013 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavformat/mpegts.c')
-rw-r--r-- | libavformat/mpegts.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/libavformat/mpegts.c b/libavformat/mpegts.c index 61f91fdaed..20d2c86186 100644 --- a/libavformat/mpegts.c +++ b/libavformat/mpegts.c @@ -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", 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) |