Hi! I'm using ffmpeg libs ported for WINCE and video file, encoded with
PocketDivXEncoder 0.36
Audio decodes and plays fine. But when it comes to video, this is what I get:
first loop: pkt-size = 78, pkt->data = "blablablalblalala";
second loop: pkt-size = 78, pkt->data = "blablablalblalala";
third loop: pkt-size = 79, pkt->data = "blablablalblalala";
fourth loop: pkt-size = 3780, pkt->data = "0 ''"; - CRASH
Thats is part if the code, which never reaches "frameFinished":
while(av_read_frame(ic, pkt)>=0)
{
// Decode video frame
avcodec_decode_video(pCodecCtx, pFrame,
&frameFinished,
pkt->data, pkt->size);
//Did we get a video frame?
if(frameFinished)
{
//write to file
}
av_free_packet(pkt);
}
It works, for sample, if I decode mpeg2 video (video is somehow consists of 3
streched frames in one but well anyway), but DivX encoded video crashes on
third loop with this output:
Data Abort: Thread=95c01400 Proc=8c247700 'ffdecode.exe'
AKY=00010001 PC=014c9a68 RA=014d9ae4 BVA=203ad5c4 FSR=00000405
Unhandled exception at 0x014c9a68 in ffdecode.exe: 0xC0000005: Access violation
reading location 0x003ad5c4.
Any suggestions what am I doing wrong?
_______________________________________________
libav-user mailing list
[email protected]
https://lists.mplayerhq.hu/mailman/listinfo/libav-user