Fixed off by one packet size allocation in the smacker demuxer.
Signed-off-by: Martin Storsjö <martin@martin.st>
This commit is contained in:
		
							parent
							
								
									e055932f56
								
							
						
					
					
						commit
						a92d0fa5d2
					
				@ -306,7 +306,7 @@ static int smacker_read_packet(AVFormatContext *s, AVPacket *pkt)
 | 
				
			|||||||
        }
 | 
					        }
 | 
				
			||||||
        if (frame_size < 0)
 | 
					        if (frame_size < 0)
 | 
				
			||||||
            return AVERROR_INVALIDDATA;
 | 
					            return AVERROR_INVALIDDATA;
 | 
				
			||||||
        if (av_new_packet(pkt, frame_size + 768))
 | 
					        if (av_new_packet(pkt, frame_size + 769))
 | 
				
			||||||
            return AVERROR(ENOMEM);
 | 
					            return AVERROR(ENOMEM);
 | 
				
			||||||
        if(smk->frm_size[smk->cur_frame] & 1)
 | 
					        if(smk->frm_size[smk->cur_frame] & 1)
 | 
				
			||||||
            palchange |= 2;
 | 
					            palchange |= 2;
 | 
				
			||||||
 | 
				
			|||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user