diff options
author | Andreas Rheinhardt <andreas.rheinhardt@outlook.com> | 2021-11-07 14:56:01 +0100 |
---|---|---|
committer | Andreas Rheinhardt <andreas.rheinhardt@outlook.com> | 2021-11-09 15:42:27 +0100 |
commit | 19ed9236db8796104c5a4f3343596172b01ebd1b (patch) | |
tree | 052fb19857856da0478a423f307b31de2d03f95c /libavcodec/libx264.c | |
parent | 6f1130be7880dc9e5e7c812f377dc3e480580704 (diff) | |
download | ffmpeg-19ed9236db8796104c5a4f3343596172b01ebd1b.tar.gz |
avcodec/libx264: Remove always-false checks
Always false since this encoder was switched to encode2 and
ff_alloc_packet() in 06484d0b8a7d4d1a694ba7ab277e2ec32d6558d7
and f2b20b7a8b6fcbcd8cc669f5211e4e2ed7d8e9f3.
Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>
Diffstat (limited to 'libavcodec/libx264.c')
-rw-r--r-- | libavcodec/libx264.c | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/libavcodec/libx264.c b/libavcodec/libx264.c index 8711c72131..4fe02dd11c 100644 --- a/libavcodec/libx264.c +++ b/libavcodec/libx264.c @@ -162,11 +162,7 @@ static int encode_nals(AVCodecContext *ctx, AVPacket *pkt, p = pkt->data; /* Write the SEI as part of the first frame. */ - if (x4->sei_size > 0 && nnal > 0) { - if (x4->sei_size > size) { - av_log(ctx, AV_LOG_ERROR, "Error: nal buffer is too small\n"); - return -1; - } + if (x4->sei_size > 0) { memcpy(p, x4->sei, x4->sei_size); p += x4->sei_size; x4->sei_size = 0; |