if not sometimes it's trying to free uninitialized memory and programs freeze.
Also at the end of the open method in that same class, there's something like:
close();
if(isOk(error))
{
return _open();
}
that makes also some applications crash later in sws_scale in getRGB and seems unecesary as that functions have already been called. Removing that lines solves the problem and seems to not introduce any error.
Appart from that, when compiling with new versions of ffmpeg, img_convert seems to not exist anymore, swscale can be also used for converting between formats.
I've been trying to send this changes to the mail address in the home page but doesn't seems to work,
Mine is: arturocastro at mailc net
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Hi
In the last version of fobs, there are some errors with uninitialized memory:
in Decoder::reallocTransitionPicture(int newWidth, int newHeight)
if(transitionPictureBuf == NULL || transitionPictureWidth != newWidth ||
transitionPictureHeight != newHeight){
av_free(transitionPictureBuf);
av_free(transitionPictureBufRgb);
transitionPictureBuf = NULL;
transitionPictureBufRgb = NULL;
....
should be something like
if(transitionPictureBuf != NULL && (transitionPictureWidth != newWidth ||
transitionPictureHeight != newHeight)){
av_free(transitionPictureBuf);
av_free(transitionPictureBufRgb);
transitionPictureBuf = NULL;
transitionPictureBufRgb = NULL;
}
if(transitionPictureBuf == NULL){
...
if not sometimes it's trying to free uninitialized memory and programs freeze.
Also at the end of the open method in that same class, there's something like:
close();
if(isOk(error))
{
return _open();
}
that makes also some applications crash later in sws_scale in getRGB and seems unecesary as that functions have already been called. Removing that lines solves the problem and seems to not introduce any error.
Appart from that, when compiling with new versions of ffmpeg, img_convert seems to not exist anymore, swscale can be also used for converting between formats.
I've been trying to send this changes to the mail address in the home page but doesn't seems to work,
Mine is: arturocastro at mailc net