1
0
mirror of https://github.com/FFmpeg/FFmpeg.git synced 2026-06-19 19:03:00 +02:00

avcodec/pcm-dvdenc: don't allow the user to set frame_size

This is for an upcoming change where the field will become user settable.
Unless a proper check for frame_size is introduced, it's better to just not
allow arbitrary values to be used.

Signed-off-by: James Almer <jamrial@gmail.com>
This commit is contained in:
James Almer
2026-05-10 22:33:38 -03:00
parent 08d7646abf
commit bf2695e876
+1 -2
View File
@@ -106,8 +106,7 @@ static av_cold int pcm_dvd_encode_init(AVCodecContext *avctx)
s->header[1] = (quant << 6) | (freq << 4) | (avctx->ch_layout.nb_channels - 1);
s->header[2] = 0x80;
if (!avctx->frame_size)
avctx->frame_size = frame_size;
avctx->frame_size = frame_size;
return 0;
}