mirror of
				https://github.com/nyanmisaka/ffmpeg-rockchip.git
				synced 2025-10-31 20:42:49 +08:00 
			
		
		
		
	libgme: convert to new channel layout API
Signed-off-by: James Almer <jamrial@gmail.com>
This commit is contained in:
		| @@ -142,7 +142,7 @@ static int read_header_gme(AVFormatContext *s) | ||||
|         st->duration = duration; | ||||
|     st->codecpar->codec_type  = AVMEDIA_TYPE_AUDIO; | ||||
|     st->codecpar->codec_id    = AV_NE(AV_CODEC_ID_PCM_S16BE, AV_CODEC_ID_PCM_S16LE); | ||||
|     st->codecpar->channels    = 2; | ||||
|     st->codecpar->ch_layout.nb_channels = 2; | ||||
|     st->codecpar->sample_rate = gme->sample_rate; | ||||
|  | ||||
|     return 0; | ||||
|   | ||||
		Reference in New Issue
	
	Block a user
	 James Almer
					James Almer