[FFmpeg-trac] #211(avutil:new): Function static int64_t nut_read_timestamp(AVFormatContext *s, int stream_index, int64_t *pos_arg, int64_t pos_limit) haven't got return operator after assert(0)

FFmpeg trac at avcodec.org
Tue May 17 15:01:19 CEST 2011


#211: Function static int64_t nut_read_timestamp(AVFormatContext *s, int
stream_index, int64_t *pos_arg, int64_t pos_limit) haven't got return
operator after assert(0)
---------------------+---------------------
  Reporter:  Alex    |      Owner:  michael
      Type:  defect  |     Status:  new
  Priority:  normal  |  Component:  avutil
   Version:  git     |   Keywords:  nutdec
Blocked By:          |   Blocking:
Reproduced:  0       |   Analyzed:  0
---------------------+---------------------
 Look on libavutil/nutdec.c
 Function static int64_t nut_read_timestamp(AVFormatContext *s, int
 stream_index, int64_t *pos_arg, int64_t pos_limit) that starts from the
 line 831.
 It has to return int64_t value but the end of the function haven't got any
 return operators.

 I propose to put there ''return AV_NOPTS_VALUE;'' as the last line of the
 function.

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


More information about the FFmpeg-trac mailing list