Commit 0354412a authored by Michael Niedermayer's avatar Michael Niedermayer

ffmenc: use av_assert

Signed-off-by: 's avatarMichael Niedermayer <michaelni@gmx.at>
parent 30000744
...@@ -21,6 +21,7 @@ ...@@ -21,6 +21,7 @@
#include "libavutil/intreadwrite.h" #include "libavutil/intreadwrite.h"
#include "libavutil/intfloat.h" #include "libavutil/intfloat.h"
#include "libavutil/avassert.h"
#include "avformat.h" #include "avformat.h"
#include "internal.h" #include "internal.h"
#include "ffm.h" #include "ffm.h"
...@@ -189,7 +190,7 @@ static int ffm_write_header(AVFormatContext *s) ...@@ -189,7 +190,7 @@ static int ffm_write_header(AVFormatContext *s)
/* init packet mux */ /* init packet mux */
ffm->packet_ptr = ffm->packet; ffm->packet_ptr = ffm->packet;
ffm->packet_end = ffm->packet + ffm->packet_size - FFM_HEADER_SIZE; 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->frame_offset = 0;
ffm->dts = 0; ffm->dts = 0;
ffm->first_packet = 1; ffm->first_packet = 1;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment