Michael Niedermayer <michael at niedermayer.cc> writes: > > +cleanup: > > + av_free(h[longer]); > > return 0; > > this is not the correct return code > Sorry about that, gonna fix. Thanks, Lidong