Skip to content

Commit

Permalink
Fixed incorrect buffer size in Android video codec (#4095)
Browse files Browse the repository at this point in the history
  • Loading branch information
sauwming authored Oct 3, 2024
1 parent 7b93726 commit 146f1f2
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions pjmedia/src/pjmedia-codec/and_vid_mediacodec.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@

#define SPS_PPS_BUF_SIZE 64

#define MAX_RX_WIDTH 1200
#define MAX_RX_WIDTH 1280
#define MAX_RX_HEIGHT 800

/* Maximum duration from one key frame to the next (in seconds). */
Expand Down Expand Up @@ -1350,7 +1350,7 @@ static pj_status_t and_media_decode(pjmedia_vid_codec *codec,
return status;
}
len = write_yuv((pj_uint8_t *)output->buf,
and_media_data->dec_buf_info.size,
output->size,
output_buf,
and_media_data->dec_stride_len,
and_media_data->prm->dec_fmt.det.vid.size.w,
Expand Down

0 comments on commit 146f1f2

Please sign in to comment.