mirror of
https://gitee.com/openharmony/third_party_ffmpeg
synced 2025-02-17 11:28:05 +00:00
xmv: use av_assert
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
This commit is contained in:
parent
4e3fc46828
commit
610a52647b
@ -32,6 +32,7 @@
|
||||
#include "avformat.h"
|
||||
#include "internal.h"
|
||||
#include "riff.h"
|
||||
#include "libavutil/avassert.h"
|
||||
|
||||
/** The min size of an XMV header. */
|
||||
#define XMV_MIN_HEADER_SIZE 36
|
||||
@ -354,7 +355,7 @@ static int xmv_process_packet_header(AVFormatContext *s)
|
||||
if (xmv->video.stream_index >= 0) {
|
||||
AVStream *vst = s->streams[xmv->video.stream_index];
|
||||
|
||||
assert(xmv->video.stream_index < s->nb_streams);
|
||||
av_assert0(xmv->video.stream_index < s->nb_streams);
|
||||
|
||||
if (vst->codec->extradata_size < 4) {
|
||||
av_free(vst->codec->extradata);
|
||||
|
Loading…
x
Reference in New Issue
Block a user