copy frame prop from src (regression fix #52)#53
copy frame prop from src (regression fix #52)#53seiya-git wants to merge 1 commit intopinterf:masterfrom
Conversation
|
I can see now, so the src first had to be copied, then it was already safe to make_writable? |
Yes, as far as I understand, avs_make_writable() may return the same frame if it’s already uniquely referenced, so writing can accidentally modify the upstream frame. |
|
Once you obtained the frame using avs_make_writable, the frame content is yours. If VideoFrame is referenced (even for reading) the reference count is not exactly 1, only then makes copy of that. Anyway I was not able to reproduce the avspmod display bug, I wonder if you did? (Put back the simple original single avs_make_writable) |
|
Thank you. Finally, after the tests, I reverted the code to the original single |
No description provided.