From: Antonio Ospite Date: Tue, 22 May 2012 13:42:26 +0000 (+0200) Subject: am7xxx-play: get the framerate from the video stream X-Git-Tag: v0.1.3~29 X-Git-Url: https://git.ao2.it/libam7xxx.git/commitdiff_plain/2208b544c082879d7a429b50ec76c466212e4aac?ds=inline;hp=2208b544c082879d7a429b50ec76c466212e4aac am7xxx-play: get the framerate from the video stream When setting the output codec get the time_base (which indicates the framerate) from the video stream, not from the input codec context, this is the correct way to do it. On some systems (Windows) the time_base from the input codec context is set different from the one of the video stream, and timebase.num ends up being 0 which results in the output codec initialization failing with the message "framerate not set". ---