> > This is interesting. Having commented out the line: > > av_dict_set(&dict, "b", "2.5M", 0); > > The Windows Media files are now decoding correctly (at least on Mac); > > I'll need to try this on Windows to see if it has an effect on the > > segfault. > > > > I note that that line appears in lots of example code online but it's > > not explained anywhere what the "b" key represents. Can someone > > explain what it does?. Anyway I'll check on my Windows VM when I get > > home and report the effects. > > It's for bitrate. > See libavcodec/options.c:78
Thank you very much Andrey. And thanks to Ronald and Justin for their help too; after fixing the memory allocation and removing the dictionary setting I now seem to be avoiding the segfault, and have the ability to decode Windows Media files. There are still things that bother me about my implementation, particularly around thread lock management, but I will try and express these in another thread once I've nailed them down. Regards Ibrahim _______________________________________________ libav-api mailing list [email protected] https://lists.libav.org/mailman/listinfo/libav-api
