We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
有两处地方可能有问题,辛苦确认指正: 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;
The text was updated successfully, but these errors were encountered:
No branches or pull requests
有两处地方可能有问题,辛苦确认指正:
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;
The text was updated successfully, but these errors were encountered: