mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2024-11-21 10:55:51 +02:00
avcodec/speedhq: Replace always-true check by assert
Should fix Coverity tickets #1473572 and #1473504. Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>
This commit is contained in:
parent
8ff3fbf6bc
commit
7a5f7caee9
@ -295,7 +295,8 @@ static int decode_speedhq_border(const SHQContext *s, GetBitContext *gb, AVFrame
|
||||
if (s->subsampling == SHQ_SUBSAMPLING_420) {
|
||||
dest_cb = frame->data[1] + frame->linesize[1] * (y/2 + field_number) + x / 2;
|
||||
dest_cr = frame->data[2] + frame->linesize[2] * (y/2 + field_number) + x / 2;
|
||||
} else if (s->subsampling == SHQ_SUBSAMPLING_422) {
|
||||
} else {
|
||||
av_assert2(s->subsampling == SHQ_SUBSAMPLING_422);
|
||||
dest_cb = frame->data[1] + frame->linesize[1] * (y + field_number) + x / 2;
|
||||
dest_cr = frame->data[2] + frame->linesize[2] * (y + field_number) + x / 2;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user