mirror of
https://github.com/nyanmisaka/ffmpeg-rockchip.git
synced 2025-11-02 21:34:01 +08:00
add subtitle codec autodetection
Originally committed as revision 25884 to svn://svn.ffmpeg.org/ffmpeg/trunk
This commit is contained in:
@@ -274,6 +274,8 @@ enum CodecID av_guess_codec(AVOutputFormat *fmt, const char *short_name,
|
||||
return codec_id;
|
||||
}else if(type == AVMEDIA_TYPE_AUDIO)
|
||||
return fmt->audio_codec;
|
||||
else if (type == AVMEDIA_TYPE_SUBTITLE)
|
||||
return fmt->subtitle_codec;
|
||||
else
|
||||
return CODEC_ID_NONE;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user