I've based my codec on the DVSDK samples. In the decoder there is a fatal condition that halts the decode operation and prints out "fatal bit error". The line of code is this...
/* If no encoded data was used we cannot find the next frame */
if (ret == Dmai_EBITERROR && Buffer_getNumBytesUsed(hInBuf) == 0) {
ERR("Fatal bit error\n");
cleanup(THREAD_FAILURE);
}
In my application I get this error on an occasional basis. In this particular situation I just reuse the display buffer I provided to the Vdec2_process and ignore the error. That's fine and the application keeps encoding as it should.
The real question is why am I getting these errors? I noticed that when I was using a DVD recorded from the TV to generate my test video I could see a situation that generated a lot of these errors. There is a particular commercial that had a bunch of complete scene changes in rapid succession. During this I saw a lot of "fatal bit error" printouts and some corruption of the decoded video. Anyone got any ideas where I should start looking?
John A