mirror of
https://gitee.com/openharmony/third_party_ffmpeg
synced 2024-11-23 03:09:51 +00:00
commit
7a666f073f
@ -255,6 +255,9 @@ void avcodec_align_dimensions2(AVCodecContext *s, int *width, int *height,
|
||||
if (s->codec_id == AV_CODEC_ID_SVQ1) {
|
||||
w_align = 64;
|
||||
h_align = 64;
|
||||
} else if (s->codec_id == AV_CODEC_ID_SNOW) {
|
||||
w_align = 16;
|
||||
h_align = 16;
|
||||
}
|
||||
break;
|
||||
case AV_PIX_FMT_RGB555:
|
||||
|
@ -191,7 +191,7 @@ static int avgblur_opencl_filter_frame(AVFilterLink *inlink, AVFrame *input)
|
||||
goto fail;
|
||||
}
|
||||
|
||||
for (p = 0; p < FF_ARRAY_ELEMS(output->data); p++) {
|
||||
for (p = 0; p < FF_MIN(FF_ARRAY_ELEMS(output->data), 4); p++) {
|
||||
src = (cl_mem) input->data[p];
|
||||
dst = (cl_mem) output->data[p];
|
||||
inter = (cl_mem)intermediate->data[p];
|
||||
|
Loading…
Reference in New Issue
Block a user