History

avcodec/hevc/ps: return a proper error code when we don't support parsing an sps

James Almer committed 2 years ago

Commit 32906921 parent 1cead901 file · +1 −1Browse files

Unified · Split

libavcodec/hevc/ps.c+1−1
@@ -1210,7 +1210,7 @@ int ff_hevc_parse_sps(HEVCSPS *sps, GetBitContext *gb, unsigned int *sps_id, · 1209 unmodified lines
12101210 if (sps->vps->nb_layers == 1) {
12111211 av_log(avctx, AV_LOG_WARNING, "SPS %d references an unsupported VPS extension. Ignoring\n",
12121212 *sps_id);
1213− return AVERROR_INVALIDDATA;
1213+ return AVERROR(ENOSYS);
12141214 }
12151215
12161216 if (get_bits1(gb) && // update_rep_format_flag

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t