audio/video: merge decoder return values

Will be helpful for the coming filter support. I planned on merging
audio/video decoding, but this will have to wait a bit longer, so only
remove the duplicate status codes.
This commit is contained in:
wm4
2016-02-01 21:32:01 +01:00
parent 07d8a0e142
commit ab318aeea8
7 changed files with 43 additions and 46 deletions

View File

@@ -456,8 +456,8 @@ static int decode_image(struct MPContext *mpctx)
assert(!vo_c->input_mpi);
int st = video_get_frame(d_video, &vo_c->input_mpi);
switch (st) {
case VIDEO_WAIT: return VD_WAIT;
case VIDEO_EOF: return VD_EOF;
case DATA_WAIT: return VD_WAIT;
case DATA_EOF: return VD_EOF;
default: return VD_PROGRESS;
}
}