Originally committed as revision 449 to svn://svn.ffmpeg.org/ffmpeg/trunk
ret = -1;
goto the_end;
}
- avcodec_open(&st->codec, codec);
+ ret = avcodec_open(&st->codec, codec);
+ if (ret < 0)
+ goto the_end;
}
}
pktl = av_mallocz(sizeof(AVPacketList));
s->handle = dlopen(liba52name, RTLD_LAZY);
if (!s->handle)
{
- fprintf(stderr, "A52 library %s could not be opened: %s\n", liba52name, dlerror());
+ fprintf(stderr, "A52 library %s could not be opened! \n%s\n", liba52name, dlerror());
return -1;
}
s->a52_init = (a52_state_t* (*)(uint32_t)) dlsymm(s->handle, "a52_init");