Skip to content

Commit

Permalink
修复修改单音频RTSP流导致音视频RTSP的视频播放不正常的问题
Browse files Browse the repository at this point in the history
修复修改单音频RTSP流导致音视频RTSP的视频播放不正常的问题
  • Loading branch information
SwordTwelve committed May 19, 2017
1 parent 17c0423 commit ca0258e
Show file tree
Hide file tree
Showing 2 changed files with 22 additions and 0 deletions.
Binary file modified win32/bin/EasyPlayerWebActiveX.ocx
Binary file not shown.
22 changes: 22 additions & 0 deletions win32/libEasyPlayer/ChannelManager.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -707,7 +707,29 @@ DECODER_OBJ *GetDecoder(PLAY_THREAD_OBJ *_pPlayThread, unsigned int mediaType, M
return NULL;
}
}
else
{
int nDecoder = OUTPUT_PIX_FMT_YUV420P;
if (_pPlayThread->renderFormat == GDI_FORMAT_RGB24)
{
ParseDecoder2Render(&nDecoder, _frameinfo->width, _frameinfo->height, _pPlayThread->renderFormat, &_pPlayThread->decoderObj[iIdx].yuv_size);
}
else
{
#ifdef __ENABLE_SSE
ParseDecoder2Render(&nDecoder, _frameinfo->width, _frameinfo->height, DISPLAY_FORMAT_YV12, &_pPlayThread->decoderObj[iIdx].yuv_size);
#else
ParseDecoder2Render(&nDecoder, _frameinfo->width, _frameinfo->height, _pPlayThread->renderFormat, &_pPlayThread->decoderObj[iIdx].yuv_size);
#endif
}

FFD_SetVideoDecoderParam(_pPlayThread->decoderObj[iIdx].ffDecoder, _frameinfo->width, _frameinfo->height, _frameinfo->codec, nDecoder);
_pPlayThread->decoderObj[iIdx].codec.vidCodec = _frameinfo->codec;
_pPlayThread->decoderObj[iIdx].codec.width = _frameinfo->width;
_pPlayThread->decoderObj[iIdx].codec.height = _frameinfo->height;

return &_pPlayThread->decoderObj[iIdx];
}
}
}
else if (MEDIA_TYPE_AUDIO == mediaType)
Expand Down

0 comments on commit ca0258e

Please sign in to comment.