media: rc: mceusb: IR of length 0 means IR timeout, not reset
authorSean Young <sean@mess.org>
Wed, 18 Apr 2018 09:36:25 +0000 (05:36 -0400)
committerMauro Carvalho Chehab <mchehab@s-opensource.com>
Fri, 20 Apr 2018 13:21:47 +0000 (09:21 -0400)
commit91352b572786a49f26a12e8b1b7571bc3df64bab
treeb9ea60bb855042da7057bde059fb5846d017897a
parent53a62800efb2f0ebc1972cab242461ae8c57bfd4
media: rc: mceusb: IR of length 0 means IR timeout, not reset

The last usb packet with IR data will end with 0x80 (MCE_IRDATA_TRAILER).
If we reset the decoder state at this point, IR decoding can fail.

Signed-off-by: Sean Young <sean@mess.org>
Signed-off-by: Mauro Carvalho Chehab <mchehab@s-opensource.com>
drivers/media/rc/mceusb.c