MCPcopy Create free account
hub / github.com/FFmpeg/FFmpeg / av_frame_get_buffer

Function av_frame_get_buffer

libavutil/frame.c:206–218  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

204}
205
206int av_frame_get_buffer(AVFrame *frame, int align)
207{
208 if (frame->format < 0)
209 return AVERROR(EINVAL);
210
211 if (frame->width > 0 && frame->height > 0)
212 return get_video_buffer(frame, align);
213 else if (frame->nb_samples > 0 &&
214 (av_channel_layout_check(&frame->ch_layout)))
215 return get_audio_buffer(frame, align);
216
217 return AVERROR(EINVAL);
218}
219
220static int frame_copy_props(AVFrame *dst, const AVFrame *src, int force_copy)
221{

Callers 15

swr_convert_frameFunction · 0.85
LLVMFuzzerTestOneInputFunction · 0.85
mainFunction · 0.85
av_frame_refFunction · 0.85
av_frame_make_writableFunction · 0.85
transfer_data_allocFunction · 0.85
qsv_transfer_data_fromFunction · 0.85
qsv_transfer_data_toFunction · 0.85
receive_samplesFunction · 0.85
spawn_empty_frameFunction · 0.85

Calls 3

av_channel_layout_checkFunction · 0.85
get_video_bufferFunction · 0.70
get_audio_bufferFunction · 0.70

Tested by 4

mainFunction · 0.68
mainFunction · 0.68
sender_threadFunction · 0.68
run_testFunction · 0.68