[FFmpeg-trac] #2170(avformat:reopened): problem using av_packet_merge_side_data

FFmpeg trac at avcodec.org
Thu Apr 18 10:29:54 CEST 2013

#2170: problem using av_packet_merge_side_data
             Reporter:  trynitron   |                    Owner:
                 Type:  defect      |                   Status:  reopened
             Priority:  important   |                Component:  avformat
              Version:  1.1.1       |               Resolution:
             Keywords:  regression  |               Blocked By:
             Blocking:              |  Reproduced by developer:  0
Analyzed by developer:  0           |
Changes (by trynitron):

 * status:  closed => reopened
 * resolution:  needs_more_info =>
 * component:  undetermined => avformat


 Hi, I spent some time to solve the problem, and I found it. So The
 AVpacket merging splitting process using side data is working properly.
 The problem is in wirting AVpackets to the stream using functions
 av_write_frame or av_interleaved_write_frame. In latests ffmpeg versions
 (I pull yesterday) these functions uses an other function

 now the line 525 in mux.c is                                    ret =
 split_write_packet(s, pkt);
 previously working (with side data) line was             ret =

 This function just remove side data from the buffer to be written in the
 stream, flush the data in the stream, then put again side data in the
 buffer. So the question is : what did you want to do ?

     - write all the buffer (compressed video data + side data) using
 *write_frame functions or
     - write the buffer (compressed video data) and use an other function
 to write the side data

 I hope this is sufficient for you to make a decision.


Ticket URL: <https://ffmpeg.org/trac/ffmpeg/ticket/2170#comment:9>
FFmpeg <http://ffmpeg.org>
FFmpeg issue tracker

More information about the FFmpeg-trac mailing list