videoio(ffmpeg): specify stream->time_base
authorAlexander Alekhin <alexander.a.alekhin@gmail.com>
Tue, 29 May 2018 11:28:38 +0000 (11:28 +0000)
committerAlexander Alekhin <alexander.a.alekhin@gmail.com>
Tue, 29 May 2018 11:42:50 +0000 (11:42 +0000)
commit5128c1ff1fd4f872e7dd6a595ada0e7aee548dfe
tree89663ff955a8b8ea9de755378cabe7fd9d89413d
parent06c1890639cad7060150ecc3dc6cc24d067d1f38
videoio(ffmpeg): specify stream->time_base

Using codec->time_base is deprecated to specify muxer settings.
Resolves issue with FPS value for AVI files with FFmpeg 4.0.

Related FFmpeg commits:
- https://github.com/FFmpeg/FFmpeg/commit/194be1f43ea391eb986732707435176e579265aa
- https://github.com/FFmpeg/FFmpeg/commit/91736025b2807995e29bd0661807c1c84f515fef
modules/videoio/src/cap_ffmpeg_impl.hpp
modules/videoio/test/test_ffmpeg.cpp