|
1. I use the xvid mpeg-4 codec filter to encode the data sent by the network and receive the data from the network to decode using the xvid mpeg-4 video decoder filter. Even if the encoding parameters use the default values, as long as there are b frames, the second one appears when decoding. There will be a Division by zero error when i-frames are set. Setting max_bframes to 0 will not cause any problems. In fact, it is also forbidden to encode b-frames. When decoding, it can be guaranteed to start decoding from i-frames and the data is free of errors.
2. When I do not use the xvid filter, but directly use the API provided by xvidcore.dll to decompress the data, an Access violation error occurs. The error occurs in the xvidcore
decoder_bframe (dec,&bs, quant, fcode_forward, fcode_backward)
And is
MACROBLOCK * mb =&dec-> mbs [y * dec-> mb_width + x];
MACROBLOCK * last_mb =&dec-> last_mbs [y * dec-> mb_width + x];
mb, some variables in last_mb have no set value.
How do I solve these problems, please remind me.
Thank you. |
|