[FFmpeg-trac] #1100(avformat:new): nut_read_timestamp at nutdec.c doesn return value for Android NDK
FFmpeg
trac at avcodec.org
Mon Mar 19 16:09:10 CET 2012
#1100: nut_read_timestamp at nutdec.c doesn return value for Android NDK
----------------------------------+----------------------------------
Reporter: obucinac | Type: defect
Status: new | Priority: normal
Component: avformat | Version: 0.10
Keywords: | Blocked By:
Blocking: | Reproduced by developer: 0
Analyzed by developer: 0 |
----------------------------------+----------------------------------
When building ffmpeg with Android NDK, the toolchain complains that
function nut_read_timestamp, located in file libavformt/nutdec.c does not
return value.
Function ends like this:
==========
if (stream_index == -1) return pts;
else if(stream_index == -2) return back_ptr;
assert(0);
}
==========
And my fix is this:
==========
if (stream_index == -1) return pts;
else if(stream_index == -2) return back_ptr;
assert(0);
return 0;
}
==========
I just need to return anything to enable compilation.
--
Ticket URL: <https://ffmpeg.org/trac/ffmpeg/ticket/1100>
FFmpeg <http://ffmpeg.org>
FFmpeg issue tracker
More information about the FFmpeg-trac
mailing list