[vlc-commits] [Git][videolan/vlc][master] avformat: fix int pointer used in place of AVPixelFormat enum pointer
Steve Lhomme (@robUx4)
gitlab at videolan.org
Fri May 5 16:47:37 UTC 2023
Steve Lhomme pushed to branch master at VideoLAN / VLC
Commits:
d109df24 by Steve Lhomme at 2023-05-05T16:29:58+00:00
avformat: fix int pointer used in place of AVPixelFormat enum pointer
- - - - -
1 changed file:
- modules/demux/avformat/mux.c
Changes:
=====================================
modules/demux/avformat/mux.c
=====================================
@@ -320,10 +320,12 @@ static int AddStream( sout_mux_t *p_mux, sout_input_t *p_input )
video_format_t vfmt;
video_format_Copy(&vfmt, &fmt->video);
video_format_FixRgb(&vfmt);
- if(GetFfmpegChroma(&codecpar->format, &vfmt))
+ enum AVPixelFormat avformat = AV_PIX_FMT_NONE;
+ if(GetFfmpegChroma(&avformat, &vfmt))
msg_Warn(p_mux, "can't match format RAW video %4.4s",
(const char *)&vfmt.i_chroma);
video_format_Clean(&vfmt);
+ codecpar->format = avformat;
}
if (fmt->i_bitrate == 0) {
msg_Warn( p_mux, "Missing video bitrate, assuming 512k" );
View it on GitLab: https://code.videolan.org/videolan/vlc/-/commit/d109df247cc401225f305307041123df09b45b52
--
View it on GitLab: https://code.videolan.org/videolan/vlc/-/commit/d109df247cc401225f305307041123df09b45b52
You're receiving this email because of your account on code.videolan.org.
VideoLAN code repository instance
More information about the vlc-commits
mailing list