You've already forked FFmpeg
							
							
				mirror of
				https://github.com/FFmpeg/FFmpeg.git
				synced 2025-10-30 23:18:11 +02:00 
			
		
		
		
	ff_parse_close() is not the correct function for H264Context.
Originally committed as revision 15537 to svn://svn.ffmpeg.org/ffmpeg/trunk
This commit is contained in:
		| @@ -139,12 +139,20 @@ static int h264_split(AVCodecContext *avctx, | ||||
|     return 0; | ||||
| } | ||||
|  | ||||
| static close(AVCodecParserContext *s) | ||||
| { | ||||
|     H264Context *h = s->priv_data; | ||||
|     ParseContext *pc = &h->s.parse_context; | ||||
|  | ||||
|     av_free(pc->buffer); | ||||
| } | ||||
|  | ||||
|  | ||||
| AVCodecParser h264_parser = { | ||||
|     { CODEC_ID_H264 }, | ||||
|     sizeof(H264Context), | ||||
|     NULL, | ||||
|     h264_parse, | ||||
|     ff_parse_close, | ||||
|     close, | ||||
|     h264_split, | ||||
| }; | ||||
|   | ||||
		Reference in New Issue
	
	Block a user