flvenc: use av_assert instead of assert
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
This commit is contained in:
parent
709b54eae9
commit
d9a9518fba
@ -27,9 +27,8 @@
|
|||||||
#include "avc.h"
|
#include "avc.h"
|
||||||
#include "metadata.h"
|
#include "metadata.h"
|
||||||
#include "libavutil/dict.h"
|
#include "libavutil/dict.h"
|
||||||
|
#include "libavutil/avassert.h"
|
||||||
|
|
||||||
#undef NDEBUG
|
|
||||||
#include <assert.h>
|
|
||||||
|
|
||||||
static const AVCodecTag flv_video_codec_ids[] = {
|
static const AVCodecTag flv_video_codec_ids[] = {
|
||||||
{CODEC_ID_FLV1, FLV_CODECID_H263 },
|
{CODEC_ID_FLV1, FLV_CODECID_H263 },
|
||||||
@ -453,7 +452,7 @@ static int flv_write_packet(AVFormatContext *s, AVPacket *pkt)
|
|||||||
case AVMEDIA_TYPE_AUDIO:
|
case AVMEDIA_TYPE_AUDIO:
|
||||||
flags = get_audio_flags(s, enc);
|
flags = get_audio_flags(s, enc);
|
||||||
|
|
||||||
assert(size);
|
av_assert0(size);
|
||||||
|
|
||||||
avio_w8(pb, FLV_TAG_TYPE_AUDIO);
|
avio_w8(pb, FLV_TAG_TYPE_AUDIO);
|
||||||
break;
|
break;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user