mirror of
				https://github.com/nyanmisaka/ffmpeg-rockchip.git
				synced 2025-10-27 02:41:54 +08:00 
			
		
		
		
	cdxl demux: do not create packets with uninitialized data at EOF.
Fixes a failure in cdxl-pal8 test for the valgrind FATE instance. Signed-off-by: Reimar Döffinger <Reimar.Doeffinger@gmx.de>
This commit is contained in:
		| @@ -142,6 +142,7 @@ static int cdxl_read_packet(AVFormatContext *s, AVPacket *pkt) | ||||
|             av_free_packet(pkt); | ||||
|             return ret; | ||||
|         } | ||||
|         av_shrink_packet(pkt, CDXL_HEADER_SIZE + ret); | ||||
|         pkt->stream_index  = cdxl->video_stream_index; | ||||
|         pkt->flags        |= AV_PKT_FLAG_KEY; | ||||
|         pkt->pos           = pos; | ||||
|   | ||||
		Reference in New Issue
	
	Block a user
	 Reimar Döffinger
					Reimar Döffinger