1
0
mirror of https://github.com/FFmpeg/FFmpeg.git synced 2024-12-23 12:43:46 +02:00

Replace PATCHWELCOME by relevant error codes.

This supersedes commit 154c0a8.
The bug was also reported by Rafaël Carré.
This commit is contained in:
Nicolas George 2011-12-20 19:08:04 +01:00
parent 154c0a8c98
commit b0aaf304a7
2 changed files with 2 additions and 2 deletions

View File

@ -40,7 +40,7 @@ static int ff_celt_error_to_averror(int err)
#endif #endif
case CELT_INTERNAL_ERROR: return AVERROR(EFAULT); case CELT_INTERNAL_ERROR: return AVERROR(EFAULT);
case CELT_CORRUPTED_DATA: return AVERROR_INVALIDDATA; case CELT_CORRUPTED_DATA: return AVERROR_INVALIDDATA;
case CELT_UNIMPLEMENTED: return AVERROR_PATCHWELCOME; case CELT_UNIMPLEMENTED: return AVERROR(ENOSYS);
#ifdef ENOTRECOVERABLE #ifdef ENOTRECOVERABLE
case CELT_INVALID_STATE: return AVERROR(ENOTRECOVERABLE); case CELT_INVALID_STATE: return AVERROR(ENOTRECOVERABLE);
#endif #endif

View File

@ -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) int64_t min_ts, int64_t ts, int64_t max_ts, int flags)
{ {
if (flags || stream_index > 0) if (flags || stream_index > 0)
return AVERROR_PATCHWELCOME; return AVERROR(EINVAL);
if (stream_index < 0) if (stream_index < 0)
ts = av_rescale_q(ts, AV_TIME_BASE_Q, avf->streams[0]->time_base); ts = av_rescale_q(ts, AV_TIME_BASE_Q, avf->streams[0]->time_base);
avf->streams[0]->cur_dts = ts; avf->streams[0]->cur_dts = ts;