avformat/sccdec: Avoid variable that is always zero
Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@gmail.com>
This commit is contained in:
		
							parent
							
								
									a7b82fe52b
								
							
						
					
					
						commit
						05475ad26b
					
				@ -65,7 +65,6 @@ static int scc_read_header(AVFormatContext *s)
 | 
				
			|||||||
    AVStream *st = avformat_new_stream(s, NULL);
 | 
					    AVStream *st = avformat_new_stream(s, NULL);
 | 
				
			||||||
    char line2[4096], line[4096];
 | 
					    char line2[4096], line[4096];
 | 
				
			||||||
    int64_t pos, ts, next_ts = AV_NOPTS_VALUE;
 | 
					    int64_t pos, ts, next_ts = AV_NOPTS_VALUE;
 | 
				
			||||||
    int ret = 0;
 | 
					 | 
				
			||||||
    ptrdiff_t len;
 | 
					    ptrdiff_t len;
 | 
				
			||||||
    uint8_t out[4096];
 | 
					    uint8_t out[4096];
 | 
				
			||||||
    FFTextReader tr;
 | 
					    FFTextReader tr;
 | 
				
			||||||
@ -175,7 +174,7 @@ static int scc_read_header(AVFormatContext *s)
 | 
				
			|||||||
 | 
					
 | 
				
			||||||
    ff_subtitles_queue_finalize(s, &scc->q);
 | 
					    ff_subtitles_queue_finalize(s, &scc->q);
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    return ret;
 | 
					    return 0;
 | 
				
			||||||
fail:
 | 
					fail:
 | 
				
			||||||
    ff_subtitles_queue_clean(&scc->q);
 | 
					    ff_subtitles_queue_clean(&scc->q);
 | 
				
			||||||
    return AVERROR(ENOMEM);
 | 
					    return AVERROR(ENOMEM);
 | 
				
			||||||
 | 
				
			|||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user