In C, the compiler automatically converts pointers from non-const to const,
but not pointers to pointers. It has to do with the latter conversion
creating a loophole for modifying the data, if it were actually performed,
but I can't remember the details off-hand.
Anyway, that's not an Android SDK
I checked every type that I used for these parameters.There is nothing
wrong.
Actually I had that error once again and it was fixed without doing
anything with the parameter types.
But now I don't understand the cause of this error..
--
You received this message because you are subscribed to the
Looks like you could just add a cast to expected type where this function is
called, or change the declaration of whatever is used as the parameter.
Basically, that function takes an array of pointers, and promises to not
change either the values of individual pointers or the values of whatever
th
ece@ubuntu:~/workspace/FFmpeg/jni$ /home/ece/ndk/ndk-build
Install: libffmpeg.so => /home/ece/workspace/FFmpeg/libs/
armeabi
Compile thumb : takepics <= /home/ece/workspace/FFmpeg/jni/takepics.c
/home/ece/workspace/FFmpeg/jni/takepics.c: In function 'fill_image':
/home/ece/workspace/FFmpeg
ece@ubuntu:~/workspace/FFmpeg/jni$ /home/ece/ndk/ndk-build
Install: libffmpeg.so => /home/ece/workspace/FFmpeg/libs/
armeabi
Compile thumb : takepics <= /home/ece/workspace/FFmpeg/jni/takepics.c
/home/ece/workspace/FFmpeg/jni/takepics.c: In function 'fill_image':
/home/ece/workspace/FFmpeg
I have just need H 263 codec. Yes, I built ffmpeg myself.
In my code I found other problems. I share this for everyone..
// Decode video frame
avcodec_decode_video(pCodecCtx, pFrame, &frameFinished,
packet.data, packet.size);
Here avcodec_decode_video is not used anymore like that.. Instead of
i
For all I know calling avcodec_find_decoder with hardcoded codec id is
not a good idea.
What if particular stream contains data which was encoded with a
different codec?
av_open_input_file is the one I would expect to block under certain
conditions (bad URLProtocol implementation, for example), not
thank you very much...
I did it just like below and it works..but I can't tell that it's
completely true right now because I still continue to control my
code..
but thanks again
// Find the decoder for the video stream
pCodec=avcodec_find_decoder(CODEC_ID_H263);
if(pCodec==NULL)
Try to instrument avcodec_open and anything that it calls with
__android_log_print to get an idea about what is wrong.
On 5 фев, 19:03, cervello wrote:
> I'm trying to decode a video but in my code I think there is a problem
> about avcodec_find decoder().. I control it with log_message and on
>
9 matches
Mail list logo