avformat/wady: Combine skips
Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>
This commit is contained in:
		
							parent
							
								
									cdff5a2c0c
								
							
						
					
					
						commit
						69b85a69bd
					
				@ -46,13 +46,12 @@ static int wady_read_header(AVFormatContext *s)
 | 
				
			|||||||
    int channels, ret;
 | 
					    int channels, ret;
 | 
				
			||||||
    AVStream *st;
 | 
					    AVStream *st;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    avio_skip(pb, 4);
 | 
					    avio_skip(pb, 4 + 1);
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    st = avformat_new_stream(s, NULL);
 | 
					    st = avformat_new_stream(s, NULL);
 | 
				
			||||||
    if (!st)
 | 
					    if (!st)
 | 
				
			||||||
        return AVERROR(ENOMEM);
 | 
					        return AVERROR(ENOMEM);
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    avio_skip(pb, 1);
 | 
					 | 
				
			||||||
    par              = st->codecpar;
 | 
					    par              = st->codecpar;
 | 
				
			||||||
    par->codec_type  = AVMEDIA_TYPE_AUDIO;
 | 
					    par->codec_type  = AVMEDIA_TYPE_AUDIO;
 | 
				
			||||||
    par->codec_id    = AV_CODEC_ID_WADY_DPCM;
 | 
					    par->codec_id    = AV_CODEC_ID_WADY_DPCM;
 | 
				
			||||||
 | 
				
			|||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user