[FFmpeg-user] How to mux a raw h264 es into some container without x264 installed

lijing0010 at gmail.com lijing0010 at gmail.com
Mon Jan 13 08:43:59 CET 2014


Thanks Malikcis.
Another question regarding av_interleaved_write_frame, it will write a
AVPacket.
So when will AVPacket.data be freed? Do I have to set the AVBufferRef in
AVPacket?
Right now I just use:
----------------------------
AVPacket pkt;
av_init_packet(&pkt);
pkt.size = frame_size;
pkt.data = malloc(frame_size);
pkt.stream_index = (frame_indx);
av_interleaved_write_frame(out_context, &pkt);
----------------------------
Will pkt.data be released automatically or there will be memory leak here?

Thanks



--
View this message in context: http://ffmpeg-users.933282.n4.nabble.com/How-to-mux-a-raw-h264-es-into-some-container-without-x264-installed-tp4663139p4663197.html
Sent from the FFmpeg-users mailing list archive at Nabble.com.


More information about the ffmpeg-user mailing list