ffmpeg: Use correct codec_id for av_parser_change() check
No testcase known
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
(cherry picked from commit 45f3d4e63e)
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
			
			
This commit is contained in:
		
							
								
								
									
										9
									
								
								ffmpeg.c
									
									
									
									
									
								
							
							
						
						
									
										9
									
								
								ffmpeg.c
									
									
									
									
									
								
							@@ -1736,12 +1736,11 @@ static void do_streamcopy(InputStream *ist, OutputStream *ost, const AVPacket *p
 | 
				
			|||||||
 | 
					
 | 
				
			||||||
    opkt.duration = av_rescale_q(pkt->duration, ist->st->time_base, ost->st->time_base);
 | 
					    opkt.duration = av_rescale_q(pkt->duration, ist->st->time_base, ost->st->time_base);
 | 
				
			||||||
    opkt.flags    = pkt->flags;
 | 
					    opkt.flags    = pkt->flags;
 | 
				
			||||||
 | 
					 | 
				
			||||||
    // FIXME remove the following 2 lines they shall be replaced by the bitstream filters
 | 
					    // FIXME remove the following 2 lines they shall be replaced by the bitstream filters
 | 
				
			||||||
    if (  ost->enc_ctx->codec_id != AV_CODEC_ID_H264
 | 
					    if (  ost->st->codec->codec_id != AV_CODEC_ID_H264
 | 
				
			||||||
       && ost->enc_ctx->codec_id != AV_CODEC_ID_MPEG1VIDEO
 | 
					       && ost->st->codec->codec_id != AV_CODEC_ID_MPEG1VIDEO
 | 
				
			||||||
       && ost->enc_ctx->codec_id != AV_CODEC_ID_MPEG2VIDEO
 | 
					       && ost->st->codec->codec_id != AV_CODEC_ID_MPEG2VIDEO
 | 
				
			||||||
       && ost->enc_ctx->codec_id != AV_CODEC_ID_VC1
 | 
					       && ost->st->codec->codec_id != AV_CODEC_ID_VC1
 | 
				
			||||||
       ) {
 | 
					       ) {
 | 
				
			||||||
        int ret = av_parser_change(ost->parser, ost->st->codec,
 | 
					        int ret = av_parser_change(ost->parser, ost->st->codec,
 | 
				
			||||||
                             &opkt.data, &opkt.size,
 | 
					                             &opkt.data, &opkt.size,
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user