[FFmpeg-trac] #3586(avcodec:new): [discrepancy with libav] avcodec_encode_video2 merges packet side data with the packet body

FFmpeg trac at avcodec.org
Wed Apr 23 21:23:56 CEST 2014


#3586: [discrepancy with libav] avcodec_encode_video2 merges packet side data with
the packet body
----------------------------------+-----------------------------------
             Reporter:  Lastique  |                    Owner:
                 Type:  defect    |                   Status:  new
             Priority:  normal    |                Component:  avcodec
              Version:  2.2.1     |               Resolution:
             Keywords:            |               Blocked By:
             Blocking:            |  Reproduced by developer:  0
Analyzed by developer:  0         |
----------------------------------+-----------------------------------

Comment (by gjdfgh):

 The side data merging is a really ugly, crappy, disgusting etc. (insert
 more deprecatory words here), that has to be disabled by each user.

 I use this code to disable it:
 {{{
 #if LIBAVFORMAT_VERSION_MICRO >= 100
     /* Keep side data as side data instead of mashing it into the packet
      * stream.
      * Note: Libav doesn't have this horrible insanity. */
     av_opt_set(av_ctx, "fflags", "+keepside", 0);
 #endif
 }}}

 But I'd argue that it should be disabled by default. User applications
 which pass only packet data (without side data), i.e. are broken, could
 merge the side data manually by calling an API function.

--
Ticket URL: <https://trac.ffmpeg.org/ticket/3586#comment:5>
FFmpeg <https://ffmpeg.org>
FFmpeg issue tracker


More information about the FFmpeg-trac mailing list