Skip to content
Snippets Groups Projects
Commit 9bb54bb6 authored by Michael Niedermayer's avatar Michael Niedermayer
Browse files

nutdec: more specific return codes for decode_syncpoint()

parent 7ccc0ed6
No related branches found
No related tags found
No related merge requests found
......@@ -557,14 +557,14 @@ static int decode_syncpoint(NUTContext *nut, int64_t *ts, int64_t *back_ptr)
tmp = ffio_read_varlen(bc);
*back_ptr = nut->last_syncpoint_pos - 16 * ffio_read_varlen(bc);
if (*back_ptr < 0)
return -1;
return AVERROR_INVALIDDATA;
ff_nut_reset_ts(nut, nut->time_base[tmp % nut->time_base_count],
tmp / nut->time_base_count);
if (skip_reserved(bc, end) || ffio_get_checksum(bc)) {
av_log(s, AV_LOG_ERROR, "sync point checksum mismatch\n");
return -1;
return AVERROR_INVALIDDATA;
}
*ts = tmp / nut->time_base_count *
......
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