We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0c2ebd3 commit 8b1103eCopy full SHA for 8b1103e
sys/ffmpeg61/avutil_frame.go
@@ -121,6 +121,16 @@ func AVUtil_frame_get_num_planes(frame *AVFrame) int {
121
}
122
123
124
+// Copy only "metadata" fields from src to dst, those fields that do not affect the data layout in the buffers.
125
+// E.g. pts, sample rate (for audio) or sample aspect ratio (for video), but not width/height or channel layout.
126
+// Side data is also copied.
127
+func AVUtil_frame_copy_props(dst, src *AVFrame) error {
128
+ if ret := AVError(C.av_frame_copy_props((*C.struct_AVFrame)(dst), (*C.struct_AVFrame)(src))); ret != 0 {
129
+ return ret
130
+ }
131
+ return nil
132
+}
133
+
134
////////////////////////////////////////////////////////////////////////////////
135
// PROPERTIES
136
0 commit comments