[C] Update hdr_decoder example to support stdin.