Hi:
I will always get "[wmapro @ 0xcf4e50]Unknown extradata size" error
message with test code like this: (from libavcodec/api-example.c)
avcodec_init(); /* must be called before using avcodec lib */
avcodec_register_all(); /* register all the codecs */
av_init_packet(&avpkt);
AVCodec *codec;
codec = avcodec_find_decoder(CODEC_ID_WMAPRO);
if (!codec) {
RMDBGLOG((LOCALDBG, "!!! WMAPRO codec not found !!!\n"));
}
avc = avcodec_alloc_context();
if (avcodec_open(avc, codec) < 0) {
RMDBGLOG((LOCALDBG, "!!! could not open WMAPRO codec !!!\n"));
}
After digging wmaprodec.c, I found decode_init() requires me to fill at
least 18 bytes of extradata. I don't have to do this if I use CODEC_ID_AC3.
Why? And how do I fill extradata before I call avcodec_open()?
_______________________________________________
libav-user mailing list
[email protected]
https://lists.mplayerhq.hu/mailman/listinfo/libav-user