History

avfilter: use the buffer_size_t typedef where required

James Almer committed 5 years ago

Commit 5d9af161 parent f7abb532 files · +5 −4Browse files

Unified · Split

2 files
  1. libavfilter/framepool.c +2 −2
  2. libavfilter/framepool.h +3 −2
libavfilter/framepool.c+2−2
@@ -48,7 +48,7 @@ struct FFFramePool { · 47 unmodified lines
4848
4949 };
5050
51−FFFramePool *ff_frame_pool_video_init(AVBufferRef* (*alloc)(int size),
51+FFFramePool *ff_frame_pool_video_init(AVBufferRef* (*alloc)(buffer_size_t size),
5252 int width,
5353 int height,
5454 enum AVPixelFormat format,
@@ -116,7 +116,7 @@ fail: · 61 unmodified lines
116116 return NULL;
117117 }
118118
119−FFFramePool *ff_frame_pool_audio_init(AVBufferRef* (*alloc)(int size),
119+FFFramePool *ff_frame_pool_audio_init(AVBufferRef* (*alloc)(buffer_size_t size),
120120 int channels,
121121 int nb_samples,
122122 enum AVSampleFormat format,
libavfilter/framepool.h+3−2
@@ -23,6 +23,7 @@ · 22 unmodified lines
2323
2424 #include "libavutil/buffer.h"
2525 #include "libavutil/frame.h"
26+#include "libavutil/internal.h"
2627
2728 /**
2829 * Frame pool. This structure is opaque and not meant to be accessed
@@ -43,7 +44,7 @@ typedef struct FFFramePool FFFramePool; · 14 unmodified lines
4344 * @param align buffers alignement of each frame in this pool
4445 * @return newly created video frame pool on success, NULL on error.
4546 */
46−FFFramePool *ff_frame_pool_video_init(AVBufferRef* (*alloc)(int size),
47+FFFramePool *ff_frame_pool_video_init(AVBufferRef* (*alloc)(buffer_size_t size),
4748 int width,
4849 int height,
4950 enum AVPixelFormat format,
@@ -61,7 +62,7 @@ FFFramePool *ff_frame_pool_video_init(AVBufferRef* (*alloc)(int size), · 11 unmodified lines
6162 * @param align buffers alignement of each frame in this pool
6263 * @return newly created audio frame pool on success, NULL on error.
6364 */
64−FFFramePool *ff_frame_pool_audio_init(AVBufferRef* (*alloc)(int size),
65+FFFramePool *ff_frame_pool_audio_init(AVBufferRef* (*alloc)(buffer_size_t size),
6566 int channels,
6667 int samples,
6768 enum AVSampleFormat format,

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