mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2024-11-26 19:01:44 +02:00
avformat/aviobuf: Use ffio_fill for padding
Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>
This commit is contained in:
parent
f5f984c9c3
commit
52bd399972
@ -26,7 +26,7 @@
|
||||
#include "libavutil/log.h"
|
||||
#include "libavutil/opt.h"
|
||||
#include "libavutil/avassert.h"
|
||||
#include "avformat.h"
|
||||
#include "libavcodec/defs.h"
|
||||
#include "avio.h"
|
||||
#include "avio_internal.h"
|
||||
#include "internal.h"
|
||||
@ -1445,7 +1445,6 @@ int avio_close_dyn_buf(AVIOContext *s, uint8_t **pbuffer)
|
||||
{
|
||||
DynBuffer *d;
|
||||
int size;
|
||||
static const char padbuf[AV_INPUT_BUFFER_PADDING_SIZE] = {0};
|
||||
int padding = 0;
|
||||
|
||||
if (!s) {
|
||||
@ -1455,7 +1454,7 @@ int avio_close_dyn_buf(AVIOContext *s, uint8_t **pbuffer)
|
||||
|
||||
/* don't attempt to pad fixed-size packet buffers */
|
||||
if (!s->max_packet_size) {
|
||||
avio_write(s, padbuf, sizeof(padbuf));
|
||||
ffio_fill(s, 0, AV_INPUT_BUFFER_PADDING_SIZE);
|
||||
padding = AV_INPUT_BUFFER_PADDING_SIZE;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user