You've already forked FFmpeg
mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2025-08-10 06:10:52 +02:00
avcodec/libx264: Remove always-false checks
Always false since this encoder was switched to encode2 and ff_alloc_packet() in06484d0b8a
andf2b20b7a8b
. Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>
This commit is contained in:
@@ -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;
|
||||
|
Reference in New Issue
Block a user