History

Make avfilter_unref_buffer() accept a NULL parameter.

Originally committed as revision 26373 to svn://svn.ffmpeg.org/ffmpeg/trunk

Stefano Sabatini committed 15 years ago

Commit 6baf4af1 parent 24d13eb2 files · +4 −2Browse files

Showing the changes to libavfilter/avfilter.c (1 of 2 files). Show all

Unified · Split

libavfilter/avfilter.c+2−0
@@ -70,6 +70,8 @@ AVFilterBufferRef *avfilter_ref_buffer(AVFilterBufferRef *ref, int pmask) · 69 unmodified lines
7070
7171 void avfilter_unref_buffer(AVFilterBufferRef *ref)
7272 {
73+ if (!ref)
74+ return;
7375 if (!(--ref->buf->refcount))
7476 ref->buf->free(ref->buf);
7577 av_free(ref->video);

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