mirror of
https://github.com/librempeg/librempeg
synced 2024-11-23 11:39:47 +00:00
lavf/aviobuf: use av_assert()
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
This commit is contained in:
parent
67703d64d7
commit
47f8303069
@ -24,6 +24,7 @@
|
|||||||
#include "libavutil/intreadwrite.h"
|
#include "libavutil/intreadwrite.h"
|
||||||
#include "libavutil/log.h"
|
#include "libavutil/log.h"
|
||||||
#include "libavutil/opt.h"
|
#include "libavutil/opt.h"
|
||||||
|
#include "libavutil/avassert.h"
|
||||||
#include "avformat.h"
|
#include "avformat.h"
|
||||||
#include "avio.h"
|
#include "avio.h"
|
||||||
#include "avio_internal.h"
|
#include "avio_internal.h"
|
||||||
@ -712,7 +713,7 @@ int ffio_set_buf_size(AVIOContext *s, int buf_size)
|
|||||||
|
|
||||||
static int url_resetbuf(AVIOContext *s, int flags)
|
static int url_resetbuf(AVIOContext *s, int flags)
|
||||||
{
|
{
|
||||||
assert(flags == AVIO_FLAG_WRITE || flags == AVIO_FLAG_READ);
|
av_assert1(flags == AVIO_FLAG_WRITE || flags == AVIO_FLAG_READ);
|
||||||
|
|
||||||
if (flags & AVIO_FLAG_WRITE) {
|
if (flags & AVIO_FLAG_WRITE) {
|
||||||
s->buf_end = s->buffer + s->buffer_size;
|
s->buf_end = s->buffer + s->buffer_size;
|
||||||
|
Loading…
Reference in New Issue
Block a user