AVDictionaryEntry *tag = NULL;
tag = av_dict_get(m_pVideoStream->metadata, "rotate", tag, 0);
if (tag == NULL)
{
m_Rotate = MT_VIDEO_ROTATE_0;
}
else
{
int angle = atoi(tag->value);
angle %= 360;
if (angle == 90)
{
m_Rotate = MT_VIDEO_ROTATE_90;
}
else if (angle == 180)
{
m_Rotate = MT_VIDEO_ROTATE_180;
}
else if (angle == 270)
{
m_Rotate = MT_VIDEO_ROTATE_270;
}
else
{
m_Rotate = MT_VIDEO_ROTATE_0;
}
}
设置旋转角度
ret = av_dict_set(&m_pDstVideoStream->metadata,"rotate","90",0);
//
class CStudent
{
public:
CStudent(const char* pInputName,int id)
{
int nLen = strlen(pInputName);
m_p