mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2024-12-23 12:43:46 +02:00
avienc: use av_assert
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
This commit is contained in:
parent
4aed3ac86a
commit
eaf655384b
@ -25,6 +25,7 @@
|
||||
#include "riff.h"
|
||||
#include "libavutil/intreadwrite.h"
|
||||
#include "libavutil/dict.h"
|
||||
#include "libavutil/avassert.h"
|
||||
|
||||
/*
|
||||
* TODO:
|
||||
@ -130,7 +131,7 @@ static int avi_write_counters(AVFormatContext* s, int riff_id)
|
||||
for(n = 0; n < s->nb_streams; n++) {
|
||||
AVIStream *avist= s->streams[n]->priv_data;
|
||||
|
||||
assert(avist->frames_hdr_strm);
|
||||
av_assert0(avist->frames_hdr_strm);
|
||||
stream = s->streams[n]->codec;
|
||||
avio_seek(pb, avist->frames_hdr_strm, SEEK_SET);
|
||||
ff_parse_specific_params(stream, &au_byterate, &au_ssize, &au_scale);
|
||||
@ -143,7 +144,7 @@ static int avi_write_counters(AVFormatContext* s, int riff_id)
|
||||
nb_frames = FFMAX(nb_frames, avist->packet_count);
|
||||
}
|
||||
if(riff_id == 1) {
|
||||
assert(avi->frames_hdr_all);
|
||||
av_assert0(avi->frames_hdr_all);
|
||||
avio_seek(pb, avi->frames_hdr_all, SEEK_SET);
|
||||
avio_wl32(pb, nb_frames);
|
||||
}
|
||||
@ -411,7 +412,7 @@ static int avi_write_ix(AVFormatContext *s)
|
||||
char ix_tag[] = "ix00";
|
||||
int i, j;
|
||||
|
||||
assert(pb->seekable);
|
||||
av_assert0(pb->seekable);
|
||||
|
||||
if (avi->riff_id > AVI_MASTER_INDEX_SIZE)
|
||||
return -1;
|
||||
|
Loading…
Reference in New Issue
Block a user