[FFmpeg-trac] #8638(documentation:new): the mode of fopen in example 'hw_decode' was wrong when used in windows

FFmpeg trac at avcodec.org
Wed Apr 29 04:31:02 EEST 2020


#8638: the mode of fopen in example 'hw_decode' was wrong when used in windows
-------------------------------------+-------------------------------------
             Reporter:  elite_jwp    |                     Type:  defect
               Status:  new          |                 Priority:  minor
            Component:               |                  Version:  4.2
  documentation                      |
             Keywords:  hw_decode    |               Blocked By:
  fopen                              |
             Blocking:               |  Reproduced by developer:  0
Analyzed by developer:  0            |
-------------------------------------+-------------------------------------
 In the example 'hw_decode.c:225', the code is as below:

 {{{
  /* open the file to dump raw data */
  output_file = fopen(argv[3], "w+");
 }}}

 Here, the output file wasn't opened with mode "w+b" which would cause the
 data not be written "as is" in windows.

--
Ticket URL: <https://trac.ffmpeg.org/ticket/8638>
FFmpeg <https://ffmpeg.org>
FFmpeg issue tracker


More information about the FFmpeg-trac mailing list