<div dir="ltr">Hi, Sir/Madam<div><br></div><div>How are you doing recently?</div><div><br></div><div>I have a question how to remux an mp4 file using libav. </div><div>Um, as I was able to read from the mp4 file and got each avpacket, I stored the data from each avpacket to a circular buffer I created.</div>
<div>The problem is that when I wanted to take advantage of the data stored in my circular buffer, I must use av_malloc and memcpy to create and copy the data. If I used the data directly from the circular buffer, it did not work.</div>
<div>As I have saw the source code, I found that av_malloc just did the _aligned_malloc to malloc the data, and I tried that out, but still did not work.</div><div><br></div><div>Attached is my loop doing remux, it is the todo part I wanna figure out. In particular, I'm using malloc in FrameInfo class, but I have also tried the _aligned_malloc(size, 16(/32) );</div>
<div><br></div><div>Thank you so much for the help~</div></div>