{"action":"opened","issue":{"url":"https://api.github.com/repos/CCExtractor/ccextractor/issues/951","repository_url":"https://api.github.com/repos/CCExtractor/ccextractor","labels_url":"https://api.github.com/repos/CCExtractor/ccextractor/issues/951/labels{/name}","comments_url":"https://api.github.com/repos/CCExtractor/ccextractor/issues/951/comments","events_url":"https://api.github.com/repos/CCExtractor/ccextractor/issues/951/events","html_url":"https://github.com/CCExtractor/ccextractor/issues/951","id":302078647,"number":951,"title":"[QUESTION] warning : cast from pointer to integer of different size","user":{"login":"krushanbauva","id":31391329,"avatar_url":"https://avatars1.githubusercontent.com/u/31391329?v=4","gravatar_id":"","url":"https://api.github.com/users/krushanbauva","html_url":"https://github.com/krushanbauva","followers_url":"https://api.github.com/users/krushanbauva/followers","following_url":"https://api.github.com/users/krushanbauva/following{/other_user}","gists_url":"https://api.github.com/users/krushanbauva/gists{/gist_id}","starred_url":"https://api.github.com/users/krushanbauva/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/krushanbauva/subscriptions","organizations_url":"https://api.github.com/users/krushanbauva/orgs","repos_url":"https://api.github.com/users/krushanbauva/repos","events_url":"https://api.github.com/users/krushanbauva/events{/privacy}","received_events_url":"https://api.github.com/users/krushanbauva/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2018-03-04T11:39:20Z","updated_at":"2018-03-04T11:39:20Z","closed_at":null,"author_association":"CONTRIBUTOR","body":"Please prefix your issue with one of the following: [BUG], [PROPOSAL], [QUESTION].\r\n\r\nCCExtractor version (using the --version parameter preferably) : **X.X**\r\n\r\n**In raising this issue, I confirm the following (please check boxes, eg [X] - and delete unchecked ones):**\r\n\r\n- [x ] I have read and understood the [contributors guide](https://github.com/CCExtractor/ccextractor/blob/master/.github/CONTRIBUTING.md).\r\n- [x ] I have checked that the bug-fix I am reporting can be replicated, or that the feature I am suggesting isn't already present.\r\n- [x ] I have checked that the issue I'm posting isn't already reported.\r\n- [x ] I have checked that the issue I'm porting isn't already solved and no duplicates exist in [closed issues](https://github.com/CCExtractor/ccextractor/issues?q=is%3Aissue+is%3Aclosed) and in [opened issues](https://github.com/CCExtractor/ccextractor/issues)\r\n- [x ] I have checked the pull requests tab for existing solutions/implementations to my issue/suggestion.\r\n- [x ] I have used the latest available version of CCExtractor to verify this issue exists.\r\n\r\n**My familiarity with the project is as follows (check one, eg [X] - and delete unchecked ones):**\r\n\r\n- [ ] I have never used CCExtractor.\r\n- [ ] I have used CCExtractor just a couple of times.\r\n- [ ] I absolutely love CCExtractor, but have not contributed previously.\r\n- [x ] I am an active contributor to CCExtractor.\r\n\r\n**Necessary information**\r\n- Is this a regression (did it work before)? [x ] NO | [ ] YES - *please specify the last known working version*\r\n- What platform did you use? [ ] Windows - [x ] Linux - [ ] Mac\r\n- What were the used arguments? `-autoprogram`\r\n\r\n**Video links (replace text below with your links) **\r\n\r\nPlease make the affected input file available for us (no screenshots, those don't help!). Public links to Dropbox, Google Drive, etc, are all fine. If it is not possible to make it available publicly, send us a private invitation (both Dropbox and Google Drive allow that). In this case we will download the file and upload it to the private developer repository.\r\n\r\nDo *not* upload your file to any location that will require us to sign up or endure a wait list, slow downloads, etc. If your upload expires make sure you keep it active somehow (replace links if needed). Keep in mind that while we go over all tickets some may take a few days, and it's important we have the file available when we actually need it.\r\n\r\n**Additional information**\r\n\r\nWhile I was working to resolve the warning generated during the build process, I needed some clarity on what this part of code in function `gf_color_write_yv12_10_to_yuv` inside `src/gpacmp4/color.c` does\r\n```c\r\n#ifdef GPAC_HAS_SSE2\r\n\r\n#ifdef GPAC_64_BITS\r\n#define GFINTCAST  (u64)\r\n#else\r\n#define GFINTCAST  (u32)\r\n#endif\r\n\r\n\tif ( (w%32 == 0)\r\n\t        && (GFINTCAST (vs_dst->video_buffer + vs_dst->pitch_y)%8 == 0)\r\n\t        && (GFINTCAST (vs_dst->video_buffer + vs_dst->pitch_y * vs_dst->height + vs_dst->pitch_y/2)%8 == 0)\r\n\t        && (GFINTCAST (pU + src_stride/2)%8 == 0)\r\n\t        && (GFINTCAST (pV + src_stride/2)%8 == 0)\r\n\t   ) {\r\n\t\treturn gf_color_write_yv12_10_to_yuv_intrin(vs_dst, pY, pU, pV, src_stride, src_width, src_height, _src_wnd, swap_uv);\r\n\t}\r\n#endif\r\n```\r\n\r\nSince `GPAC_HAS_SSE2` is defined this way in the same file and there are no other references of `GPAC_HAS_SSE2` in the entire codebase and also the code to be executed if `GPAC_HAS_SSE2` is defined is present directly below this piece of code.\r\n```c\r\n#if defined(WIN32) && !defined(__GNUC__)\r\n# include <intrin.h>\r\n# define GPAC_HAS_SSE2\r\n#else\r\n# ifdef __SSE2__\r\n#  include <emmintrin.h>\r\n#  define GPAC_HAS_SSE2\r\n# endif\r\n#endif\r\n```\r\nI'm not able to figure out the need of `#ifdef GPAC_HAS_SSE2` piece of code inside the function `gf_color_write_yv12_10_to_yuv`\r\n\r\nPS: Make sure you set an alert in GitHub so you get notifications about your ticket. We may need to ask questions and we do everything inside GitHub's system.\r\n"}}
{"actor":{"display_login":"krushanbauva"}}