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
48 48
49};49};
50 50
51FFFramePool *ff_frame_pool_video_init(AVBufferRef* (*alloc)(int size),51FFFramePool *ff_frame_pool_video_init(AVBufferRef* (*alloc)(buffer_size_t size),
52 int width,52 int width,
53 int height,53 int height,
54 enum AVPixelFormat format,54 enum AVPixelFormat format,
@@ -116,7 +116,7 @@ fail: · 61 unmodified lines
116 return NULL;116 return NULL;
117}117}
118 118
119FFFramePool *ff_frame_pool_audio_init(AVBufferRef* (*alloc)(int size),119FFFramePool *ff_frame_pool_audio_init(AVBufferRef* (*alloc)(buffer_size_t size),
120 int channels,120 int channels,
121 int nb_samples,121 int nb_samples,
122 enum AVSampleFormat format,122 enum AVSampleFormat format,
libavfilter/framepool.h+3−2
@@ -23,6 +23,7 @@ · 22 unmodified lines
23 23
24#include "libavutil/buffer.h"24#include "libavutil/buffer.h"
25#include "libavutil/frame.h"25#include "libavutil/frame.h"
26#include "libavutil/internal.h"
26 27
27/**28/**
28 * Frame pool. This structure is opaque and not meant to be accessed29 * Frame pool. This structure is opaque and not meant to be accessed
@@ -43,7 +44,7 @@ typedef struct FFFramePool FFFramePool; · 14 unmodified lines
43 * @param align buffers alignement of each frame in this pool44 * @param align buffers alignement of each frame in this pool
44 * @return newly created video frame pool on success, NULL on error.45 * @return newly created video frame pool on success, NULL on error.
45 */46 */
46FFFramePool *ff_frame_pool_video_init(AVBufferRef* (*alloc)(int size),47FFFramePool *ff_frame_pool_video_init(AVBufferRef* (*alloc)(buffer_size_t size),
47 int width,48 int width,
48 int height,49 int height,
49 enum AVPixelFormat format,50 enum AVPixelFormat format,
@@ -61,7 +62,7 @@ FFFramePool *ff_frame_pool_video_init(AVBufferRef* (*alloc)(int size), · 11 unmodified lines
61 * @param align buffers alignement of each frame in this pool62 * @param align buffers alignement of each frame in this pool
62 * @return newly created audio frame pool on success, NULL on error.63 * @return newly created audio frame pool on success, NULL on error.
63 */64 */
64FFFramePool *ff_frame_pool_audio_init(AVBufferRef* (*alloc)(int size),65FFFramePool *ff_frame_pool_audio_init(AVBufferRef* (*alloc)(buffer_size_t size),
65 int channels,66 int channels,
66 int samples,67 int samples,
67 enum AVSampleFormat format,68 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