mpegts: use avcodec_get_type() to set codec_type
authorwm4 <nfxjfg@googlemail.com>
Sat, 26 Sep 2015 16:42:51 +0000 (18:42 +0200)
committerAnton Khirnov <anton@khirnov.net>
Mon, 28 Sep 2015 08:50:50 +0000 (10:50 +0200)
commitcc8db760616a7ec3bd39b22ca45888c01326db13
tree1b7ffafdc1e8340929a46aecb18cf23d5376cd52
parenta5d58fea68b9212e0065a71939e921505504a9bb
mpegts: use avcodec_get_type() to set codec_type

Note that this slightly changes behavior: it sets AVMEDIA_TYPE_UNKNOWN
if the codec type is unknown. This should be ok.

Signed-off-by: Anton Khirnov <anton@khirnov.net>
libavformat/mpegts.c