[FFmpeg-devel] [PATCH] restoring binary compatibility with ffmpeg 0.5

Reimar Döffinger Reimar.Doeffinger
Sun Jun 6 17:17:16 CEST 2010


On Sun, Jun 06, 2010 at 05:03:40PM +0200, Reinhard Tartler wrote:
> +void ff_av_destruct_packet_nofree(AVPacket *pkt)
> +{
> +    void (*fn)(AVPacket *pkt) = dlsym(avformat_handle, "av_destruct_packet_nofree");
> +    if (!fn)
> +        av_log(NULL, AV_LOG_FATAL, "Failed to locate symbol: av_destruct_nofree\n");
> +    (*fn)(pkt);

And adding and calling a special stub function in lavc certainly is much less hackish than
this.

> +__asm__(".symver ff_av_destruct_packet_nofree,av_destruct_packet_nofree at LIBAVFORMAT_52");

Though I think unless this does not really work right (which means even more problems),
why is this not just
void ff_av_destruct_packet_nofree(AVPacket *pkt)
{
    av_destruct_packet_nofree(pkt);
}



More information about the ffmpeg-devel mailing list