diff options
| author | Carl Hetherington <cth@carlh.net> | 2021-04-28 08:47:43 +0200 |
|---|---|---|
| committer | Carl Hetherington <cth@carlh.net> | 2021-05-01 01:31:57 +0200 |
| commit | c93d0271dad86dccdbe518dbbe6e2175adce6804 (patch) | |
| tree | 860e64c9491499fd21e59a8f866f115305196b35 /src/lib/ffmpeg_file_encoder.cc | |
| parent | 8963f0007af1a312017b9627c18b82ec2a577591 (diff) | |
Remove some FFmpeg-related warnings by using AVStream::codecpar.
Diffstat (limited to 'src/lib/ffmpeg_file_encoder.cc')
| -rw-r--r-- | src/lib/ffmpeg_file_encoder.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/lib/ffmpeg_file_encoder.cc b/src/lib/ffmpeg_file_encoder.cc index 782df4d20..18b90e0b5 100644 --- a/src/lib/ffmpeg_file_encoder.cc +++ b/src/lib/ffmpeg_file_encoder.cc @@ -335,8 +335,8 @@ FFmpegFileEncoder::setup_video () throw runtime_error ("could not create FFmpeg output video stream"); } -DCPOMATIC_DISABLE_WARNINGS _video_stream->id = _video_stream_index; +DCPOMATIC_DISABLE_WARNINGS _video_stream->codec = _video_codec_context; DCPOMATIC_ENABLE_WARNINGS |
