History

avfilter/buffer: Use av_malloc_array()

Michael Niedermayer committed 12 years ago

Commit b9cce9e1 parent e951e041 file · +1 −1Browse files

Unified · Split

libavfilter/buffer.c+1−1
@@ -79,7 +79,7 @@ AVFilterBufferRef *avfilter_ref_buffer(AVFilterBufferRef *ref, int pmask) · 78 unmodified lines
7979
8080 if (ref->extended_data && ref->extended_data != ref->data) {
8181 int nb_channels = av_get_channel_layout_nb_channels(ref->audio->channel_layout);
82− if (!(ret->extended_data = av_malloc(sizeof(*ret->extended_data) *
82+ if (!(ret->extended_data = av_malloc_array(sizeof(*ret->extended_data),
8383 nb_channels))) {
8484 av_freep(&ret->audio);
8585 av_freep(&ret);

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