Skip to content

Commit

Permalink
2986c16 の再修正。 ( #660 )
Browse files Browse the repository at this point in the history
  • Loading branch information
rigaya committed Jan 7, 2025
1 parent 2986c16 commit a044a48
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion NVEnc/NVEnc_readme.txt
Original file line number Diff line number Diff line change
Expand Up @@ -215,7 +215,7 @@ NVIDIA グラフィックドライバ 551.23
今後の更新で設定ファイルの互換性がなくなるかもしれません。

【メモ】
2025.01.07 (7.81)
2025.01.08 (7.81)
- SAR比が設定されていない(例えば0:0)と、mp4 muxerの出力する"tkhd: Track Header Box"(L-SMASH boxdumper)、
"Visual Track layout"(mp4box -info)のwidthは0になってしまう問題を回避。

Expand Down
2 changes: 1 addition & 1 deletion NVEncCore/rgy_output_avcodec.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -882,7 +882,7 @@ RGY_ERR RGYOutputAvcodec::InitVideo(const VideoInfo *videoOutputInfo, const Avco
}
m_Mux.video.streamOut->sample_aspect_ratio.num = videoOutputInfo->sar[0]; //mkvではこちらの指定も必要
m_Mux.video.streamOut->sample_aspect_ratio.den = videoOutputInfo->sar[1];
if (format_is_mp4(m_Mux.format.formatCtx) && videoOutputInfo->sar[0] * videoOutputInfo->sar[1] > 0) {
if (format_is_mp4(m_Mux.format.formatCtx) && videoOutputInfo->sar[0] * videoOutputInfo->sar[1] <= 0) {
// mp4 muxerではsample_aspect_ratioが設定されていない(例えば0:0)だと、L-SMASHの"tkhd: Track Header Box" (mp4boxでは"Visual Track layout")のwidthは0になってしまう
m_Mux.video.streamOut->sample_aspect_ratio.num = 1;
m_Mux.video.streamOut->sample_aspect_ratio.den = 1;
Expand Down

0 comments on commit a044a48

Please sign in to comment.