{"action":"created","issue":{"url":"https://api.github.com/repos/xbgmsharp/piwigo-videojs/issues/128","repository_url":"https://api.github.com/repos/xbgmsharp/piwigo-videojs","labels_url":"https://api.github.com/repos/xbgmsharp/piwigo-videojs/issues/128/labels{/name}","comments_url":"https://api.github.com/repos/xbgmsharp/piwigo-videojs/issues/128/comments","events_url":"https://api.github.com/repos/xbgmsharp/piwigo-videojs/issues/128/events","html_url":"https://github.com/xbgmsharp/piwigo-videojs/issues/128","id":346129632,"node_id":"MDU6SXNzdWUzNDYxMjk2MzI=","number":128,"title":"ffprobe with no audio \"Undefined offset: 1 in plugins/piwigo-videojs/include/ffprobe.php on line 55\"","user":{"login":"ge0rg","id":165635,"node_id":"MDQ6VXNlcjE2NTYzNQ==","avatar_url":"https://avatars3.githubusercontent.com/u/165635?v=4","gravatar_id":"","url":"https://api.github.com/users/ge0rg","html_url":"https://github.com/ge0rg","followers_url":"https://api.github.com/users/ge0rg/followers","following_url":"https://api.github.com/users/ge0rg/following{/other_user}","gists_url":"https://api.github.com/users/ge0rg/gists{/gist_id}","starred_url":"https://api.github.com/users/ge0rg/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ge0rg/subscriptions","organizations_url":"https://api.github.com/users/ge0rg/orgs","repos_url":"https://api.github.com/users/ge0rg/repos","events_url":"https://api.github.com/users/ge0rg/events{/privacy}","received_events_url":"https://api.github.com/users/ge0rg/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2018-07-31T10:34:29Z","updated_at":"2018-07-31T11:44:19Z","closed_at":null,"author_association":"NONE","body":"When ffprobe is called on a file with only one video stream and no audio stream, there is a warning printed into error.log and into the rendered picture page, from an illegal array offset accesss in ffprobe.php:\r\n\r\n```php\r\nif (isset($output['streams'][0]['codec_type']) and $output['streams'][0]['codec_type'] == 'video')\r\n{\r\n        $video = $output['streams'][0];\r\n        $audio = $output['streams'][1]; // <-- this is evil\r\n} else {\r\n        $video = $output['streams'][1]; // <-- this might be too?\r\n        $audio = $output['streams'][0];\r\n}\r\n\r\n```\r\n\r\nTested with version 2.9.a of the plugin on Piwigo 2.9.4, running on Debian stable."},"comment":{"url":"https://api.github.com/repos/xbgmsharp/piwigo-videojs/issues/comments/409191340","html_url":"https://github.com/xbgmsharp/piwigo-videojs/issues/128#issuecomment-409191340","issue_url":"https://api.github.com/repos/xbgmsharp/piwigo-videojs/issues/128","id":409191340,"node_id":"MDEyOklzc3VlQ29tbWVudDQwOTE5MTM0MA==","user":{"login":"xbgmsharp","id":1498985,"node_id":"MDQ6VXNlcjE0OTg5ODU=","avatar_url":"https://avatars1.githubusercontent.com/u/1498985?v=4","gravatar_id":"","url":"https://api.github.com/users/xbgmsharp","html_url":"https://github.com/xbgmsharp","followers_url":"https://api.github.com/users/xbgmsharp/followers","following_url":"https://api.github.com/users/xbgmsharp/following{/other_user}","gists_url":"https://api.github.com/users/xbgmsharp/gists{/gist_id}","starred_url":"https://api.github.com/users/xbgmsharp/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/xbgmsharp/subscriptions","organizations_url":"https://api.github.com/users/xbgmsharp/orgs","repos_url":"https://api.github.com/users/xbgmsharp/repos","events_url":"https://api.github.com/users/xbgmsharp/events{/privacy}","received_events_url":"https://api.github.com/users/xbgmsharp/received_events","type":"User","site_admin":false},"created_at":"2018-07-31T11:44:19Z","updated_at":"2018-07-31T11:44:19Z","author_association":"OWNER","body":"Could you send a test file?\r\nIn the next version there is no more shell_exec into the rendered picture page.\r\nHowever the code expect an audio stream. I try to improve it, could you test?\r\n"}}
{"actor":{"display_login":"xbgmsharp"}}