mirror of
https://github.com/nyanmisaka/ffmpeg-rockchip.git
synced 2025-10-18 22:55:12 +08:00
avformat/utils: Move ff_is_intra_only to avformat.c
It is an auxiliary function only used by the generic muxing and demuxing code. Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>
This commit is contained in:
@@ -152,19 +152,6 @@ int av_filename_number_test(const char *filename)
|
||||
|
||||
/**********************************************************/
|
||||
|
||||
int ff_is_intra_only(enum AVCodecID id)
|
||||
{
|
||||
const AVCodecDescriptor *d = avcodec_descriptor_get(id);
|
||||
if (!d)
|
||||
return 0;
|
||||
if ((d->type == AVMEDIA_TYPE_VIDEO || d->type == AVMEDIA_TYPE_AUDIO) &&
|
||||
!(d->props & AV_CODEC_PROP_INTRA_ONLY))
|
||||
return 0;
|
||||
return 1;
|
||||
}
|
||||
|
||||
/*******************************************************/
|
||||
|
||||
unsigned int ff_codec_get_tag(const AVCodecTag *tags, enum AVCodecID id)
|
||||
{
|
||||
while (tags->id != AV_CODEC_ID_NONE) {
|
||||
|
Reference in New Issue
Block a user