vp9 svc: Fix the stats output when sl = 1.
authorJerome Jiang <jianj@google.com>
Mon, 14 Aug 2017 18:55:42 +0000 (11:55 -0700)
committerJerome Jiang <jianj@google.com>
Mon, 14 Aug 2017 19:00:00 +0000 (12:00 -0700)
commit2caff16151bc0450142aaab5bc44dcf7ef603e11
tree959e79bd2e87eb895ba6bb46e11be78918e2ba77
parent1ab60466ec03a30795b485328b50c330cef33f4c
vp9 svc: Fix the stats output when sl = 1.

Actual frame size and bitrate is all 0 when using SVC sample encoder
with sl = 1 because the stats are set in parse_superframe_index which
will not caculate properly when sl = 1 since there is no superframe.

Use pkt->data.frame.sz instead when sl = 1.

Change-Id: I93f5e98a4c779e32b007e1564ba5396af9e34ad6
examples/vp9_spatial_svc_encoder.c