Single pid TS-file with HEVC video
I had trouble decoding a TS-file with a single PID in it that contained HEVC video. The detection routine seemed to fail on it. The following patch seems to fix it for me, but I'm not sure if that is the correct solution. --- a/libavformat/utils.c +++ b/libavformat/utils.c @@ -293,6 +293,7 @@ static int set_codec_from_probe_data(AVFormatContext *s, AVStream *st, AVProbeDa { "dts" , AV_CODEC_ID_DTS , AVMEDIA_TYPE_AUDIO }, { "eac3" , AV_CODEC_ID_EAC3 , AVMEDIA_TYPE_AUDIO }, { "h264" , AV_CODEC_ID_H264 , AVMEDIA_TYPE_VIDEO }, + { "hevc" , AV_CODEC_ID_HEVC , AVMEDIA_TYPE_VIDEO }, { "loas" , AV_CODEC_ID_AAC_LATM , AVMEDIA_TYPE_AUDIO }, { "m4v" , AV_CODEC_ID_MPEG4 , AVMEDIA_TYPE_VIDEO }, { "mp3" , AV_CODEC_ID_MP3 , AVMEDIA_TYPE_AUDIO }, -- Ståle Kristoffersen staalebk@ifi.uio.no
On Fri, 31 Jan 2014 17:54:14 +0100 Ståle Kristoffersen <staalebk@ifi.uio.no> wrote:
I had trouble decoding a TS-file with a single PID in it that contained HEVC video. The detection routine seemed to fail on it. The following patch seems to fix it for me, but I'm not sure if that is the correct solution.
Patches should be sent to the ffmpeg-devel mailing list: http://ffmpeg.org/mailman/listinfo/ffmpeg-devel Please provide a patch from current git master, and use "git format-patch" or "git send-email" if you can. Lou
Ståle Kristoffersen <staalebk <at> ifi.uio.no> writes:
+ { "hevc" , AV_CODEC_ID_HEVC , AVMEDIA_TYPE_VIDEO },
I committed this, unfortunately I was so tired I missed the incorrect commas, please consider sending a followup patch that fixes them, either to ffmpeg-devel or here (or to me). Thank you, Carl Eugen
participants (3)
-
Carl Eugen Hoyos -
Lou -
Ståle Kristoffersen