Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

问题反馈 #10

Open
abou7me opened this issue Dec 4, 2023 · 0 comments
Open

问题反馈 #10

abou7me opened this issue Dec 4, 2023 · 0 comments

Comments

@abou7me
Copy link

abou7me commented Dec 4, 2023

有两处地方可能有问题,辛苦确认指正:
1)flv.h文件中,以下两个宏的定义:
#define EXT_HEADER_IS_KEYFRAME(x) (((x) & FLV_VIDEO_FRAMETYPE_MASK) == FT_KEY)
#define EXT_HEADER_IS_INTERFRAME(x) (((x) & FLV_VIDEO_FRAMETYPE_MASK) == FT_INTER)
应该是:
#define FLV_VIDEO_EXT_FRAMETYPE_MASK 0x70
#define EXT_HEADER_IS_KEYFRAME(x) (((x) & FLV_VIDEO_EXT_FRAMETYPE_MASK) == FT_KEY)
#define EXT_HEADER_IS_INTERFRAME(x) (((x) & FLV_VIDEO_EXT_FRAMETYPE_MASK) == FT_INTER)
2)flvenc.c文件中,flv_write_packet方法的1085行:
unsigned char is_key = (pkt->flags & AV_PKT_FLAG_KEY) ? FT_KEY : 0;
应该是:
unsigned char is_key = (pkt->flags & AV_PKT_FLAG_KEY) ? FT_KEY : FT_INTER;

@abou7me abou7me changed the title 问题请教、反馈 问题反馈 Dec 4, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant