Skip to content

Commit

Permalink
fixed new Coverity issues
Browse files Browse the repository at this point in the history
fixes CID 41741{7,8}
  • Loading branch information
MartinPulec committed Oct 10, 2023
1 parent 31a8b02 commit 2a73855
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/libavcodec/lavc_common.c
Original file line number Diff line number Diff line change
Expand Up @@ -228,7 +228,7 @@ int av_pixfmt_get_subsampling(enum AVPixelFormat fmt) {
}

struct pixfmt_desc av_pixfmt_get_desc(enum AVPixelFormat pixfmt) {
struct pixfmt_desc ret;
struct pixfmt_desc ret = { 0 };
const struct AVPixFmtDescriptor *avd = av_pix_fmt_desc_get(pixfmt);
ret.depth = avd->comp[0].depth;
ret.rgb = avd->flags & AV_PIX_FMT_FLAG_RGB;
Expand Down
2 changes: 1 addition & 1 deletion src/video_codec.c
Original file line number Diff line number Diff line change
Expand Up @@ -1014,7 +1014,7 @@ void i444_8_to_uyvy(int width, int height, const char *in, char *out)

struct pixfmt_desc get_pixfmt_desc(codec_t pixfmt)
{
struct pixfmt_desc ret;
struct pixfmt_desc ret = { 0 };
ret.depth = codec_info[pixfmt].bits_per_channel;
ret.subsampling = codec_info[pixfmt].subsampling;
ret.rgb = codec_info[pixfmt].rgb;
Expand Down

0 comments on commit 2a73855

Please sign in to comment.