[FFmpeg-trac] #7220(avformat:new): Pointer returned from av_demuxer_iterate() should not be const

FFmpeg trac at avcodec.org
Sat May 19 19:57:52 EEST 2018


#7220: Pointer returned from av_demuxer_iterate() should not be const
------------------------------------+------------------------------------
             Reporter:  jlindgren   |                    Owner:
                 Type:  defect      |                   Status:  new
             Priority:  normal      |                Component:  avformat
              Version:  git-master  |               Resolution:
             Keywords:              |               Blocked By:
             Blocking:              |  Reproduced by developer:  0
Analyzed by developer:  0           |
------------------------------------+------------------------------------

Comment (by jlindgren):

 Well, if the goal is to annotate all uses of <AVInputFormat *> with
 <const>, then IMHO it would have been better to start with the functions
 taking such a parameter, and only afterwards move on the the functions
 returning <AVInputFormat *>.

 That way, clients using the FFmpeg libraries could update cleanly to use
 <const AVInputFormat *> everywhere, without adding ugly casts.

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


More information about the FFmpeg-trac mailing list