mirror of
				https://github.com/nyanmisaka/ffmpeg-rockchip.git
				synced 2025-10-31 04:26:37 +08:00 
			
		
		
		
	Merge commit 'cb6f8245aed2c26fe95c30cd68c45983277a945a'
* commit 'cb6f8245aed2c26fe95c30cd68c45983277a945a': cmdutils: Allow calling filter_codec_opts without a set encoder pnm: Use av_pix_fmt_desc_get instead of accessing the array directly Merged-by: Michael Niedermayer <michaelni@gmx.at>
This commit is contained in:
		| @@ -1749,10 +1749,8 @@ AVDictionary *filter_codec_opts(AVDictionary *opts, enum AVCodecID codec_id, | |||||||
|     if (!codec) |     if (!codec) | ||||||
|         codec            = s->oformat ? avcodec_find_encoder(codec_id) |         codec            = s->oformat ? avcodec_find_encoder(codec_id) | ||||||
|                                       : avcodec_find_decoder(codec_id); |                                       : avcodec_find_decoder(codec_id); | ||||||
|     if (!codec) |  | ||||||
|         return NULL; |  | ||||||
|  |  | ||||||
|     switch (codec->type) { |     switch (st->codec->codec_type) { | ||||||
|     case AVMEDIA_TYPE_VIDEO: |     case AVMEDIA_TYPE_VIDEO: | ||||||
|         prefix  = 'v'; |         prefix  = 'v'; | ||||||
|         flags  |= AV_OPT_FLAG_VIDEO_PARAM; |         flags  |= AV_OPT_FLAG_VIDEO_PARAM; | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user
	 Michael Niedermayer
					Michael Niedermayer