You've already forked FFmpeg
mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2025-11-23 21:54:53 +02:00
lavf/flacenc: use ffio_fill()
Signed-off-by: Paul B Mahol <onemda@gmail.com>
This commit is contained in:
@@ -21,6 +21,7 @@
|
|||||||
|
|
||||||
#include "libavcodec/flac.h"
|
#include "libavcodec/flac.h"
|
||||||
#include "avformat.h"
|
#include "avformat.h"
|
||||||
|
#include "avio_internal.h"
|
||||||
#include "flacenc.h"
|
#include "flacenc.h"
|
||||||
#include "vorbiscomment.h"
|
#include "vorbiscomment.h"
|
||||||
#include "libavcodec/bytestream.h"
|
#include "libavcodec/bytestream.h"
|
||||||
@@ -31,10 +32,7 @@ static int flac_write_block_padding(AVIOContext *pb, unsigned int n_padding_byte
|
|||||||
{
|
{
|
||||||
avio_w8(pb, last_block ? 0x81 : 0x01);
|
avio_w8(pb, last_block ? 0x81 : 0x01);
|
||||||
avio_wb24(pb, n_padding_bytes);
|
avio_wb24(pb, n_padding_bytes);
|
||||||
while (n_padding_bytes > 0) {
|
ffio_fill(pb, 0, n_padding_bytes);
|
||||||
avio_w8(pb, 0);
|
|
||||||
n_padding_bytes--;
|
|
||||||
}
|
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user