Fix av_frame_free call usage.
This commit is contained in:
		@@ -164,7 +164,7 @@ AVFrame *AVDecoder::getDecodedFrame(AVCodecContext *codec_ctx, int frame_stream_
 | 
				
			|||||||
        return pFrame;
 | 
					        return pFrame;
 | 
				
			||||||
    } else {
 | 
					    } else {
 | 
				
			||||||
#if LIBAVCODEC_VERSION_INT >= AV_VERSION_INT(55,28,1)
 | 
					#if LIBAVCODEC_VERSION_INT >= AV_VERSION_INT(55,28,1)
 | 
				
			||||||
        av_frame_free(pFrame);
 | 
					        av_frame_free(&pFrame);
 | 
				
			||||||
#else
 | 
					#else
 | 
				
			||||||
        av_free(pFrame);
 | 
					        av_free(pFrame);
 | 
				
			||||||
#endif
 | 
					#endif
 | 
				
			||||||
@@ -249,8 +249,8 @@ QByteArray AVDecoder::getVideoThumbnail(int width, int height)
 | 
				
			|||||||
    av_free(buffer);
 | 
					    av_free(buffer);
 | 
				
			||||||
 | 
					
 | 
				
			||||||
#if LIBAVCODEC_VERSION_INT >= AV_VERSION_INT(55,28,1)
 | 
					#if LIBAVCODEC_VERSION_INT >= AV_VERSION_INT(55,28,1)
 | 
				
			||||||
    av_frame_free(pFrameRGB);
 | 
					    av_frame_free(&pFrameRGB);
 | 
				
			||||||
    av_frame_free(pFrame);
 | 
					    av_frame_free(&pFrame);
 | 
				
			||||||
#else
 | 
					#else
 | 
				
			||||||
    av_free(pFrameRGB);
 | 
					    av_free(pFrameRGB);
 | 
				
			||||||
    av_free(pFrame);
 | 
					    av_free(pFrame);
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user