Skip to content
Snippets Groups Projects
Commit 370211f4 authored by Reimar Döffinger's avatar Reimar Döffinger
Browse files

nutdec: minor simplification.


Also fixes an (incorrect) "control reaches end of non-void function"
warning with some compilers.

Signed-off-by: default avatarReimar Döffinger <Reimar.Doeffinger@gmx.de>
parent 1d128e58
No related branches found
No related tags found
No related merge requests found
...@@ -904,12 +904,10 @@ static int64_t nut_read_timestamp(AVFormatContext *s, int stream_index, ...@@ -904,12 +904,10 @@ static int64_t nut_read_timestamp(AVFormatContext *s, int stream_index,
av_assert0(nut->last_syncpoint_pos == *pos_arg); av_assert0(nut->last_syncpoint_pos == *pos_arg);
av_log(s, AV_LOG_DEBUG, "return %"PRId64" %"PRId64"\n", pts, back_ptr); av_log(s, AV_LOG_DEBUG, "return %"PRId64" %"PRId64"\n", pts, back_ptr);
if (stream_index == -1) if (stream_index == -2)
return pts;
else if (stream_index == -2)
return back_ptr; return back_ptr;
av_assert0(stream_index == -1);
av_assert0(0); return pts;
} }
static int read_seek(AVFormatContext *s, int stream_index, static int read_seek(AVFormatContext *s, int stream_index,
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment