Skip to content

Commit

Permalink
#229: take csc mode into account when deciding how much data to read/…
Browse files Browse the repository at this point in the history
…return! (follow same code as sample decoder from vpx)

git-svn-id: https://xpra.org/svn/Xpra/trunk@2992 3bb7dfac-3a0b-4e04-842a-767bc560f471
  • Loading branch information
totaam committed Mar 16, 2013
1 parent 758583c commit b95777d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/xpra/vpx/codec.pyx
Original file line number Diff line number Diff line change
Expand Up @@ -79,8 +79,8 @@ cdef class Decoder(xcoder):
if i!=0:
return i, [0, 0, 0], ["", "", ""]
doutvY = (<char *>dout[0])[:self.height * outstrides[0]]
doutvU = (<char *>dout[1])[:self.height * outstrides[1]]
doutvV = (<char *>dout[2])[:self.height * outstrides[2]]
doutvU = (<char *>dout[1])[:((self.height+1)>>1) * outstrides[1]]
doutvV = (<char *>dout[2])[:((self.height+1)>>1) * outstrides[2]]
out = [doutvY, doutvU, doutvV]
strides = [outstrides[0], outstrides[1], outstrides[2]]
return i, strides, out
Expand Down

0 comments on commit b95777d

Please sign in to comment.