{"action":"created","comment":{"url":"https://api.github.com/repos/01org/libyami/pulls/comments/76746171","id":76746171,"diff_hunk":"@@ -1613,14 +1613,24 @@ bool VaapiDecoderH264::isDecodeContextChanged(const SharedPtr<SPS>& sps)\n     return m_contextChanged;\n }\n \n+bool VaapiDecoderH264::isResolutionChanged(const SharedPtr<SPS>& sps)\n+{\n+    if (m_configBuffer.surfaceWidth != sps->m_width\n+        || m_configBuffer.surfaceHeight != sps->m_height){\n+        return true;\n+    }\n+    return false;\n+}\n+\n YamiStatus VaapiDecoderH264::ensureContext(const SharedPtr<SPS>& sps)\n {\n+    YamiStatus status;\n     if (isDecodeContextChanged(sps)) {\n         INFO(\"frame size changed, reconfig codec. orig size %d x %d, new size: \"\n              \"%d x %d\",\n              m_configBuffer.width, m_configBuffer.height, sps->m_width,\n              sps->m_height);\n-        YamiStatus status = VaapiDecoderBase::terminateVA();\n+        status = VaapiDecoderBase::terminateVA();","path":"decoder/vaapidecoder_h264.cpp","position":22,"original_position":22,"commit_id":"faf4fec089fe032c0b7e0b1b864a5dace6c36b41","original_commit_id":"faf4fec089fe032c0b7e0b1b864a5dace6c36b41","user":{"login":"wudping","id":15758417,"avatar_url":"https://avatars.githubusercontent.com/u/15758417?v=3","gravatar_id":"","url":"https://api.github.com/users/wudping","html_url":"https://github.com/wudping","followers_url":"https://api.github.com/users/wudping/followers","following_url":"https://api.github.com/users/wudping/following{/other_user}","gists_url":"https://api.github.com/users/wudping/gists{/gist_id}","starred_url":"https://api.github.com/users/wudping/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/wudping/subscriptions","organizations_url":"https://api.github.com/users/wudping/orgs","repos_url":"https://api.github.com/users/wudping/repos","events_url":"https://api.github.com/users/wudping/events{/privacy}","received_events_url":"https://api.github.com/users/wudping/received_events","type":"User","site_admin":false},"body":"okay, I understand. It should not be changed.","created_at":"2016-08-30T07:58:42Z","updated_at":"2016-08-30T07:58:42Z","html_url":"https://github.com/01org/libyami/pull/544#discussion_r76746171","pull_request_url":"https://api.github.com/repos/01org/libyami/pulls/544","_links":{"self":{"href":"https://api.github.com/repos/01org/libyami/pulls/comments/76746171"},"html":{"href":"https://github.com/01org/libyami/pull/544#discussion_r76746171"},"pull_request":{"href":"https://api.github.com/repos/01org/libyami/pulls/544"}}},"pull_request":{"url":"https://api.github.com/repos/01org/libyami/pulls/544","id":82829643,"html_url":"https://github.com/01org/libyami/pull/544","diff_url":"https://github.com/01org/libyami/pull/544.diff","patch_url":"https://github.com/01org/libyami/pull/544.patch","issue_url":"https://api.github.com/repos/01org/libyami/issues/544","number":544,"state":"open","locked":false,"title":"dec_264: return format_change  as resulution changing, to fix #516","user":{"login":"wudping","id":15758417,"avatar_url":"https://avatars.githubusercontent.com/u/15758417?v=3","gravatar_id":"","url":"https://api.github.com/users/wudping","html_url":"https://github.com/wudping","followers_url":"https://api.github.com/users/wudping/followers","following_url":"https://api.github.com/users/wudping/following{/other_user}","gists_url":"https://api.github.com/users/wudping/gists{/gist_id}","starred_url":"https://api.github.com/users/wudping/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/wudping/subscriptions","organizations_url":"https://api.github.com/users/wudping/orgs","repos_url":"https://api.github.com/users/wudping/repos","events_url":"https://api.github.com/users/wudping/events{/privacy}","received_events_url":"https://api.github.com/users/wudping/received_events","type":"User","site_admin":false},"body":"return YAMI_DECODE_FORMAT_CHANGE when resolution changing during palying;\r\nif the new resolution is less than the old, just reset the resolution,\r\nwithout reset libva.\r\n\r\nto fix #516 \r\n\r\nSigned-off-by: wudping <dongpingx.wu@intel.com>","created_at":"2016-08-26T04:14:01Z","updated_at":"2016-08-30T07:58:42Z","closed_at":null,"merged_at":null,"merge_commit_sha":"6ef7ebd65e6a2d6cf9cc00a0efd59f6b98419259","assignee":null,"assignees":[],"milestone":null,"commits_url":"https://api.github.com/repos/01org/libyami/pulls/544/commits","review_comments_url":"https://api.github.com/repos/01org/libyami/pulls/544/comments","review_comment_url":"https://api.github.com/repos/01org/libyami/pulls/comments{/number}","comments_url":"https://api.github.com/repos/01org/libyami/issues/544/comments","statuses_url":"https://api.github.com/repos/01org/libyami/statuses/faf4fec089fe032c0b7e0b1b864a5dace6c36b41","head":{"label":"wudping:apache_multiresolution","ref":"apache_multiresolution","sha":"faf4fec089fe032c0b7e0b1b864a5dace6c36b41","user":{"login":"wudping","id":15758417,"avatar_url":"https://avatars.githubusercontent.com/u/15758417?v=3","gravatar_id":"","url":"https://api.github.com/users/wudping","html_url":"https://github.com/wudping","followers_url":"https://api.github.com/users/wudping/followers","following_url":"https://api.github.com/users/wudping/following{/other_user}","gists_url":"https://api.github.com/users/wudping/gists{/gist_id}","starred_url":"https://api.github.com/users/wudping/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/wudping/subscriptions","organizations_url":"https://api.github.com/users/wudping/orgs","repos_url":"https://api.github.com/users/wudping/repos","events_url":"https://api.github.com/users/wudping/events{/privacy}","received_events_url":"https://api.github.com/users/wudping/received_events","type":"User","site_admin":false},"repo":{"id":63393911,"name":"libyami","full_name":"wudping/libyami","owner":{"login":"wudping","id":15758417,"avatar_url":"https://avatars.githubusercontent.com/u/15758417?v=3","gravatar_id":"","url":"https://api.github.com/users/wudping","html_url":"https://github.com/wudping","followers_url":"https://api.github.com/users/wudping/followers","following_url":"https://api.github.com/users/wudping/following{/other_user}","gists_url":"https://api.github.com/users/wudping/gists{/gist_id}","starred_url":"https://api.github.com/users/wudping/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/wudping/subscriptions","organizations_url":"https://api.github.com/users/wudping/orgs","repos_url":"https://api.github.com/users/wudping/repos","events_url":"https://api.github.com/users/wudping/events{/privacy}","received_events_url":"https://api.github.com/users/wudping/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/wudping/libyami","description":"Yet Another Media Infrastructure. it is core part of media codec with hardware acceleration, it is yummy to your video experience on Linux like platform.","fork":true,"url":"https://api.github.com/repos/wudping/libyami","forks_url":"https://api.github.com/repos/wudping/libyami/forks","keys_url":"https://api.github.com/repos/wudping/libyami/keys{/key_id}","collaborators_url":"https://api.github.com/repos/wudping/libyami/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/wudping/libyami/teams","hooks_url":"https://api.github.com/repos/wudping/libyami/hooks","issue_events_url":"https://api.github.com/repos/wudping/libyami/issues/events{/number}","events_url":"https://api.github.com/repos/wudping/libyami/events","assignees_url":"https://api.github.com/repos/wudping/libyami/assignees{/user}","branches_url":"https://api.github.com/repos/wudping/libyami/branches{/branch}","tags_url":"https://api.github.com/repos/wudping/libyami/tags","blobs_url":"https://api.github.com/repos/wudping/libyami/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/wudping/libyami/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/wudping/libyami/git/refs{/sha}","trees_url":"https://api.github.com/repos/wudping/libyami/git/trees{/sha}","statuses_url":"https://api.github.com/repos/wudping/libyami/statuses/{sha}","languages_url":"https://api.github.com/repos/wudping/libyami/languages","stargazers_url":"https://api.github.com/repos/wudping/libyami/stargazers","contributors_url":"https://api.github.com/repos/wudping/libyami/contributors","subscribers_url":"https://api.github.com/repos/wudping/libyami/subscribers","subscription_url":"https://api.github.com/repos/wudping/libyami/subscription","commits_url":"https://api.github.com/repos/wudping/libyami/commits{/sha}","git_commits_url":"https://api.github.com/repos/wudping/libyami/git/commits{/sha}","comments_url":"https://api.github.com/repos/wudping/libyami/comments{/number}","issue_comment_url":"https://api.github.com/repos/wudping/libyami/issues/comments{/number}","contents_url":"https://api.github.com/repos/wudping/libyami/contents/{+path}","compare_url":"https://api.github.com/repos/wudping/libyami/compare/{base}...{head}","merges_url":"https://api.github.com/repos/wudping/libyami/merges","archive_url":"https://api.github.com/repos/wudping/libyami/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/wudping/libyami/downloads","issues_url":"https://api.github.com/repos/wudping/libyami/issues{/number}","pulls_url":"https://api.github.com/repos/wudping/libyami/pulls{/number}","milestones_url":"https://api.github.com/repos/wudping/libyami/milestones{/number}","notifications_url":"https://api.github.com/repos/wudping/libyami/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/wudping/libyami/labels{/name}","releases_url":"https://api.github.com/repos/wudping/libyami/releases{/id}","deployments_url":"https://api.github.com/repos/wudping/libyami/deployments","created_at":"2016-07-15T05:22:26Z","updated_at":"2016-07-15T05:22:28Z","pushed_at":"2016-08-26T03:17:30Z","git_url":"git://github.com/wudping/libyami.git","ssh_url":"git@github.com:wudping/libyami.git","clone_url":"https://github.com/wudping/libyami.git","svn_url":"https://github.com/wudping/libyami","homepage":null,"size":3661,"stargazers_count":0,"watchers_count":0,"language":"C++","has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"apache"}},"base":{"label":"01org:apache","ref":"apache","sha":"2d4a5362ddefd2a71929c3fce28b4af35c2be356","user":{"login":"01org","id":1635439,"avatar_url":"https://avatars.githubusercontent.com/u/1635439?v=3","gravatar_id":"","url":"https://api.github.com/users/01org","html_url":"https://github.com/01org","followers_url":"https://api.github.com/users/01org/followers","following_url":"https://api.github.com/users/01org/following{/other_user}","gists_url":"https://api.github.com/users/01org/gists{/gist_id}","starred_url":"https://api.github.com/users/01org/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/01org/subscriptions","organizations_url":"https://api.github.com/users/01org/orgs","repos_url":"https://api.github.com/users/01org/repos","events_url":"https://api.github.com/users/01org/events{/privacy}","received_events_url":"https://api.github.com/users/01org/received_events","type":"Organization","site_admin":false},"repo":{"id":18320220,"name":"libyami","full_name":"01org/libyami","owner":{"login":"01org","id":1635439,"avatar_url":"https://avatars.githubusercontent.com/u/1635439?v=3","gravatar_id":"","url":"https://api.github.com/users/01org","html_url":"https://github.com/01org","followers_url":"https://api.github.com/users/01org/followers","following_url":"https://api.github.com/users/01org/following{/other_user}","gists_url":"https://api.github.com/users/01org/gists{/gist_id}","starred_url":"https://api.github.com/users/01org/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/01org/subscriptions","organizations_url":"https://api.github.com/users/01org/orgs","repos_url":"https://api.github.com/users/01org/repos","events_url":"https://api.github.com/users/01org/events{/privacy}","received_events_url":"https://api.github.com/users/01org/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/01org/libyami","description":"Yet Another Media Infrastructure. it is core part of media codec with hardware acceleration, it is yummy to your video experience on Linux like platform.","fork":false,"url":"https://api.github.com/repos/01org/libyami","forks_url":"https://api.github.com/repos/01org/libyami/forks","keys_url":"https://api.github.com/repos/01org/libyami/keys{/key_id}","collaborators_url":"https://api.github.com/repos/01org/libyami/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/01org/libyami/teams","hooks_url":"https://api.github.com/repos/01org/libyami/hooks","issue_events_url":"https://api.github.com/repos/01org/libyami/issues/events{/number}","events_url":"https://api.github.com/repos/01org/libyami/events","assignees_url":"https://api.github.com/repos/01org/libyami/assignees{/user}","branches_url":"https://api.github.com/repos/01org/libyami/branches{/branch}","tags_url":"https://api.github.com/repos/01org/libyami/tags","blobs_url":"https://api.github.com/repos/01org/libyami/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/01org/libyami/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/01org/libyami/git/refs{/sha}","trees_url":"https://api.github.com/repos/01org/libyami/git/trees{/sha}","statuses_url":"https://api.github.com/repos/01org/libyami/statuses/{sha}","languages_url":"https://api.github.com/repos/01org/libyami/languages","stargazers_url":"https://api.github.com/repos/01org/libyami/stargazers","contributors_url":"https://api.github.com/repos/01org/libyami/contributors","subscribers_url":"https://api.github.com/repos/01org/libyami/subscribers","subscription_url":"https://api.github.com/repos/01org/libyami/subscription","commits_url":"https://api.github.com/repos/01org/libyami/commits{/sha}","git_commits_url":"https://api.github.com/repos/01org/libyami/git/commits{/sha}","comments_url":"https://api.github.com/repos/01org/libyami/comments{/number}","issue_comment_url":"https://api.github.com/repos/01org/libyami/issues/comments{/number}","contents_url":"https://api.github.com/repos/01org/libyami/contents/{+path}","compare_url":"https://api.github.com/repos/01org/libyami/compare/{base}...{head}","merges_url":"https://api.github.com/repos/01org/libyami/merges","archive_url":"https://api.github.com/repos/01org/libyami/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/01org/libyami/downloads","issues_url":"https://api.github.com/repos/01org/libyami/issues{/number}","pulls_url":"https://api.github.com/repos/01org/libyami/pulls{/number}","milestones_url":"https://api.github.com/repos/01org/libyami/milestones{/number}","notifications_url":"https://api.github.com/repos/01org/libyami/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/01org/libyami/labels{/name}","releases_url":"https://api.github.com/repos/01org/libyami/releases{/id}","deployments_url":"https://api.github.com/repos/01org/libyami/deployments","created_at":"2014-04-01T06:44:19Z","updated_at":"2016-08-19T16:44:33Z","pushed_at":"2016-08-30T03:58:21Z","git_url":"git://github.com/01org/libyami.git","ssh_url":"git@github.com:01org/libyami.git","clone_url":"https://github.com/01org/libyami.git","svn_url":"https://github.com/01org/libyami","homepage":null,"size":4925,"stargazers_count":39,"watchers_count":39,"language":"C++","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":57,"mirror_url":null,"open_issues_count":28,"forks":57,"open_issues":28,"watchers":39,"default_branch":"apache"}},"_links":{"self":{"href":"https://api.github.com/repos/01org/libyami/pulls/544"},"html":{"href":"https://github.com/01org/libyami/pull/544"},"issue":{"href":"https://api.github.com/repos/01org/libyami/issues/544"},"comments":{"href":"https://api.github.com/repos/01org/libyami/issues/544/comments"},"review_comments":{"href":"https://api.github.com/repos/01org/libyami/pulls/544/comments"},"review_comment":{"href":"https://api.github.com/repos/01org/libyami/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/01org/libyami/pulls/544/commits"},"statuses":{"href":"https://api.github.com/repos/01org/libyami/statuses/faf4fec089fe032c0b7e0b1b864a5dace6c36b41"}}}}
{"actor":{"display_login":"wudping"}}