Skip to content

Commit

Permalink
success
Browse files Browse the repository at this point in the history
  • Loading branch information
TalusL committed Jun 13, 2024
1 parent 59a32c8 commit 1fb63a2
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/ffmpegDecode.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -217,7 +217,7 @@ bool FFmpegDecoder::OpenVideo() {
}

bool FFmpegDecoder::DecodeVideo(const AVPacket *avpkt,
shared_ptr<AVFrame> pOutFrame) {
const shared_ptr<AVFrame>& pOutFrame) {
bool res = false;

if (pVideoCodecCtx && avpkt && pOutFrame) {
Expand Down
2 changes: 1 addition & 1 deletion src/ffmpegDecode.h
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,7 @@ class FFmpegDecoder {
uint8_t *pOutBuffer, size_t nOutBufferSize);

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

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

0 comments on commit 1fb63a2

Please sign in to comment.