mirror of
				https://github.com/nyanmisaka/ffmpeg-rockchip.git
				synced 2025-10-31 20:42:49 +08:00 
			
		
		
		
	avformat/moflex: Remove unneeded format variable
Fixes: CID1477423 Uninitialized scalar variable Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
This commit is contained in:
		| @@ -172,7 +172,6 @@ static int moflex_read_sync(AVFormatContext *s) | |||||||
|         unsigned type, ssize, codec_id = 0; |         unsigned type, ssize, codec_id = 0; | ||||||
|         unsigned codec_type, width = 0, height = 0, sample_rate = 0, channels = 0; |         unsigned codec_type, width = 0, height = 0, sample_rate = 0, channels = 0; | ||||||
|         int stream_index = -1; |         int stream_index = -1; | ||||||
|         int format; |  | ||||||
|         AVRational fps; |         AVRational fps; | ||||||
|  |  | ||||||
|         read_var_byte(s, &type); |         read_var_byte(s, &type); | ||||||
| @@ -213,7 +212,6 @@ static int moflex_read_sync(AVFormatContext *s) | |||||||
|             fps.den = avio_rb16(pb); |             fps.den = avio_rb16(pb); | ||||||
|             width = avio_rb16(pb); |             width = avio_rb16(pb); | ||||||
|             height = avio_rb16(pb); |             height = avio_rb16(pb); | ||||||
|             format = AV_PIX_FMT_YUV420P; |  | ||||||
|             avio_skip(pb, type == 3 ? 3 : 2); |             avio_skip(pb, type == 3 ? 3 : 2); | ||||||
|             break; |             break; | ||||||
|         case 4: |         case 4: | ||||||
| @@ -235,7 +233,6 @@ static int moflex_read_sync(AVFormatContext *s) | |||||||
|             st->codecpar->height     = height; |             st->codecpar->height     = height; | ||||||
|             st->codecpar->sample_rate= sample_rate; |             st->codecpar->sample_rate= sample_rate; | ||||||
|             st->codecpar->channels   = channels; |             st->codecpar->channels   = channels; | ||||||
|             st->codecpar->format     = format; |  | ||||||
|             st->priv_data            = av_packet_alloc(); |             st->priv_data            = av_packet_alloc(); | ||||||
|             if (!st->priv_data) |             if (!st->priv_data) | ||||||
|                 return AVERROR(ENOMEM); |                 return AVERROR(ENOMEM); | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user
	 Michael Niedermayer
					Michael Niedermayer