mirror of
https://github.com/nyanmisaka/ffmpeg-rockchip.git
synced 2025-10-22 00:20:07 +08:00
av(format|device): Add const to muxer packet data pointers
The packets given to muxers need not be writable, so it is best to access them via const uint8_t*. Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>
This commit is contained in:
@@ -100,7 +100,8 @@ static av_cold int fbdev_write_header(AVFormatContext *h)
|
||||
static int fbdev_write_packet(AVFormatContext *h, AVPacket *pkt)
|
||||
{
|
||||
FBDevContext *fbdev = h->priv_data;
|
||||
uint8_t *pin, *pout;
|
||||
const uint8_t *pin;
|
||||
uint8_t *pout;
|
||||
enum AVPixelFormat fb_pix_fmt;
|
||||
int disp_height;
|
||||
int bytes_to_copy;
|
||||
|
Reference in New Issue
Block a user