mirror of
https://git.ffmpeg.org/ffmpeg.git
synced 2025-03-05 12:07:49 +00:00
lavc/mediacodec: fix zero stride for OMX.allwinner.video.decoder.avc
This commit is contained in:
parent
c2bbcf1607
commit
f3ec8ac0f4
@ -247,7 +247,7 @@ static int mediacodec_dec_parse_format(AVCodecContext *avctx, MediaCodecDecConte
|
|||||||
av_freep(&format);
|
av_freep(&format);
|
||||||
return AVERROR_EXTERNAL;
|
return AVERROR_EXTERNAL;
|
||||||
}
|
}
|
||||||
s->stride = value >= 0 ? value : s->width;
|
s->stride = value > 0 ? value : s->width;
|
||||||
|
|
||||||
if (!ff_AMediaFormat_getInt32(s->format, "slice-height", &value)) {
|
if (!ff_AMediaFormat_getInt32(s->format, "slice-height", &value)) {
|
||||||
format = ff_AMediaFormat_toString(s->format);
|
format = ff_AMediaFormat_toString(s->format);
|
||||||
|
Loading…
Reference in New Issue
Block a user