Fix an encoder/decode mismatch bug
Fix an encoder/decode mismatch bug

This commit prevent the encoder to update last_frame_type when a frame
is dropped in the encoder. Prior to this fix, if there is a dropped
frame immediatedly after a key frame, decoder would have the value of
last_frame_type as key frame, different from encoder as the dropped
frame in encoder would have updated the value to an inter frame. This
leads to different probability update in encoder and decoder, thereby
encoder/decoder mismatch.

This fixes issue #941

Change-Id: I27115224b138bec43ae3916c016574f5740822b0

abwiz0086/webm.libvpx,Maria1099/webm.libvpx,shacklettbp/aom,Distrotech/libvpx,gshORTON/webm.libvpx,abwiz0086/webm.libvpx,running770/libvpx,liqianggao/libvpx,shareefalis/libvpx,jmvalin/aom,abwiz0086/webm.libvpx,shacklettbp/aom,thdav/aom,liqianggao/libvpx,webmproject/libvpx,Distrotech/libvpx,jacklicn/webm.libvpx,ittiamvpx/libvpx-1,Suvarna1488/webm.libvpx,zofuthan/libvpx,kleopatra999/webm.libvpx,Maria1099/webm.libvpx,thdav/aom,shacklettbp/aom,mbebenita/aom,mwgoldsmith/vpx,jacklicn/webm.libvpx,Topopiccione/libvpx,VTCSecureLLC/libvpx,matanbs/webm.libvpx,mwgoldsmith/vpx,abwiz0086/webm.libvpx,kleopatra999/webm.libvpx,mwgoldsmith/libvpx,stewnorriss/libvpx,GrokImageCompression/aom,luctrudeau/aom,Maria1099/webm.libvpx,Suvarna1488/webm.libvpx,kalli123/webm.libvpx,openpeer/libvpx_new,openpeer/libvpx_new,kim42083/webm.libvpx,matanbs/webm.libvpx,smarter/aom,gshORTON/webm.libvpx,Acidburn0zzz/webm.libvpx,luctrudeau/aom,Acidburn0zzz/webm.libvpx,felipebetancur/libvpx,iniwf/webm.libvpx,webmproject/libvpx,thdav/aom,reimaginemedia/webm.libvpx,running770/libvpx,iniwf/webm.libvpx,goodleixiao/vpx,reimaginemedia/webm.libvpx,webmproject/libvpx,Suvarna1488/webm.libvpx,matanbs/webm.libvpx,ittiamvpx/libvpx-1,lyx2014/libvpx_c,kalli123/webm.libvpx,shyamalschandra/libvpx,felipebetancur/libvpx,altogother/webm.libvpx,mwgoldsmith/vpx,kalli123/webm.libvpx,gshORTON/webm.libvpx,Suvarna1488/webm.libvpx,GrokImageCompression/aom,Distrotech/libvpx,ShiftMediaProject/libvpx,smarter/aom,iniwf/webm.libvpx,kim42083/webm.libvpx,Acidburn0zzz/webm.libvpx,reimaginemedia/webm.libvpx,liqianggao/libvpx,shareefalis/libvpx,liqianggao/libvpx,lyx2014/libvpx_c,zofuthan/libvpx,mbebenita/aom,kim42083/webm.libvpx,luctrudeau/aom,GrokImageCompression/aom,lyx2014/libvpx_c,smarter/aom,luctrudeau/aom,openpeer/libvpx_new,running770/libvpx,webmproject/libvpx,mwgoldsmith/vpx,thdav/aom,Maria1099/webm.libvpx,kim42083/webm.libvpx,felipebetancur/libvpx,GrokImageCompression/aom,kim42083/webm.libvpx,Distrotech/libvpx,GrokImageCompression/aom,ittiamvpx/libvpx-1,GrokImageCompression/aom,stewnorriss/libvpx,running770/libvpx,running770/libvpx,VTCSecureLLC/libvpx,Suvarna1488/webm.libvpx,Distrotech/libvpx,ShiftMediaProject/libvpx,Maria1099/webm.libvpx,felipebetancur/libvpx,shyamalschandra/libvpx,smarter/aom,mwgoldsmith/vpx,shyamalschandra/libvpx,ittiamvpx/libvpx-1,zofuthan/libvpx,stewnorriss/libvpx,jmvalin/aom,stewnorriss/libvpx,kleopatra999/webm.libvpx,stewnorriss/libvpx,Acidburn0zzz/webm.libvpx,shareefalis/libvpx,jmvalin/aom,jacklicn/webm.libvpx,jacklicn/webm.libvpx,VTCSecureLLC/libvpx,ShiftMediaProject/libvpx,iniwf/webm.libvpx,shyamalschandra/libvpx,Topopiccione/libvpx,VTCSecureLLC/libvpx,mwgoldsmith/libvpx,thdav/aom,ShiftMediaProject/libvpx,goodleixiao/vpx,jacklicn/webm.libvpx,stewnorriss/libvpx,gshORTON/webm.libvpx,shyamalschandra/libvpx,mbebenita/aom,shareefalis/libvpx,openpeer/libvpx_new,reimaginemedia/webm.libvpx,Acidburn0zzz/webm.libvpx,mwgoldsmith/libvpx,luctrudeau/aom,altogother/webm.libvpx,kalli123/webm.libvpx,matanbs/webm.libvpx,zofuthan/libvpx,shyamalschandra/libvpx,zofuthan/libvpx,reimaginemedia/webm.libvpx,webmproject/libvpx,mbebenita/aom,mbebenita/aom,iniwf/webm.libvpx,shareefalis/libvpx,thdav/aom,mbebenita/aom,ittiamvpx/libvpx-1,kleopatra999/webm.libvpx,Acidburn0zzz/webm.libvpx,kalli123/webm.libvpx,mbebenita/aom,openpeer/libvpx_new,iniwf/webm.libvpx,mwgoldsmith/libvpx,gshORTON/webm.libvpx,mwgoldsmith/libvpx,webmproject/libvpx,jacklicn/webm.libvpx,Maria1099/webm.libvpx,shacklettbp/aom,kleopatra999/webm.libvpx,abwiz0086/webm.libvpx,Distrotech/libvpx,reimaginemedia/webm.libvpx,lyx2014/libvpx_c,liqianggao/libvpx,goodleixiao/vpx,goodleixiao/vpx,altogother/webm.libvpx,ittiamvpx/libvpx-1,luctrudeau/aom,smarter/aom,altogother/webm.libvpx,mwgoldsmith/vpx,altogother/webm.libvpx,lyx2014/libvpx_c,mwgoldsmith/libvpx,shareefalis/libvpx,matanbs/webm.libvpx,goodleixiao/vpx,jmvalin/aom,matanbs/webm.libvpx,Topopiccione/libvpx,Topopiccione/libvpx,jmvalin/aom,zofuthan/libvpx,openpeer/libvpx_new,mbebenita/aom,shacklettbp/aom,Topopiccione/libvpx,felipebetancur/libvpx,smarter/aom,VTCSecureLLC/libvpx,liqianggao/libvpx,felipebetancur/libvpx,abwiz0086/webm.libvpx,lyx2014/libvpx_c,kleopatra999/webm.libvpx,mbebenita/aom,goodleixiao/vpx,Topopiccione/libvpx,Suvarna1488/webm.libvpx,altogother/webm.libvpx,shacklettbp/aom,kalli123/webm.libvpx,ShiftMediaProject/libvpx,running770/libvpx,gshORTON/webm.libvpx,jmvalin/aom,kim42083/webm.libvpx,VTCSecureLLC/libvpx