Hi,
We have created an FFMPEG wrapper class called VideoDecoder.cpp
which has this native method:-
void VideoDecoder::decodeFrame(uint8_t* frameData, size_t length)
{
int res = avcodec_decode_video2(codecCtx,
srcFrame,&frameFinished, &packet);
}
Now our application crashes at this line sometimes. Is there any way
of catching this exception and prevent the application from crashing?
It also seems like the link you have given does not take of these
situations. (Quote "We will focus on errors that occur as the result
of issuing JNI function calls, not arbitrary errors that happen in
native code")
Thank you,
B.Arunkumar
On Apr 11, 11:15 pm, Mārtiņš Možeiko <
martins.moze...@gmail.com>
wrote:
> Yes, it is.
> Read about how to use exceptions inJNIhere:
http://java.sun.com/docs/books/jni/html/exceptions.html#11202