On 30 May 2014 22:25, wm4 <[email protected]> wrote: > In my opinion, the code above is correct. Maybe you could also try to > set the AVCodecContext.refcounted_frames field to 1 before opening the > decoder, and calling av_frame_unref(frame) before calling > avcodec_decode_* (the later was needed with refcounting enabled at > least at some point).
sorry, I didn't explain myself properly... av_frame_unref(frame) doesn't free the data pointed to by extended_data[n] I'm not saying the memory isn't freed, just not by av_frame_unref ... And I was curious on who/what free it. But from you explained earlier, it all make sense now > > Can you try with mplayer and "-demuxer lavf"? Oh.... it doesn't play ! Cool ! thank you for pointing out the problem. I've been chasing that particular problem for days ! I was convinced it was in our VDPAU code! _______________________________________________ Libav-user mailing list [email protected] http://ffmpeg.org/mailman/listinfo/libav-user
