aboutsummaryrefslogtreecommitdiffstats
path: root/libavformat/sbgdec.c
diff options
context:
space:
mode:
authorNicolas George <nicolas.george@normalesup.org>2011-12-20 19:08:04 +0100
committerNicolas George <nicolas.george@normalesup.org>2011-12-20 19:08:04 +0100
commitb0aaf304a778f0a49d42c032aa83efa62c3291c4 (patch)
treeb52784fbb38ce17b589428d3293ed266a3494361 /libavformat/sbgdec.c
parent154c0a8c989c4f2af9aca3d4bd3f9bf771178c2a (diff)
downloadffmpeg-b0aaf304a778f0a49d42c032aa83efa62c3291c4.tar.gz
Replace PATCHWELCOME by relevant error codes.
This supersedes commit 154c0a8. The bug was also reported by Rafaël Carré.
Diffstat (limited to 'libavformat/sbgdec.c')
-rw-r--r--libavformat/sbgdec.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libavformat/sbgdec.c b/libavformat/sbgdec.c
index e3a05fff06..fb0882c31c 100644
--- a/libavformat/sbgdec.c
+++ b/libavformat/sbgdec.c
@@ -1467,7 +1467,7 @@ static int sbg_read_seek2(AVFormatContext *avf, int stream_index,
int64_t min_ts, int64_t ts, int64_t max_ts, int flags)
{
if (flags || stream_index > 0)
- return AVERROR_PATCHWELCOME;
+ return AVERROR(EINVAL);
if (stream_index < 0)
ts = av_rescale_q(ts, AV_TIME_BASE_Q, avf->streams[0]->time_base);
avf->streams[0]->cur_dts = ts;