From 9aad1811390b3fced117155baac9eae6159ed3a2 Mon Sep 17 00:00:00 2001 From: Bradley Sepos <bradley@bradleysepos.com> Date: Sun, 13 May 2018 03:41:00 -0400 Subject: [PATCH] libhb: Increase maximum packet read size in stream.c. Previous value maxed out at lossless x264 4K or so, new value should be large enough for lossless x264 8K. Fixes #1334. (cherry picked from commit 065a485ccbaf9fc051e0d6f607ae590f5aaa40d4) --- libhb/stream.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libhb/stream.c b/libhb/stream.c index 06e6c70ab..210b5201b 100644 --- a/libhb/stream.c +++ b/libhb/stream.c @@ -5802,7 +5802,7 @@ hb_buffer_t * hb_ffmpeg_read( hb_stream_t *stream ) else { // sometimes we get absurd sizes from ffmpeg - if ( stream->ffmpeg_pkt.size >= (1 << 25) ) + if ( stream->ffmpeg_pkt.size >= (1 << 27) ) { hb_log( "ffmpeg_read: pkt too big: %d bytes", stream->ffmpeg_pkt.size ); av_packet_unref(&stream->ffmpeg_pkt); -- 2.40.0