mirror of
				https://github.com/ossrs/srs.git
				synced 2025-03-09 15:49:59 +00:00 
			
		
		
		
	
							parent
							
								
									dd8f7ff09a
								
							
						
					
					
						commit
						4ba485002c
					
				
					 3 changed files with 10 additions and 5 deletions
				
			
		|  | @ -157,6 +157,8 @@ For previous versions, please read: | |||
| 
 | ||||
| ## V4 changes | ||||
| 
 | ||||
| * v4.0, 2021-03-03, Fix [#2106][bug #2106], [#2011][bug #2011], RTMP/AAC transcode to Opus bug. 4.0.81 | ||||
| * v4.0, 2021-03-02, Refine build script for FFmpeg and SRTP. 4.0.80 | ||||
| * v4.0, 2021-03-02, Upgrade libsrtp from 2.0.0 to 2.3.0, with source code. 4.0.79 | ||||
| * v4.0, 2021-03-01, Upgrade openssl from 1.1.0e to 1.1.1b, with source code. 4.0.78 | ||||
| * v4.0, 2021-03-01, Enable Object Cache and Zero Copy Nack by default. 4.0.77 | ||||
|  | @ -1823,6 +1825,8 @@ Winlin | |||
| [bug #1657-2]: https://github.com/ossrs/srs/issues/1657#issuecomment-722904004 | ||||
| [bug #1657-3]: https://github.com/ossrs/srs/issues/1657#issuecomment-722971676 | ||||
| [bug #1998]: https://github.com/ossrs/srs/issues/1998 | ||||
| [bug #2106]: https://github.com/ossrs/srs/issues/2106 | ||||
| [bug #2011]: https://github.com/ossrs/srs/issues/2011 | ||||
| [bug #zzzzzzzzzzzzz]: https://github.com/ossrs/srs/issues/zzzzzzzzzzzzz | ||||
| 
 | ||||
| [exo #828]: https://github.com/google/ExoPlayer/pull/828 | ||||
|  |  | |||
|  | @ -130,10 +130,11 @@ srs_error_t SrsAudioDecoder::decode(SrsSample *pkt, char *buf, int &size) | |||
|             return srs_error_new(ERROR_RTC_RTP_MUXER, "Failed to calculate data size"); | ||||
|         } | ||||
| 
 | ||||
|         for (int i = 0; i < frame_->nb_samples; i++) { | ||||
|             if (size + pcm_size * codec_ctx_->channels <= max) { | ||||
|                 memcpy(buf + size,frame_->data[0] + pcm_size*codec_ctx_->channels * i, pcm_size * codec_ctx_->channels); | ||||
|                 size += pcm_size * codec_ctx_->channels; | ||||
|         // @see https://github.com/ossrs/srs/pull/2011/files
 | ||||
|         for (int i = 0; i < codec_ctx_->channels; i++) { | ||||
|             if (size + pcm_size * frame_->nb_samples <= max) { | ||||
|                 memcpy(buf + size,frame_->data[i],pcm_size * frame_->nb_samples); | ||||
|                 size += pcm_size * frame_->nb_samples; | ||||
|             } | ||||
|         } | ||||
|     } | ||||
|  |  | |||
|  | @ -24,6 +24,6 @@ | |||
| #ifndef SRS_CORE_VERSION4_HPP | ||||
| #define SRS_CORE_VERSION4_HPP | ||||
| 
 | ||||
| #define SRS_VERSION4_REVISION 79 | ||||
| #define SRS_VERSION4_REVISION 81 | ||||
| 
 | ||||
| #endif | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue