diff options
author | Wan-Teh Chang <wtc@google.com> | 2024-03-28 12:24:24 -0700 |
---|---|---|
committer | Wan-Teh Chang <wtc@google.com> | 2024-04-02 17:56:48 +0000 |
commit | dc74cf923b29c2b513770877e8d15dc5f22a4c57 (patch) | |
tree | ccd7d1313e390cb00dd786744375f31225bc8ab5 | |
parent | bf932674a83f52e407f7c2a738fc08550f13711c (diff) | |
download | libvpx-dc74cf923b29c2b513770877e8d15dc5f22a4c57.tar.gz |
Dont use VPX_CODEC_CORRUPT_FRAME in set_frame_size
VPX_CODEC_CORRUPT_FRAME is a decoder error. It is strange for
vpx_codec_encode() to fail with this error. In set_frame_size(), change
VPX_CODEC_CORRUPT_FRAME to VPX_CODEC_ERROR.
The use of VPX_CODEC_CORRUPT_FRAME was originally added in
commit 1ed56a46b3.
Change-Id: Iee92ed4cfca5061289b278ece2ba475cf98fec06
-rw-r--r-- | vp9/encoder/vp9_encoder.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/vp9/encoder/vp9_encoder.c b/vp9/encoder/vp9_encoder.c index c6cf15da2..8616cdc63 100644 --- a/vp9/encoder/vp9_encoder.c +++ b/vp9/encoder/vp9_encoder.c @@ -3901,7 +3901,7 @@ static void set_frame_size(VP9_COMP *cpi) { } if (!frame_is_intra_only(cm) && !has_valid_ref_frame) { vpx_internal_error( - &cm->error, VPX_CODEC_CORRUPT_FRAME, + &cm->error, VPX_CODEC_ERROR, "Can't find at least one reference frame with valid size"); } |