History

all: Use av_frame_replace() where appropriate

Andreas Rheinhardt committed 3 years ago

Commit cfa47fd1 parent 048778631 files · +34 −67Browse files

Showing the changes to libavcodec/cdgraphics.c (1 of 31 files). Show all

Unified · Split

libavcodec/cdgraphics.c+1−2
@@ -344,8 +344,7 @@ static int cdg_decode_frame(AVCodecContext *avctx, AVFrame *frame, · 343 unmodified lines
344 return ret;344 return ret;
345 345
346 cdg_scroll(cc, cdg_data, frame, inst == CDG_INST_SCROLL_COPY);346 cdg_scroll(cc, cdg_data, frame, inst == CDG_INST_SCROLL_COPY);
347 av_frame_unref(cc->frame);347 ret = av_frame_replace(cc->frame, frame);
348 ret = av_frame_ref(cc->frame, frame);
349 if (ret < 0)348 if (ret < 0)
350 return ret;349 return ret;
351 break;350 break;

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t