On Mar 2, 2012, at 16:00 , ALESSANDRO PAGANELLI wrote:

> Andrey, I finally managed to solve the issue! Thanks a lot :)  
> 
> Here, I briefly report what I did (the complete code can be found in the 
> attached source file).

Alessandro, in the source code which you attached you copy the frame which you 
read to a new frame which you write afterwards. 

Is this copying really required? Why not use the same packet, like this?

returnCode = av_read_frame(g_inputFormatContext, &readPacket);
…
returnCode = av_write_frame(g_outputFormatContext, &readPacket);


  
_______________________________________________
Libav-user mailing list
[email protected]
http://ffmpeg.org/mailman/listinfo/libav-user

Reply via email to