Skip to content

Commit 1fb63a2

Browse files
committed
success
1 parent 59a32c8 commit 1fb63a2

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/ffmpegDecode.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -217,7 +217,7 @@ bool FFmpegDecoder::OpenVideo() {
217217
}
218218

219219
bool FFmpegDecoder::DecodeVideo(const AVPacket *avpkt,
220-
shared_ptr<AVFrame> pOutFrame) {
220+
const shared_ptr<AVFrame>& pOutFrame) {
221221
bool res = false;
222222

223223
if (pVideoCodecCtx && avpkt && pOutFrame) {

src/ffmpegDecode.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -105,7 +105,7 @@ class FFmpegDecoder {
105105
uint8_t *pOutBuffer, size_t nOutBufferSize);
106106

107107
// 解码视频祯
108-
bool DecodeVideo(const AVPacket *avpkt,shared_ptr<AVFrame> pOutFrame);
108+
bool DecodeVideo(const AVPacket *avpkt,const shared_ptr<AVFrame>& pOutFrame);
109109

110110
//向音频fifo写入数据
111111
void writeAudioBuff(uint8_t *aSample, size_t aSize);

0 commit comments

Comments
 (0)