mirror of https://git.ffmpeg.org/ffmpeg.git
isom: only write the size if its non zero in mov_rewrite_dvd_sub_extradata()
Sample-Id: NeroRecodeSample.mp4
This commit is contained in:
parent
9bd4a9f4ee
commit
96138e8c8d
|
@ -446,8 +446,10 @@ static int mov_rewrite_dvd_sub_extradata(AVStream *st)
|
|||
if (st->codec->extradata_size != 64)
|
||||
return 0;
|
||||
|
||||
snprintf(buf, sizeof(buf), "size: %dx%d\npalette: ",
|
||||
if (st->codec->width > 0 && st->codec->height > 0)
|
||||
snprintf(buf, sizeof(buf), "size: %dx%d\n",
|
||||
st->codec->width, st->codec->height);
|
||||
av_strlcat(buf, "palette: ", sizeof(buf));
|
||||
|
||||
for (i = 0; i < 16; i++) {
|
||||
uint32_t yuv = AV_RB32(src + i * 4);
|
||||
|
|
Loading…
Reference in New Issue