forked from FFmpeg/FFmpeg
ffmenc: use av_assert
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
This commit is contained in:
parent
3000074495
commit
0354412aa3
1 changed files with 2 additions and 1 deletions
|
@ -21,6 +21,7 @@
|
|||
|
||||
#include "libavutil/intreadwrite.h"
|
||||
#include "libavutil/intfloat.h"
|
||||
#include "libavutil/avassert.h"
|
||||
#include "avformat.h"
|
||||
#include "internal.h"
|
||||
#include "ffm.h"
|
||||
|
@ -189,7 +190,7 @@ static int ffm_write_header(AVFormatContext *s)
|
|||
/* init packet mux */
|
||||
ffm->packet_ptr = ffm->packet;
|
||||
ffm->packet_end = ffm->packet + ffm->packet_size - FFM_HEADER_SIZE;
|
||||
assert(ffm->packet_end >= ffm->packet);
|
||||
av_assert0(ffm->packet_end >= ffm->packet);
|
||||
ffm->frame_offset = 0;
|
||||
ffm->dts = 0;
|
||||
ffm->first_packet = 1;
|
||||
|
|
Loading…
Add table
Reference in a new issue