History

avfilter.h, buffer.c: use const src pointer in avfilter_copy_buffer_ref_props

Roman Fietze committed 12 years ago

Commit f5d718a1 parent 74aeb6b2 files · +2 −2Browse files

Unified · Split

2 files
  1. libavfilter/avfilter.h +1 −1
  2. libavfilter/buffer.c +1 −1
libavfilter/avfilter.h+1−1
@@ -199,7 +199,7 @@ typedef struct AVFilterBufferRef { · 198 unmodified lines
199 * Copy properties of src to dst, without copying the actual data199 * Copy properties of src to dst, without copying the actual data
200 */200 */
201attribute_deprecated201attribute_deprecated
202void avfilter_copy_buffer_ref_props(AVFilterBufferRef *dst, AVFilterBufferRef *src);202void avfilter_copy_buffer_ref_props(AVFilterBufferRef *dst, const AVFilterBufferRef *src);
203 203
204/**204/**
205 * Add a new reference to a buffer.205 * Add a new reference to a buffer.
libavfilter/buffer.c+1−1
@@ -150,7 +150,7 @@ int avfilter_copy_frame_props(AVFilterBufferRef *dst, const AVFrame *src) · 149 unmodified lines
150 return 0;150 return 0;
151}151}
152 152
153void avfilter_copy_buffer_ref_props(AVFilterBufferRef *dst, AVFilterBufferRef *src)153void avfilter_copy_buffer_ref_props(AVFilterBufferRef *dst, const AVFilterBufferRef *src)
154{154{
155 // copy common properties155 // copy common properties
156 dst->pts = src->pts;156 dst->pts = src->pts;

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