-
Notifications
You must be signed in to change notification settings - Fork 34
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
can not decode frame if I use cisco's openh264 dll version 2.1.0 or later. #19
Comments
Difference from v2.0.0 to v2.1.0 is TagBufferInfo structure member. // v2.0.0
typedef struct TagBufferInfo {
int iBufferStatus; ///< 0: one frame data is not ready; 1: one frame data is ready
unsigned long long uiInBsTimeStamp; ///< input BS timestamp
unsigned long long uiOutYuvTimeStamp; ///< output YUV timestamp, when bufferstatus is 1
union {
SSysMEMBuffer sSystemBuffer; ///< memory info for one picture
} UsrData; ///< output buffer info
} SBufferInfo;
// v2.1.0
typedef struct TagBufferInfo {
int iBufferStatus; ///< 0: one frame data is not ready; 1: one frame data is ready
unsigned long long uiInBsTimeStamp; ///< input BS timestamp
unsigned long long uiOutYuvTimeStamp; ///< output YUV timestamp, when bufferstatus is 1
union {
SSysMEMBuffer sSystemBuffer; ///< memory info for one picture
} UsrData; ///< output buffer info
unsigned char* pDst[3]; //point to picture YUV data
} SBufferInfo; |
and retrieve output data from sDstBufInfo.pDst. // v2.0.0
pDecoder->DecodeFrame2 (NULL, 0, pData, &sDstBufInfo);
pDst[0] = pData[0];
pDst[1] = pData[1];
pDst[2] = pData[2];
// v2.1.0
pDecoder->DecodeFrame2 (NULL, 0, pData, &sDstBufInfo);
pDst[0] = sDstBufInfo.pDst[0];
pDst[1] = sDstBufInfo.pDst[1];
pDst[2] = sDstBufInfo.pDst[2]; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
can not decode frame if I use cisco's openh264 dll version 2.1.0 and later.
I think it may effect of cisco/openh264@bbcc2cb.
The text was updated successfully, but these errors were encountered: