rtpdec_vp8: Simplify code by using an existing helper function
Signed-off-by: Martin Storsjö <martin@martin.st>
This commit is contained in:
		
							parent
							
								
									ed79093222
								
							
						
					
					
						commit
						3b366c3aa0
					
				@ -225,11 +225,8 @@ static int vp8_handle_packet(AVFormatContext *ctx, PayloadContext *vp8,
 | 
				
			|||||||
 | 
					
 | 
				
			||||||
        if (vp8->timestamp != *timestamp) {
 | 
					        if (vp8->timestamp != *timestamp) {
 | 
				
			||||||
            // Missed the start of the new frame, sequence broken
 | 
					            // Missed the start of the new frame, sequence broken
 | 
				
			||||||
            vp8->sequence_ok = 0;
 | 
					            return vp8_broken_sequence(ctx, vp8,
 | 
				
			||||||
            av_log(ctx, AV_LOG_WARNING,
 | 
					                                       "Received no start marker; dropping frame\n");
 | 
				
			||||||
                   "Received no start marker; dropping frame\n");
 | 
					 | 
				
			||||||
            vp8_free_buffer(vp8);
 | 
					 | 
				
			||||||
            return AVERROR(EAGAIN);
 | 
					 | 
				
			||||||
        }
 | 
					        }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
        if (seq != expected_seq) {
 | 
					        if (seq != expected_seq) {
 | 
				
			||||||
 | 
				
			|||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user