We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 59a32c8 commit 1fb63a2Copy full SHA for 1fb63a2
src/ffmpegDecode.cpp
@@ -217,7 +217,7 @@ bool FFmpegDecoder::OpenVideo() {
217
}
218
219
bool FFmpegDecoder::DecodeVideo(const AVPacket *avpkt,
220
- shared_ptr<AVFrame> pOutFrame) {
+ const shared_ptr<AVFrame>& pOutFrame) {
221
bool res = false;
222
223
if (pVideoCodecCtx && avpkt && pOutFrame) {
src/ffmpegDecode.h
@@ -105,7 +105,7 @@ class FFmpegDecoder {
105
uint8_t *pOutBuffer, size_t nOutBufferSize);
106
107
// 解码视频祯
108
- bool DecodeVideo(const AVPacket *avpkt,shared_ptr<AVFrame> pOutFrame);
+ bool DecodeVideo(const AVPacket *avpkt,const shared_ptr<AVFrame>& pOutFrame);
109
110
//向音频fifo写入数据
111
void writeAudioBuff(uint8_t *aSample, size_t aSize);
0 commit comments